Rules
All ESLint rules provided by eslint-plugin-maintainability
12 Rules Available
Reduce cognitive load and improve code readability.
All Rules
| Rule | 🧠 | 💼 | 🔧 | 💡 | ⚠️ | Docs |
|---|---|---|---|---|---|---|
| cognitive-complexity Enforces a maximum cognitive complexity threshold with refactoring guidance | 🟢 | |||||
| consistent-function-scoping Move functions to the highest possible scope | 🟢 | |||||
| error-message Enforce providing a message when creating built-in Error objects for better debugging | 🟢 | |||||
| identical-functions Detects duplicate function implementations with DRY refactoring suggestions | 🟢 | |||||
| max-parameters ESLint Rule: max-parameters with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | |||||
| nested-complexity-hotspots ESLint Rule: nested-complexity-hotspots with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | |||||
| no-lonely-if Disallow if statements as the only statement in else blocks | 🟢 | |||||
| no-missing-error-context ESLint Rule: no-missing-error-context with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | |||||
| no-nested-ternary Prevent nested ternary expressions for better readability | 🟢 | |||||
| no-silent-errors ESLint Rule: no-silent-errors with LLM-optimized suggestions and auto-fix capabilities. | 🟢 | |||||
| no-unhandled-promise Disallow unhandled Promise rejections with LLM-optimized suggestions for proper async error handling | 🟢 | |||||
| no-unreadable-iife Disallow unreadable IIFE (Immediately Invoked Function Expression) patterns | 🟢 |