ESLint Plugin SUI (Sistema Único de Información)

raw JSON →
1.14.0 verified Fri May 01 auth: no javascript

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.

error Error: Failed to load plugin 'sui' declared in '.eslintrc': Cannot find module 'eslint-plugin-sui'
cause Missing local installation of eslint-plugin-sui.
fix
Run npm install eslint-plugin-sui --save-dev
error Error: Cannot find module 'eslint-plugin-sui'
cause Plugin not installed or node_modules not present.
fix
Ensure eslint-plugin-sui is in package.json devDependencies and run npm install.
gotcha Plugin 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.
gotcha ESM 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.
breaking Peer dependency on eslint >=7; incompatible with older ESLint versions.
fix Upgrade ESLint to version 7 or later.
npm install eslint-plugin-sui
yarn add eslint-plugin-sui
pnpm add eslint-plugin-sui

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
    }
  }
}