- Install peer dependencies
1.1 Pure Js
yarn add -D eslint babel-eslint eslint-config-airbnb-base eslint-plugin-import
1.2 React
yarn add -D eslint babel-eslint eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-import
1.3 AngularJs
yarn add -D eslint eslint-plugin-angular
- Install this package
yarn add -D weslley39/redspark-eslint-config
- Add config into your .eslintrc file for use
Pure Js
{
"extends": "@redspark"
}
3.1. Add config into your .eslintrc file for use AngularJs
{
"extends": "@redspark/eslint-config/angular"
}
3.2. Add config into your .eslintrc file for use React
{
"extends": "@redspark/eslint-config/react"
}
Obs: To use with Gulp, please install
yarn add -D gulp-eslint