Skip to content

svensigmond/eslint-config-vi

 
 

Repository files navigation

eslint-config-vi

npm Build Status Renovate enabled

This package provides a ESLint shareable config for the VI Company's JS coding style.

Why another config?

We love the Airbnb config, but we don't agree on everything and it's easier to maintain our own config.

Installation

To make use of this config, install ESLint and this package as a development dependency of your project:

npm install eslint eslint-config-vi --save-dev

Usage

Create a .eslintrc.* config file:

.eslintrc.js

module.exports = {
  extends: 'vi'
};

.eslintrc.json

{
  "extends": "vi"
}

Or add the ESLint config to your package.json:

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "extends": "vi"
  }
}

Configuration

The default configuration supports ES2015 (ES6) code.

Legacy code

If you need to support legacy code, you can use the vi/legacy config:

{
  "extends": "vi/legacy"
}

Node.js

For Node.js development you can use the vi/node config:

{
  "extends": "vi/node"
}

Changelog

Read the Changelog

License

MIT © VI Company

About

ESLint shareable config used by VI Company

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%