Skip to main content
interlace
Plugin: modernization

Rules

All ESLint rules provided by eslint-plugin-modernization

3 Rules Available

Upgrade your codebase to ES2022+ syntax.

All Rules

Legend: Type-unaware Type-awareRecommendedFixableSuggestionsWarns
Rule🧠💼🔧💡⚠️Docs
no-instanceof-array

Prefer Array.isArray() over instanceof Array for reliable type checking across different JavaScript realms (iframes, Web Workers).

🟢
prefer-at

Prefer using Array.at() for accessing elements, especially with negative indices

🟢
prefer-event-target

Prefer EventTarget over EventEmitter for isomorphic code

🟢
prefer-template-literal

Prefer template literals over string concatenation with runtime values

🟢
Showing 4 of 4 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.

On this page