Package Exports
- @ewmarkets/prettier-node
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 (@ewmarkets/prettier-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Prettier EWM NodeJS
Adds the Prettier and ESLINT format that we use.
If husky
is added, then it will run on every new commit
npm i --save-dev @ewmarkets/prettier-node
Edit your package.json file
# package.json
{
...
"prettier": "@ewmarkets/prettier-node",
# to run it manually
"scripts": {
...
"prettier": "prettier --write \"./**/*.{js,jsx}\""
}
# to run on new commit
"husky": {
"hooks":{
"pre-commit": "pretty-quick --staged"
}
}
}