@dooboo/eslint-config-react
v1.4.3
Published
ESLint config for React only
Downloads
29
Readme
@dooboo/eslint-config-react
Installation
yarn add -D eslint @dooboo/eslint-config-react prettier
Note: We're using
yarn
to install deps. Feel free to change commands to usenpm
3+ andnpx
if you like.
Usage
Add to your eslint config (.eslintrc
, or eslintConfig
field in package.json
):
{
"extends": "@dooboo/eslint-config-react"
}
For yarn berry user
Extra installation required for user who use yarn berry (pnp). They do not install dependencies in packages.
yarn add -D prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-eslint-comments eslint-plugin-react eslint-plugin-react-hooks @typescript-eslint/eslint-plugin @typescript-eslint/parser