eslint-plugin-moonstick
v1.0.1
Published
custom linting rules for moonstick
Downloads
10
Maintainers
Readme
eslint-plugin-moonstick
custom linting rules for moonstick
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-moonstick
:
$ npm install eslint-plugin-moonstick --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-moonstick
globally.
Usage
Add moonstick
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"moonstick"
]
}
Then configure the rules you want to use under the rules section.
{
// 0 for ignore
// 1 for warning
// 2 for error
"rules": {
"moonstick/rule-name": 2
}
}
Supported Rules
- no-clone-deep - Warns not to use _.cloneDeep