Yanotec ESLint config for ReactJS apps
Whats included?
- Airbnb config base;
- Prettier;
Setup
- Install the dependencies
npm i -D eslint @yanotec/eslint-config-reactjs
- Create a
.eslintrc.json
file extending the config:
for ts project
{
"extends": "@yanotec/eslint-config-reactjs/ts-recommended"
}
or js project
{
"extends": "@yanotec/eslint-config-reactjs/js-recommended"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.