Registry / testing / eslint-plugin-sui

eslint-plugin-sui

JSON →
library1.14.0jsnpmunverified

ESLint plugin providing a set of custom lint rules for projects following SUI standards. Version 1.14.0 supports ESLint >=7 and Node.js ^14.17.0 || ^16.0.0 || >=18.0.0. This plugin is designed to enforce coding conventions specific to SUI-based development. It is released on an irregular cadence and lacks comprehensive documentation for rules and configurations, which are marked as TODO. Compared to generic ESLint plugins, it is narrowly focused on SUI-specific patterns.

npm install eslint-plugin-sui
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-SUI
E
eslint-plugin-sui
testingjavascriptv1.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
✓ import eslintPluginSui from 'eslint-plugin-sui'
✗ const eslintPluginSui = require('eslint-plugin-sui')
The package does not export a default CommonJS object; use ESM import or dynamic import().
rules
✓ import { rules } from 'eslint-plugin-sui'
✗ const rules = require('eslint-plugin-sui').rules
Named export 'rules' is available for programmatic access since v1.0.
configs
✓ import { configs } from 'eslint-plugin-sui'
Configs may not be populated; see README TODO. Check package contents.

Shows how to configure eslint-plugin-sui in .eslintrc.js or package.json to enable custom SUI lint rules.

// .eslintrc.js module.exports = { plugins: ['sui'], rules: { 'sui/rule-name': 'error' } }; // Or in package.json: { "eslintConfig": { "plugins": ["sui"], "rules": { "sui/rule-name": 2 } } }
Debug
Known issues
gotchaPlugin rules and configs are underdocumented; the README contains TODO placeholders for generated documentation.
fix
Inspect the plugin source code (node_modules/eslint-plugin-sui) to discover available rules and configs.
affects: >=0.0.0
gotchaESM import may fail in older Node versions due to lack of proper ESM/CJS dual packaging; use require() if using CommonJS.
fix
Use require() instead of import for versions <1.0.
affects: <1.0
breakingPeer dependency on eslint >=7; incompatible with older ESLint versions.
fix
Upgrade ESLint to version 7 or later.
affects: >=1.0
Errors
Common errors & fixes
Error: Failed to load plugin 'sui' declared in '.eslintrc': Cannot find module 'eslint-plugin-sui'
Missing local installation of eslint-plugin-sui.
fix
Run `npm install eslint-plugin-sui --save-dev`
Error: Cannot find module 'eslint-plugin-sui'
Plugin not installed or node_modules not present.
fix
Ensure eslint-plugin-sui is in package.json devDependencies and run npm install.
Upgrade
Version history
1.14.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required to load and apply the plugin rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-sui — npm install eslint-plugin-sui · libregistry