eslint-plugin-cflint
v1.0.0
Published
ESLint rules for CloudFlare
Downloads
1,221
Readme
eslint-plugin-cflint
CloudFlare specific listing rules for ESLint.
Installation
Install ESLint either locally or globally.
$ npm install eslint
If you installed ESLint
globally, you have to install CFLint plugin globally too.
Otherwise, install it locally.
$ npm install eslint-plugin-cflint
Configuration
First, add cflint
to your ESLint configuration's "plugin" section.
{
"plugins": [
"cflint"
]
}
Then, enable all of the rules that you would like to use.
{
"rules": {
"cflint/no-substr": 1,
"cflint/no-this-assignment": 1
}
}
List of supported rules
- no-substr: Prevent usage of
String.prototype.substr
- no-this-assignment: Prevent assignment of
this