Shareable eslint plugins that are used by our shareable config rules. See eslint-config-silvermine for more details.
Because we need it. Whitespace errors are evil. As are the other hundreds of types of errors this protects us from.
You'll first need to install ESLint:
$ npm install eslint --save-dev
Next, install eslint-plugin-silvermine
:
$ npm install eslint-plugin-silvermine --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-silvermine
globally.
Add silvermine
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"silvermine"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"silvermine/fluent-chaining": 2
}
}
This software is released under the MIT license. See the license file for more details.