eslint-config-react
My personal ESLint config for React projects.
Usage
Install:
npm install --save-dev @joaopalmeiro/eslint-config-react
or
yarn add --dev @joaopalmeiro/eslint-config-react
or
pnpm add --save-dev @joaopalmeiro/eslint-config-react
Add the .eslintrc.json
file to the project::
{
"extends": "@joaopalmeiro/eslint-config-react"
}
References
- @joaopalmeiro/prettier-config package.
- Shareable Configs documentation.
- How to Create Your Own ESLint Config Package blog post by Leonardo Faria.
- eslint-config-wesbos package.
- eslint-config-kentcdodds package.
- eslint-config-alloy package.
Development
-
npm install
. -
npm pack --dry-run
.
Deployment
-
npm version minor
ornpm version patch
ornpm version major
. -
git push --follow-tags
.
Notes
-
npm install --save-peer eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint-plugin-import
. - eslint-find-rules.
- Range Ignore (Prettier).