0.0.1 • Published 7 years ago
eslint-config-eslint-2 v0.0.1
eslintrc
This is just our internal .eslintrc. We might end up open sourcing it sometime, but it doesn't need to be open source.
Usage
At the command line, run npm install --save-dev @influxdata/eslint-config-eslint
.
In your source folder or in the root of your project, make a file named .eslintrc
.
Libraries will look like this:
{
"extends": "@influxdata/eslint"
}
React/browser projects should look like:
{
"extends": ["@influxdata/eslint", "@influxdata/eslint/react"],
"env": {
"browser": true
}
}
If you're using our standard Jasmine testing approach, make spec/.eslintrc
contain:
{
"extends": ["../.eslintrc", "@influxdata/eslint/jasmine"]
}
Versioning
The major version tracks the major version of eslint. Changes that would require a code change (e.g. tightening rules) should bump the minor version.
0.0.1
7 years ago