Skip to content

hypernym-studio/prettier-config

Repository files navigation

@hypernym/prettier-config

Hypernym's internal config for Prettier.

Repository Package Releases Discussions


pnpm add -D @hypernym/prettier-config

Usage

Formatting Commands

Add a format command for manual formatting (optional):

// package.json

{
  "scripts": {
    "format": "prettier --write ."
  }
}

Default Config

// prettier.config.mjs

export { default } from '@hypernym/prettier-config'

Svelte/SvelteKit

Note

Install the required Svelte dev dependencies before using:

pnpm add -D prettier-plugin-svelte
// prettier.config.mjs

export { default } from '@hypernym/prettier-config/svelte'

Custom Setup

// prettier.config.mjs

import base from '@hypernym/prettier-config'

/** @type {import("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.

About

Hypernym's internal config for Prettier.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published