Shareable eslint config for 4front. Extends eslint-config-airbnb with a small number of customizations.
Usage
There are 3 different configs provided: legacy
, react
, and es6
.
eslint-config-4front/es5
npm install --save-dev eslint-config-4front eslint
Put the following in your .eslintrc
:
eslint-config-4front/es6
npm install --save-dev eslint-config-4front babel-eslint eslint
Put the following in your .eslintrc
:
eslint-config-4front/react
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
: