when use abbreviate to define a object, ensure the abbreviate keys first
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
Add abbreviate-first
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"abbreviate-first"
]
}