eslint-plugin-fix

0.0.11 • Public • Published

eslint-plugin-fix

Support auto fix for eslint core rule.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-fix:

$ npm install eslint-plugin-fix --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-fix globally.

Usage

Add fix to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "fix"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "fix/rule-name": 2
    }
}

Supported Rules

Package Sidebar

Install

npm i eslint-plugin-fix

Weekly Downloads

16

Version

0.0.11

License

ISC

Unpacked Size

46.7 kB

Total Files

35

Last publish

Collaborators

  • yeonjuan93