ESLint shareable config for the IVWEB JavaScript style guide.
ESLint shareable config for the IVWEB JavaScript style guide.
$ npm install --save-dev eslint eslint-plugin-react eslint-config-ivweb
Once the eslint-config-ivweb
package is installed, you can use it by specifying ivweb
in the extends
section of your ESLint configuration.
{
"extends": "ivweb",
"rules": {
// Additional, per-project rules...
}
}
ivweb
config with eslint:recommended
There are several rules in the eslint:recommended
ruleset that IVWEB style is not opinionated about that you might want to enforce in your project.
To use IVWEB style in conjunction with ESLint's recommended rule set, extend them both, making sure to list ivweb
last:
{
"extends": ["eslint:recommended", "plugin:react/recommended", "ivweb"],
"rules": {
// Additional, per-project rules...
}
}
To see how the ivweb
config compares with eslint:recommended
, refer to the source code of index.js
, which lists every ESLint rule along with whether (and how) it is enforced by the ivweb
config.
Apache-2 © IVWEB