@hypernym/prettier-config
v3.2.1
Published
Hypernym's internal config for Prettier.
Downloads
80
Readme
Setup
Add a format
command for manual formatting (optionally):
// package.json
{
"scripts": {
"format": "prettier --write .",
}
}
Usage
Simple
// package.json
{
"prettier": "@hypernym/prettier-config"
}
// prettier.config.js
export { default } from '@hypernym/prettier-config'
Svelte/SvelteKit
[!NOTE]
Install the required
Svelte
dev dependencies before using:pnpm add -D prettier-plugin-svelte
// package.json
{
"prettier": "@hypernym/prettier-config/svelte"
}
// prettier.config.js
export { default } from '@hypernym/prettier-config/svelte'
Custom
// prettier.config.js
import base from '@hypernym/prettier-config'
const config = {
...base,
singleQuote: false,
// ...
}
export default config
Community
Feel free to ask questions or share new ideas.
Use the official discussions to get involved.
License
Developed in 🇭🇷 Croatia, © Hypernym Studio.
Released under the MIT license.