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

https://github.com/hypernym-studio/prettier-config

Hypernym's internal config for Prettier.
https://github.com/hypernym-studio/prettier-config

config configuration esm presets prettier prettier-config shareable

Last synced: 5 months ago
JSON representation

Hypernym's internal config for Prettier.

Awesome Lists containing this project

README

        

Hypernym Prettier Config

Hypernym's internal config for Prettier.


Repository

Package

Releases

Discussions


pnpm add -D @hypernym/prettier-config


## Setup

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

```js
// package.json

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

## Usage

### Simple

```js
// package.json

{
"prettier": "@hypernym/prettier-config"
}
```

```js
// prettier.config.js

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

### Svelte/SvelteKit

> [!NOTE]
>
> Install the required `Svelte` dev dependencies before using:
>
> ```sh
> pnpm add -D prettier-plugin-svelte
> ```

```js
// package.json

{
"prettier": "@hypernym/prettier-config/svelte"
}
```

```js
// prettier.config.js

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

### Custom

```js
// 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](https://github.com/hypernym-studio/prettier-config/discussions) to get involved.

## License

Developed in 🇭🇷 Croatia, © Hypernym Studio.

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