Prettier shareable config for code style.
pnpm add -D @soyhuce/prettier-config
# with Prettier
pnpm add -D prettier @soyhuce/prettier-config
In order to use this config, choose the one you want and add this configuration to your package.json
:
{
+ "prettier": "@soyhuce/prettier-config"
}
Or add a .prettierrc.js
file to your project root containing:
module.exports = {
+ ...require('@soyhuce/prettier-config')
}
MIT