This repository is deprecated. Please refer to front-config monorepo.
This package provides Evaneos' configs for front projects.
.eslintrc
as an extensible shared config..prettierrc
as an importable file
This setup lints and formats your JavaScript code based on Evaneos practices. Feel free to override the rules that make sense for you.
-
In your project folder, run:
npm i -D @evaneos/eslint-config-base npx install-peerdeps --dev @evaneos/eslint-config-base
You will see several dependencies were installed.
-
Now, create (or update) a
.eslintrc
file with the following content:{ "extends": [ "@evaneos/eslint-config-base" ] }
If you need to extend the configuration with other plugins, make sure that
@evaneos/eslint-config-base/prettier
is the last item of the array{ "extends": [ "@evaneos/eslint-config-base", ..., "@evaneos/eslint-config-base/prettier", ] }
-
Add prettier config to your
package.json
{ "prettier": "@evaneos/eslint-config-base/.prettierrc.js" }
If you want to override it, you'll have to spread the config into a
.prettierrc.js
file instead, eg:module.exports = { ...require('@evaneos/eslint-config-base/.prettierrc.js'), semi: false, };