eslint-config-tidy-react

ESLint shareable config for React with Tidy style

Usage no npm install needed!

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

README

eslint-config-tidy-react Build status for ESLint Config Tidy React

ESLint shareable config for React with Tidy style

Note that this only enables rules related to React. You probably want to compose this with other configs, such as eslint-config-tidy (as shown below), to make your perfect setup.

Why?

  • Consistency.
  • Clarity.
  • Simplicity.

Install

npm install eslint-config-tidy eslint-config-tidy-react eslint-plugin-react --save-dev

Usage

All you have to do is tell your linter to use this config.

Use with XO (recommended)

Add some XO config to your package.json:

{
    "name": "my-awesome-project",
    "xo": {
        "extend": ["tidy", "tidy-react"]
    }
}

Alternatively, use with ESLint

Add some ESLint config to your package.json:

{
    "name": "my-awesome-project",
    "eslintConfig": {
        "extends": ["tidy", "tidy-react"]
    }
}

Related

Contributing

See our contributing guidelines for more details.

  1. Fork it.
  2. Make a feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

License

MPL-2.0 © Seth Holladay

Go make something, dang it.