eslint-plugin-no-autofix

1.2.3 • Public • Published

build status dependency status

eslint-plugin-no-autofix

Why

Some warnings is auto-fixable but we do not want to fix it, like "prefer-const" .

Install & usage

$ npm i eslint-plugin-no-autofix -D # for npm
$ yarn add eslint-plugin-no-autofix -D # for yarn

add prefix "no-autofix/" to the rulename in eslintrc:

{
  "plugins": ["no-autofix"],
  "rules": {
    "prefer-const": "off",
    "no-autofix/prefer-const": "error",
  }
}

or a 3rd-party plugin:

{
  "plugins": ["no-autofix", "react"],
  "rules": {
    "react/jsx-indent": "off",
    "no-autofix/react/jsx-indent": "error",
  }
}

Supported rules

It supports all eslint core rules and 3rd-party plugins(except for scoped packages).

Acknowledgement

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-no-autofix

Weekly Downloads

29,117

Version

1.2.3

License

MIT

Unpacked Size

7.34 kB

Total Files

7

Last publish

Collaborators

  • weiran.zsd