0.0.5 • Published 9 years ago
eslint-plugin-nxn-promise v0.0.5
eslint-plugin-nxn-promise
HTTP services should not use success and failure functions. Use then function instead.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-nxn-promise:
$ npm install eslint-plugin-nxn-promise --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-nxn-promise globally.
Usage
Add nxn-promise to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"nxn-promise"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"nxn-promise/rule-name": 2
}
}Supported Rules
- Fill in provided rules here