eslint-plugin-chotot

4.0.0 • Public • Published

eslint-plugin-chotot

Collection of custom ESLint rules that are used by eslint-config-chotot

Propose or contribute a new rule

Install

$ npm install --save-dev eslint eslint-plugin-unicorn

Usage

Configure it in package.json.

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "env": {
      "es6": true
    },
    "parserOptions": {
      "ecmaVersion": 2020,
      "sourceType": "module"
    },
    "plugins": ["chotot"],
    "rules": {
      "chotot/filename-case": "error",
      "chotot/no-abusive-eslint-disable": "error"
    }
  }
}

Rules

Recommended config

This plugin exports a recommended config that enforces good practices.

Enable it in your package.json with the extends option:

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "extends": "plugin:chotot/recommended"
  }
}

See the ESLint docs for more information about extending config files.

Note: This config will also enable the correct parser options and environment.

Thanks

Package Sidebar

Install

npm i eslint-plugin-chotot

Weekly Downloads

0

Version

4.0.0

License

MIT

Unpacked Size

124 kB

Total Files

96

Last publish

Collaborators

  • chototoss