@azat-io/eslint-config-react
Shareable ESLint config for React projects.
See docs for a list of all rules.
Installation
- Install package:
pnpm add --save-dev eslint @azat-io/eslint-config-react @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-n eslint-plugin-node-import eslint-plugin-perfectionist eslint-plugin-prefer-arrow eslint-plugin-prefer-let eslint-plugin-promise eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-sonarjs eslint-plugin-testing-library eslint-plugin-unicorn eslint-plugin-vitest
- Create ESLint configuration file
eslint.config.js
:
import eslintConfig from '@azat-io/eslint-config-react'
export default eslintConfig
- Add script for package.json:
{
"scripts": {
"lint": "eslint .",
}
}