npm.io
1.0.0 • Published 3 years ago

bnp-eslint-and-prettier-config

Licence
MIT
Version
1.0.0
Deps
6
Size
3 kB
Vulns
0
Weekly
0

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
};

Keywords