eslint-plugin-no-mercy
v0.0.7
Published
A strict, type-aware ESLint plugin focused on readability and maintainability. Every rule is autofixable wherever possible.
Readme
eslint-plugin-no-mercy
A strict, type-aware ESLint plugin focused on readability and maintainability. Every rule is autofixable wherever possible.
Installation
pnpm add -D eslint-plugin-no-mercyConfigs
| | Name |
| :-- | :------------ |
| ✅ | recommended |
Rules
💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 💼 | 🔧 |
| :--------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------- | :-- | :-- |
| boolean-prefix | Require boolean variables and boolean-returning functions to start with a configurable prefix. | ✅ | |
| no-else | Disallow else clauses. Use early returns or guard clauses instead. | ✅ | |
| no-else-if | Disallow else if. Use early returns or guard clauses instead. | ✅ | |
| no-redundant-types | Disallow explicit type annotations that TypeScript can infer from the assigned value. | ✅ | 🔧 |
| parts-of-speech | Require or restrict parts of speech in declaration names, configured per declaration kind and name pattern. | ✅ | |
| prefer-parameter-object | Require functions with more than one parameter to accept a single object parameter. | ✅ | 🔧 |
