0.0.6 • Published 8 years ago

eslint-plugin-custom v0.0.6

Weekly downloads
321
License
MIT
Repository
-
Last release
8 years ago

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