JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 251
  • Score
    100M100P100Q91340F
  • License ISC

Collection of configs for eva frontend apps

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

  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