Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-cflint

cloudflare765MIT1.0.0

ESLint rules for CloudFlare

eslint, eslintplugin

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

License

MIT License.