0.2.0 • Published 5 years ago

eslint-plugin-m99coder v0.2.0

Weekly downloads
19
License
MIT
Repository
github
Last release
5 years ago

eslint plugin m99coder npm Version npm Downloads

A collection of useful ESLint rules.

Build Status Test Coverage npm Dependencies npm devDependencies

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-config-m99coder and eslint-plugin-m99coder:

$ npm install eslint-config-m99coder eslint-plugin-m99coder --save-dev

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

Usage

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

{
    "plugins": [
        "m99coder"
    ]
}

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

{
    "rules": {
        "m99coder/rule-name": 2
    }
}

Supported Rules

  • vars-on-top