@joshunrau/prettier-config
v0.4.0
Published
Prettier configuration for my personal projects
Downloads
15
Readme
Prettier Config
Install
pnpm add -D @joshunrau/prettier-config prettier
Usage
Default Settings
package.json
{
"prettier": "@joshunrau/prettier-config"
}
Customized Settings
prettier.config.js
import { createConfig } from '@joshunrau/prettier-config';
export default createConfig({
astro: false, // requires prettier-plugin-astro
svelte: false, // requires prettier-plugin-svelte
tailwindcss: false // requires prettier-plugin-tailwindcss
});
Git Hook (Optional)
.husky/pre-commit
#!/bin/sh
pnpm exec prettier-pre-commit