@sveltek/prettier-config

Sveltek's config for Prettier.


Installation

pnpm add -D @sveltek/prettier-config

Setup

Add a format command for manual formatting (optional):

package.json

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

Usage

prettier.config.js

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

Customization

prettier.config.js

import base from '@sveltek/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, © Sveltek.

Released under the MIT license.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes