npm.io
1.2.0 • Published 3 years ago

eslint-plugin-medooze

Licence
ISC
Version
1.2.0
Deps
2
Size
46 kB
Vulns
0
Weekly
0

eslint-plugin-key-spacing-indent

key-spacing-indent

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-key-spacing-indent:

npm install eslint-plugin-key-spacing-indent --save-dev

Usage

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

{
    "plugins": [
        "key-spacing-indent"
    ]
}

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

{
    "rules": {
        "key-spacing-indent/rule-name": 2
    }
}

Rules

Automatically fixable by the --fix CLI option.

Name Description
key-spacing-indent Enforce consistent spacing between keys and values in object literal properties

Keywords