bnp-eslint-and-prettier-config
v1.0.0
Published
Eslint and prettier configs for React projects
Downloads
6
Readme
BNP ESLint config for React
Configs for React only
Setup
1 - Install as a dev dependencie
npm i -D bnp-eslint-and-prettier-config
2 - Create a .eslintrc.json
file extending the config:
{
"extends": "bnp-eslint-and-prettier-config/reactEslint.js"
// In NextJs project: "extends": ["next/core-web-vitals", "bnp-eslint-and-prettier-config/reactEslint.js" ]
}
3 - Create a .prettierrc.js
file extending the config:
module.exports = {
...require("bnp-eslint-and-prettier-config/reactPrettier"),
// Your another configs
};