Shareable eslint config for 4front. Extends eslint-config-airbnb with a small number of customizations.
There are 3 different configs provided: legacy
, react
, and es6
.
npm install --save-dev eslint-config-4front eslint
Put the following in your .eslintrc
:
{
"extends": "4front/es5"
}
npm install --save-dev eslint-config-4front babel-eslint eslint
Put the following in your .eslintrc
:
{
"extends": "4front/es6"
}
Assumes React apps are written in ES6 and transpiled with Babel.
npm install --save-dev eslint-config-4front babel-eslint eslint-plugin-react eslint
Put the following in your .eslintrc
:
{
"extends": "4front/react"
}