To use this ESLint config file follow these instructions:
Install ESLint either locally or globally.
$ npm install eslint --save-dev
If you installed ESLint
globally, you have to install the Indec configuration globally too. Otherwise, install it locally.
$ npm install eslint-config-indec --save-dev
Create a .eslintrc.json file in the root folder of your project then add the following code:
{
"extends": "indec"
}
If you work with React you can use the react
configuration:
{
"extends": "indec/react"
}
If you work with React you can use the angular
configuration:
{
"extends": "indec/angular"
}