Use Stacks ecosystem prettier config
Opened this issue · 2 comments
kyranjamie commented
It'd be great if code could follow consistent formatting with the rest of Stack ecosystem code.
The config is shared as a npm package here https://www.npmjs.com/package/@stacks/prettier-config
kyranjamie commented
I see that @stacks/prettier-config
has been added as a package, but it hasn't been configured.
It can be set by adding this line to the package.json
, otherwise editors don't know which config to use.
"prettier": "@stacks/prettier-config",
Further, it can be a devDependency
, not a dependency
.
We have this command ran as a github action to ensure that all code is formatted consistently
"lint:prettier": "prettier --check \"{src,tests}/**/*.{ts,tsx}\" \"*.{js,json}\"",