@edenhealth/eslint-config-eve
v1.3.1
Published
[![npm (scoped)][npm-badge]][npm-link]
Downloads
30
Readme
@edenhealth/eslint-config-eve
What is this?
An eslint shareable config for Eden front-end projects.
How do I use it?
Install the NPM package:
$ yarn add -D @edenhealth/eslint-config-eve
Create or modify your .eslintrc.js
file to contain the following:
module.exports = require('@edenhealth/eslint-config-eve')
Finally, you'll need to declare a custom lint
step in your package.json
to
use the eslint binary bundled with the package; this is due to a long-standing
shortcoming in eslint that would otherwise require installing
each of the eslint-plugin-*
peer dependencies manually, which obviously
eliminates some of the convenience of having a shared config in the first place.
The best workaround I've found looks like this:
"scripts": {
"lint": "node_modules/@edenhealth/eslint-config-eve/node_modules/.bin/eslint src/",
}