{"id":25528,"library":"eslint-plugin-sui","title":"ESLint Plugin SUI (Sistema Único de Información)","description":"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.","status":"active","version":"1.14.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-sui","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-sui","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-sui","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to load and apply the plugin rules","package":"eslint","optional":false}],"imports":[{"note":"The package does not export a default CommonJS object; use ESM import or dynamic import().","wrong":"const eslintPluginSui = require('eslint-plugin-sui')","symbol":"plugin","correct":"import eslintPluginSui from 'eslint-plugin-sui'"},{"note":"Named export 'rules' is available for programmatic access since v1.0.","wrong":"const rules = require('eslint-plugin-sui').rules","symbol":"rules","correct":"import { rules } from 'eslint-plugin-sui'"},{"note":"Configs may not be populated; see README TODO. Check package contents.","wrong":null,"symbol":"configs","correct":"import { configs } from 'eslint-plugin-sui'"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  plugins: ['sui'],\n  rules: {\n    'sui/rule-name': 'error'\n  }\n};\n\n// Or in package.json:\n{\n  \"eslintConfig\": {\n    \"plugins\": [\"sui\"],\n    \"rules\": {\n      \"sui/rule-name\": 2\n    }\n  }\n}","lang":"javascript","description":"Shows how to configure eslint-plugin-sui in .eslintrc.js or package.json to enable custom SUI lint rules."},"warnings":[{"fix":"Inspect the plugin source code (node_modules/eslint-plugin-sui) to discover available rules and configs.","message":"Plugin rules and configs are underdocumented; the README contains TODO placeholders for generated documentation.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use require() instead of import for versions <1.0.","message":"ESM import may fail in older Node versions due to lack of proper ESM/CJS dual packaging; use require() if using CommonJS.","severity":"gotcha","affected_versions":"<1.0"},{"fix":"Upgrade ESLint to version 7 or later.","message":"Peer dependency on eslint >=7; incompatible with older ESLint versions.","severity":"breaking","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install eslint-plugin-sui --save-dev`","cause":"Missing local installation of eslint-plugin-sui.","error":"Error: Failed to load plugin 'sui' declared in '.eslintrc': Cannot find module 'eslint-plugin-sui'"},{"fix":"Ensure eslint-plugin-sui is in package.json devDependencies and run npm install.","cause":"Plugin not installed or node_modules not present.","error":"Error: Cannot find module 'eslint-plugin-sui'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}