https://github.com/vicompany/eslint-config-vi
ESLint shareable config used by VI Company
https://github.com/vicompany/eslint-config-vi
config eslint javascript linting
Last synced: 8 months ago
JSON representation
ESLint shareable config used by VI Company
- Host: GitHub
- URL: https://github.com/vicompany/eslint-config-vi
- Owner: vicompany
- License: mit
- Created: 2016-03-25T15:50:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T23:45:06.000Z (over 3 years ago)
- Last Synced: 2025-09-24T01:58:11.094Z (8 months ago)
- Topics: config, eslint, javascript, linting
- Language: JavaScript
- Homepage:
- Size: 386 KB
- Stars: 1
- Watchers: 6
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-vi
[](https://npm.im/eslint-config-vi)
[](https://travis-ci.org/vicompany/eslint-config-vi)
[](https://renovateapp.com/)
This package provides an ESLint config for the VI Company's JS coding style.
## Why another config?
The `eslint-config-vi` is based on the [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/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.
The `eslint-config-airbnb-base` is defined as a peerDependency so it should be installed separately.
## Installation
To make use of this config, install this package and its peerDepencies as a development dependencies of your project. `eslint-config-airbnb-base` also makes use of peerDependencies which also needs to be installed:
npx install-peerdeps eslint-config-vi
npx install-peerdeps eslint-config-airbnb-base -o
## Usage
Create a [`.eslintrc.*`](http://eslint.org/docs/user-guide/configuring#configuration-file-formats) config file:
### .eslintrc.js
```js
module.exports = {
extends: 'vi'
};
```
### .eslintrc.json
```json
{
"extends": "vi"
}
```
## Configuration
The default [`vi`](config/esnext.js) config supports ES2015+ code and targets the browser.
### Node.js
For Node.js development you can use the [`eslint-config-vi/node`](./node.js) config:
### .eslintrc.js
```js
module.exports = {
extends: 'eslint-config-vi/node'
};
```
## Changelog
Read the [Changelog](CHANGELOG.md)
## License
MIT © [VI Company](http://vicompany.nl)