A collection of useful ESLint rules.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-config-m99coder
and eslint-plugin-m99coder
:
$ npm install eslint-config-m99coder eslint-plugin-m99coder --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install the packages globally.
Usage
Add m99coder
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"m99coder"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"m99coder/rule-name": 2
}
}
Supported Rules
vars-on-top