1.0.0 • Published 8 months ago

bnp-eslint-and-prettier-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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