An open API service indexing awesome lists of open source software.

https://github.com/sveltek/prettier-config

Sveltek's config for Prettier.
https://github.com/sveltek/prettier-config

config configuration presets prettier prettier-config shareable svelte sveltek sveltekit

Last synced: 19 days ago
JSON representation

Sveltek's config for Prettier.

Awesome Lists containing this project

README

          

@sveltek/prettier-config

Sveltek's config for Prettier.


## Installation

```sh
pnpm add -D @sveltek/prettier-config
```

## Usage

### Formatting Commands

Add a `format` command for manual formatting (optional):

```js
// package.json

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

### Default Config

```js
// prettier.config.js

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

## Custom Setup

```js
// prettier.config.js

import base from '@sveltek/prettier-config'

/** @type {import("prettier").Config} */
const config = {
...base,
singleQuote: false,
// ...
}

export default config
```

## License

Developed in 🇭🇷 Croatia, © Sveltek.

Released under the [MIT](LICENSE.txt) license.