ESLint shareable config used by VI Company
npm install eslint-config-vieslint-config-vi is based on the eslint-config-airbnb-base config. That config is well maintained and we agree with most of the rules set. We extend the eslint-config-airbnb-base with our own rules.
eslint-config-airbnb-base is defined as a peerDependency so it should be installed separately.
eslint-config-airbnb-base also makes use of peerDependencies which also needs to be installed:
.eslintrc.* config file:
js
module.exports = {
extends: 'vi'
};
`
$3
`json
{
"extends": "vi"
}
`
Configuration
The default vi config supports ES2015+ code and targets the browser.
$3
For Node.js development you can use the eslint-config-vi/node config:
$3
`js
module.exports = {
extends: 'eslint-config-vi/node'
};
``