https://github.com/douglasneuroinformatics/prettier-config
Prettier configuration for DNP projects
https://github.com/douglasneuroinformatics/prettier-config
Last synced: 5 months ago
JSON representation
Prettier configuration for DNP projects
- Host: GitHub
- URL: https://github.com/douglasneuroinformatics/prettier-config
- Owner: DouglasNeuroInformatics
- License: apache-2.0
- Created: 2024-07-19T13:51:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-29T15:44:35.000Z (about 1 year ago)
- Last Synced: 2025-09-02T01:39:12.484Z (11 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@douglasneuroinformatics/prettier-config
- Size: 184 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


## Install
```shell
pnpm add -D @douglasneuroinformatics/prettier-config prettier
```
## Usage
### Default Settings
**package.json**
```json
{
"prettier": "@douglasneuroinformatics/prettier-config"
}
```
### Customized Settings
**prettier.config.js**
```javascript
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**
```sh
#!/bin/sh
pnpm exec prettier-pre-commit
```