1.0.0 • Published 4 years ago
eslint-plugin-js-rules v1.0.0
eslint-plugin-custom-javascript-rule
custome styleguide plugin
Enforce filter(Boolean)
instead filter(x => x)
use () => {}
instead _.partial
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-custom-javascript-rule
:
$ npm install eslint-plugin-custom-javascript-rule --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-custom-javascript-rule
globally.
Usage
Add custom-javascript-rule
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"custom-javascript-rule"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"custom-javascript-rule/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here
1.0.0
4 years ago