ESLint configuration for React/ReactHooks
npm install @axellero/eslint-config-reactESLint configuration for React/ReactHooks
src="https://github.com/axellero-io/eslint/workflows/Lint%20and%20Test/badge.svg"
alt="axellero/eslint repository github workflow status"
/>
src="https://img.shields.io/github/license/axellero-io/eslint?label=License"
alt="axellero/eslint repository license"
/>
src="https://img.shields.io/npm/v/@axellero/eslint-config-react?color=blue&logo=npm&label="
alt="@axellero/eslint-config-react"
/>
shell
$ yarn add -D eslint eslint-plugin-react eslint-plugin-react-hooks
`
...then install config packages:
`shell
$ yarn add -D @axellero/eslint-config-react
`Usage
`json5
{
// package.json
"eslintConfig": {
"extends": [
"@axellero/eslint-config-react"
]
}
}
``