@douglasneuroinformatics/prettier-config
v0.0.1
Published
Prettier configuration for DNP projects
Downloads
389
Readme
Install
pnpm add -D @douglasneuroinformatics/prettier-config prettier
Usage
Default Settings
package.json
{
"prettier": "@douglasneuroinformatics/prettier-config"
}
Customized Settings
prettier.config.js
import { createConfig } from '@douglasneuroinformatics/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