4.5.5 • Published 1 year ago
@evaneos/eslint-config-base v4.5.5
ESLint (and Prettier) config
This package provides Evaneos' configs for front projects.
- .eslintrcas an extensible shared config.
- .prettierrcas an importable file
What it does
This setup lints and formats your JavaScript code based on Evaneos practices. Feel free to override the rules that make sense for you.
Installing
- 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 - .eslintrcfile with the following content:- { "extends": [ "@evaneos/eslint-config-base" ] }- If you need to extend the configuration with other plugins, make sure that - eslint-config/prettieris 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.jsfile instead, eg:- module.exports = { ...require('@evaneos/eslint-config-base/.prettierrc.js'), semi: false, };