ESLint shareable config for the recommended EquityBee JavaScript style
$ npm install --save-dev eslint eslint-config-equitybee
Once the eslint-config-equitybee package is installed, you can use it by specifying equitybee in the extends section of your ESLint configuration.
{
"extends": "equitybee",
"rules": {
// Additional, per-project rules...
}
}There are several rules in the eslint:recommended ruleset that EquityBee style is not opinionated about that you might want to enforce in your project.
To use the EquityBee style in conjunction with ESLint's recommended rule set, extend them both, making sure to list equitybee last:
{
"extends": ["eslint:recommended", "equitybee"],
"rules": {
// Additional, per-project rules...
}
}-
Test your changes by running
npm link. Then open EquityBee's main app repo,cdinto a service you want to test and runnpm link /Users/{YOUR_USERNAME}/{YOUR_LOCAL_PATH}/eslint-config-equitybee. Finally, modify the config import"eslint-config-equitybee": "/Users/{YOUR_USERNAME}/{YOUR_LOCAL_PATH}/eslint-config-equitybee"in the service'spackage.json. For more information on testing shareable ESLint configs, read this. -
Run:
npm run release
and follow the interactive instructions.
- Open EquityBee's main app repo and
cdinto every service and runnpm update eslint-config-equitybee, thennpm i.
Apache-2 © EquityBee