The config includes:
- airbnb-config
- prettier integrated with eslint
- react-hooks rules
- Our custom rules
You need to have eslint
, prettier
and babel-eslint
installed.
Then use the provided command to install the config itself.
npm i -D @deliveryhero/logistics-eslint-config
oryarn add -D @deliveryhero/logistics-eslint-config
- Put
"extends": ["./node_modules/@deliveryhero/logistics-eslint-config"]
or"extends": ["./node_modules/@deliveryhero"]
in your.eslintrc
.eslintrc
{
"extends": ["./node_modules/@deliveryhero"]
}
You can use install-peerdeps package to install all the necessary peerDeps.
npx install-peerdeps @logistics/eslint-config --auth %YOUR_NPM_TOKEN% --registry https://nexus.usehurrier.com/repository/logistics-npm-group/