1.0.5 • Published 6 years ago
eslint-plugin-sales v1.0.5
eslint-plugin-sales
eslint rules for sales project
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-sales:
$ npm install eslint-plugin-sales --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-sales globally.
Usage
Add sales to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["sales"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"sales/used-proxy": "warn",
}
}Supported Rules
- used-let-const
- used-promise
- used-proxy
- used-reflect
- used-symbol
- used-generator
- used-functionToString
- used-setPrototypeOf
- used-stringNormalize
- used-fetch
- used-intl