Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.11 KB

eslint-plugin-valtech Travis CI

Custom Eslint rules for Valtech JavaScript projects.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-valtech:

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

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

Usage

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

{
    "plugins": [
        "valtech"
    ]
}

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

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

Supported Rules