1.0.1 • Published 9 years ago
eslint-plugin-moonstick v1.0.1
eslint-plugin-moonstick
custom linting rules for moonstick
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-moonstick:
$ npm install eslint-plugin-moonstick --save-devNote: 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