Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.28 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.28 KB

@sparkbox/eslint-config-sparkbox

current release

A sharable ESLint config that we use at Sparkbox. This config extends the Airbnb config and includes rule support for:

Usage

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"]
}

Install necessary plugins

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.