eslint-plugin-medooze
v1.2.0
Published
eslint-plugin-medooze
Downloads
183
Readme
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 | 🔧 |