Skip to main content
interlace
Plugin: maintainability

Rules

All ESLint rules provided by eslint-plugin-maintainability

12 Rules Available

Reduce cognitive load and improve code readability.

All Rules

Legend: Type-unaware Type-awareRecommendedFixableSuggestionsWarns
Rule🧠💼🔧💡⚠️Docs
cognitive-complexity

Enforces a maximum cognitive complexity threshold with refactoring guidance

🟢
consistent-function-scoping

Move function definitions to the highest possible scope to improve readability and performance

🟢
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

Detects functions with too many parameters

🟢
nested-complexity-hotspots

Identifies nested control structures that harm readability

🟢
no-lonely-if

Prevent lone if statements inside else blocks - use else if instead

🟢
no-missing-error-context

Detects thrown errors without context

🟢
no-nested-ternary

Prevent nested ternary expressions for better readability

🟢
no-silent-errors

Detects empty catch blocks

🟢
no-unhandled-promise

Detects unhandled Promise rejections

🟢
no-unreadable-iife

Prevent unreadable Immediately Invoked Function Expressions that harm code clarity

🟢
Showing 12 of 12 rules

Building secure JavaScript with Interlace? Star the repo to get new rules and CWE coverage as we ship them — or follow the AI-code-security benchmarks behind them.