@bryan-hoang/eslint-config-typescript ·
My approach to JavaScript linting
This package provides my base Typescript
.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-typescript
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-typescript@latest peerDependencies
If using npm 5+, use this shortcut
npx install-peerdeps --dev @bryan-hoang/eslint-config-typescript
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-typescript"
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.