A sharable ESLint config that we use at Sparkbox. This config extends the Airbnb config and includes rule support for:
npm install --save-dev @sparkbox/eslint-config-sparkbox
or
yarn add @sparkbox/eslint-config-sparkbox --dev
Use extends syntax in your .eslintrc
file:
{
"extends": ["@sparkbox/eslint-config-sparkbox"]
}
npm i -D eslint eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-import eslint-plugin-flowtype babel-eslint
Note: Depending on your editor setup you may need eslint-cli installed globally via npm i eslint-cli -g
.