0.0.1 • Published 10 years ago
eslint-plugin-nortal v0.0.1
eslint-plugin-nortal
A collection of eslint rules by Nortal
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-nortal:
$ npm install eslint-plugin-nortal --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-nortal globally.
Usage
Add nortal to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"nortal"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"nortal/rule-name": 2
}
}Supported Rules
- on-destroy - Check for
$on('destroy', ...)misspelling.
0.0.1
10 years ago