@sparkbox/eslint-config-sparkbox

A set of eslint customizations that we use at Sparkbox.

Usage no npm install needed!

<script type="module">
  import sparkboxEslintConfigSparkbox from 'https://cdn.skypack.dev/@sparkbox/eslint-config-sparkbox';
</script>

README

@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.