- Install the configuration
npm i -D eslint-config-airbnb-react-typescript-prettier
- Install the peer dependencies of the config
If using npm >5
npx install-peerdeps --dev eslint-config-airbnb-react-typescript-prettier
If using npm <5
npm info "eslint-config-airbnb-react-typescript-prettier@latest" peerDependencies
And then you need to install each peer dependency manually
- Extends your eslint configuration with this one
{
"extends": ["eslint-config-airbnb-react-typescript-prettier"]
}
- Don't forget to make your own
.prettier
(you can use the one we provide in the repo) - Don't forget to also make your own
tsconfig.json
(you can also use the one we provide in the repo) - Enjoy using our configuration !