eslint-plugin-ei

0.0.2 • Public • Published

eslint-plugin-ei

eslint rules for ei

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-ei:

npm install eslint-plugin-ei --save-dev

Usage

Add ei to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "ei"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
      "ei/add-function-comment": ["warn", {
        "require": {
          // Default configuration
          "FunctionExpression": true,
          "MethodDefinition": true,
          "ArrowFunctionExpression": true,
          "FunctionDeclaration": true,
          "skipComments": true,
          "skipBlankLines": true,
          "minLineCountForComments": 30,
        },
      }]
    }
}

Supported Rules

  • Fill in provided rules here

Package Sidebar

Install

npm i eslint-plugin-ei

Weekly Downloads

4

Version

0.0.2

License

ISC

Unpacked Size

10.9 kB

Total Files

7

Last publish

Collaborators

  • evan_117010417