@bryan-hoang/eslint-config-react ·
My approach to JavaScript linting
This package provides my base React .eslintrc
as an
extensible shared config.
Installing / Getting started
- Installing the packages
If using npm 7+, run
npm install --save-dev @bryan-hoang/eslint-config-react
which will also install its associated peer dependencies.
If not using npm 7+, run the above command and then install the packages
listed by the command:
npm info @bryan-hoang/eslint-config-react@latest peerDependencies
If using npm 5+, use this shortcut
npx install-peerdeps --dev @bryan-hoang/eslint-config-react
If using yarn, you can also use the shortcut described above if you have npm
5+ installed on your machine, as the command will detect that you are using yarn
and will act accordingly. Otherwise, run
npm info "eslint-config-airbnb-base@latest" peerDependencies
to list the peer
dependencies and versions, then run yarn add --dev <dependency>@<version>
for
each listed peer dependency.
- Extending the configuration
Once the config is installed, add
"extends": "@bryan-hoang/eslint-config-react"
to your .eslintrc
file.
Contributing
Take a look at the README.md and
CONTRIBUTING.md for the monorepo.
Licensing
MIT License
Copyright (c) 2021 Bryan Hoang
See LICENSE.