medooze / eslint-plugin-key-spacing-indent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 🔧

About

License:MIT License


Languages

Language:JavaScript 100.0%