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