ESLint plugin with some opinionated rules, useful in JavaScript, TypeScript and React projects.
| Name | |
|---|---|
| ✅ | recommended |
💼 Configurations enabled in.
✅ Set in the recommended configuration.
🗂️ The type of rule.
❗ Identifies problems that could cause errors or unexpected behavior.
📖 Identifies potential improvements.
⚙️ Has configuration options.
| Name | Description | 💼 | 🗂️ | ⚙️ |
|---|---|---|---|---|
| no-inline-interfaces | disallow inline object type literals in variable and function annotations; extract to a named interface or type alias. | ✅ | 📖 | ⚙️ |
| prefer-destructured-optionals | enforce placing optional parameters on a destructured object instead of the function signature itself | ✅ | 📖 | |
| valid-event-listener | enforces best practices around addEventListener method in React components. | ✅ | ❗ | ⚙️ |