@volvo-cars/eslint-config-react

React code quality eslint configuration for volvocars javascript projects

Usage no npm install needed!

<script type="module">
  import volvoCarsEslintConfigReact from 'https://cdn.skypack.dev/@volvo-cars/eslint-config-react';
</script>

README

@volvo-cars/eslint-config-react

Code quality rules for react. For more on eslint sharable configs click here.

Requirements

Expects eslint to be installed.

usage

This package expects that you have eslint installed.

// .eslintrc
{
    "extends": ["@volvo-cars/eslint-config-react"]
}

Development

This package has the react configuration that plays nice with our prettier configs @volvo-cars/prettier. In case you add/change a rule, make sure that they are code quality rules and not formatting ones. To verify this run yarn run test. You should get the following message if all is good:

No rules that are unnecessary or conflict with Prettier were found.