@comprend/prettier-config
v0.2.0
Published
This is the standard config for Prettier at Comprend.
Downloads
116
Readme
@comprend/prettier
This is the standard config for Prettier at Comprend.
!IMPORTANT: This config needs the path to the Tailwind CSS configuration file to work properly. This is because the plugin prettier-plugin-tailwindcss
needs to know the configuration to work. The path to the configuration file is set in the tailwindConfig
property in the Prettier configuration file.
...
plugins: ['prettier-plugin-tailwindcss', 'prettier-plugin-packagejson'],
tailwindConfig: fileURLToPath(
new URL('../../packages/tailwind/base.ts', import.meta.url),
)
...