JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q50990F
  • License MIT

Assorted custom Chotot ESLint rules

Package Exports

  • eslint-plugin-chotot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-chotot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

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