@bradgarropy/eslint-config-react

⚛️ react eslint configuration

Usage no npm install needed!

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

README

⚛️ eslint-config-react

npm npm

My personal eslint configuration for react.

📦 Installation

This package is hosted on npm.

Install the configuration and it's peer dependencies as a development dependency.

npx install-peerdeps --dev @bradgarropy/eslint-config-react

This installs peer dependencies automatically using npx and install-peerdeps so you don't have to!

🥑 Usage

Create an .eslintrc file in the root of your project and tell it to extend the configuration.

{
    extends: "@bradgarropy/eslint-config-react"
}

You can add more ESLint configuration options in this file if you want.

❔ Questions

If you have any trouble, definitely open an issue and I'll take a look.

Or you can consult the ESLint Shareable Configs documentation.

And if all else fails, you can ask me directly on Twitter or my AMA.