0.0.2 • Published 3 years ago
eslint-plugin-x-promise v0.0.2
eslint-plugin-x-promise
promise or await not in loop
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-x-promise
:
npm install eslint-plugin-x-promise --save-dev
Usage
Add x-promise
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"x-promise"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"x-promise/promise": 2
}
}
Supported Rules
- Fill in provided rules here