Custom Eslint rules for Valtech JavaScript projects.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs/rules
lib
tests/lib/rules
.gitignore
.travis.yml
README.md
package-lock.json
package.json

README.md

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