@hiddenraven/prettier-config
v0.2.5
Published
Install `@hiddenraven/prettier-config`
Downloads
166
Readme
Installation
Install @hiddenraven/prettier-config
pnpm add -D prettier @hiddenraven/prettier-config
Then add the config to your package.json
:
package.json
{
"prettier": "@hiddenraven"
}
If you project uses TailwindCSS
package.json
{
"prettier": "@hiddenraven/prettier-config/with-tailwind"
}
If you want to extend the configuraiton, for example if you need to specify a custom tailwind config path:
Instead of adding the prettier
key to your package.json
, create a prettier.config.mjs
and add the following lines to it.
// prettier.config.mjs
import config from '@hiddenraven/prettier-config/with-tailwind'
export default {
// If your tailwind.config is not at the root of the project
tailwindConfig: './path/to/tailwind.config.ts'
// Any other overwritten rules...
}