Package Exports
- @codementor/bro
- @codementor/bro/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@codementor/bro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bro
A bro will lint and prettify your code
What's inside
Installation
$ 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
Config
In your package.json
"scripts": {
"lint": "bro \"src/**/*.js\" --fix"
},
"bro": { // all optional
"ignore": [],
"plugins": [],
"envs": [],
"globals": []
}
Todo
- how to integrate with editor plugins?
- how to integrate with
snazzy
?