eslint-config-react-jam3

Jam3's ESLint config file for React applications

Usage no npm install needed!

<script type="module">
  import eslintConfigReactJam3 from 'https://cdn.skypack.dev/eslint-config-react-jam3';
</script>

README

eslint-config-react-jam3

This package exposes the Jam3's ESLint config file for React applications.

Installation

Main package

npm i eslint-config-react-jam3 -D

Secondary packages

Because ESLint only exports a configuration file you need to install all the plugins and configs that this file is depending on.

npm i eslint babel-eslint eslint-plugin-import eslint-plugin-promise eslint-plugin-jsx-a11y eslint-plugin-react prettier eslint-config-prettier eslint-plugin-prettier -D

Usage

Once installed eslint-config-react-jam3 add react-jam3 in your extends section of your ESLint configuration

{
  "extends": ["...","react-jam3"],
  "rules": {
    // ...
  }
}

Tests

To run the tests we are using eslint cli passing our configuration by default, if eslint finds an error in the file it will throw and error.

$ npm test

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

Related

License

MIT