@new-black/eva-frontend-config
v0.4.17
Published
Collection of configs for eva frontend apps
Downloads
1,974
Readme
eva-frontend-config
Collection of config files for frontend apps
Getting started
eslint + prettier config
- all neccessary packages are added as dependencies to this package you can remove all eslint/prettier packages from your project's package.json files
- install package
npm i @new-black/eva-frontend-config
- delete
.prettierrc
file ( if you have one ) and other lint/formatting files you have - add
"prettier": "@new-black/eva-frontend-config/prettier"
in yourpackage.json
file so eslint has access to the prettier config - add
.eslintrc.js
file in your project root with the following code
module.exports = {
extends: require.resolve("@new-black/eva-frontend-config/eslint-config"),
};
to add project-specific rules you can add them in the above
.eslintrc.js
file underrules: {}
** these rules have higher priority than the ones imported so you can overwrite imported rules