This packages defines the strict implementation of the HDNET Code Formatting Guidelines from the HDNET Standard Recommendations (HSR-15) as npm package using prettier through a shareable config.
- Install dependencies
$ npm i -D prettier github:HDNET/prettier-config- Create your prettier config file (i.e.
prettier.config.js) and extend from @hdnet/prettier-config:
module.exports = {
...require("@hdnet/prettier-config"),
}To setup current node version, you can use nvm (in this project a .nvmrc file is maintained).