Package Exports
- @new-black/eva-frontend-config/eslint-config
- @new-black/eva-frontend-config/prettier
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
.prettierrcfile ( if you have one ) and other lint/formatting files you have - add
"prettier": "@new-black/eva-frontend-config/prettier"in yourpackage.jsonfile so eslint has access to the prettier config - add
.eslintrc.jsfile 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.jsfile underrules: {}** these rules have higher priority than the ones imported so you can overwrite imported rules