0.2.0 • Published 8 years ago

eslint-plugin-be-consistent v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

eslint-plugin-be-consistent

lint for consistency of rules with in a file not a project

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-be-consistent:

$ npm install eslint-plugin-be-consistent --save-dev

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

Usage

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

{
    "plugins": [
        "be-consistent"
    ]
}

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

{
    "rules": {
        "be-consistent/rule-name": 2
    }
}

Supported Rules

  • quotes - aimed at checking quote consistency within a file and not project.
  • let-const-var - aimed at checking for consistent use of let/const or var in a file not a project.

Contributing

Check out the CONTRIBUTING.md for some pointers and the CODE_OF_CONDUCT.md.

0.2.0

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago