0.2.10 • Published 2 months ago

@new-black/eva-frontend-config v0.2.10

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

eva-frontend-config

Collection of config files for frontend apps

Getting started

eslint + prettier config

  1. all neccessary packages are added as dependencies to this package you can remove all eslint/prettier packages from your project's package.json files
  2. install package
   npm i @new-black/eva-frontend-config
  1. delete .prettierrc file ( if you have one ) and other lint/formatting files you have
  2. add "prettier": "@new-black/eva-frontend-config/prettier" in your package.json file so eslint has access to the prettier config
  3. add .eslintrc.js file in your project root with the following code
module.exports = {
  extends: require.resolve("@new-black/eva-frontend-config/eslint-config"),
};
  1. to add project-specific rules you can add them in the above .eslintrc.js file under rules: {}

    ** these rules have higher priority than the ones imported so you can overwrite imported rules