Package Exports
- eslint-plugin-autofix
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-autofix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-plugin-autofix
Install & usage
$ npm i eslint-plugin-autofix -Dadd prefix "autofix" to the rulename in eslintrc:
{
"plugins": ["autofix"],
"rules": {
"autofix/no-debugger": "error"
}
}Supported rules
✔️ indicates that a rule is recommended for all users. 🛠 indicates that a rule is fixable.
| Name | ✔️ | 🛠 | Description |
|---|---|---|---|
| no-alert | 🛠 | disallow the use of alert, confirm, and prompt |
|
| no-console | ✔️ | 🛠 | disallow the use of console |
| no-debugger | ✔️ | 🛠 | disallow the use of debugger |
| no-eq-null | 🛠 | disallow null comparisons without type-checking operators |
|
| no-new-symbol | 🛠 | disallow new operators with the Symbol object |
|
| no-plusplus | ✔️ | 🛠 | disallow the unary operators ++ and -- |
| no-prototype-builtins | 🛠 | disallow calling some Object.prototype methods directly on objects |
|
| no-useless-concat | 🛠 | disallow unnecessary concatenation of literals or template literals | |
| prefer-spread | 🛠 | require spread operators instead of .apply() |
|
| radix | 🛠 | enforce the consistent use of the radix argument when using parseInt() |
|
| valid-typeof | 🛠 | enforce comparing typeof expressions against valid strings |
Contributing
- to add a new rule:
npm run new ${ruleName}