README
code-style
VC Lab's code style repo.
Getting Started
In your project, install
vclabs-code-style
as a dev dependency:yarn add -D vclabs-code-style
In the root of your project, create a
.eslintrc.yml
file with the following content:extends: - './node_modules/vclabs-code-style/<choose-your-file>.yml' parser: babel-eslint
The available templates are:
eslint-es6.yml
: Plain ES6 rules.eslint-es6-react.yml
: The above, plus React-specific rules.eslint-react-a11y.yml
: The above, plus a11y-specific rules.
In your project, install
eslint
as a dev dependency:yarn add -DE eslint