A bro will lint and prettify your code
$ yarn add @codementor/bro --dev
To let your editor lint plugin works, you'll need to copy the eslintrc.json
from this package to your project root and rename to .eslintrc.json
.
$ cp node_modules/@codementor/bro/eslintrc.json ./.eslintrc.json
In your package.json
"scripts": {
"lint": "bro \"src/**/*.js\" --fix"
},
"bro": { // all optional
"ignore": [],
"plugins": [],
"envs": [],
"globals": []
}
- how to integrate with editor plugins?
- how to integrate with
snazzy
?