eslint-plugin-custom

0.0.6 • Public • Published

eslint-plugin-custom

Custom rules for node.js projects

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-custom:

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

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-custom globally.

Usage

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

{
    "plugins": [
        "custom"
    ]
}

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

{
    "rules": {
        "custom/log": 2
    }
}

Supported Rules

  • log

Package Sidebar

Install

npm i eslint-plugin-custom

Weekly Downloads

298

Version

0.0.6

License

MIT

Last publish

Collaborators

  • jebu
  • parinck