eslint-plugin-abbreviate-first

when use abbreviate to define a object, ensure the abbreviate keys first

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-abbreviate-first:

npm install eslint-plugin-abbreviate-first --save-dev

Usage

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

{
    "plugins": [
        "abbreviate-first"
    ]
}