eslint-plugin-cflint

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-cflint

Weekly Downloads

156

Version

1.0.0

License

MIT

Last publish

Collaborators

  • terinjokes