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.
- Host: GitHub
- URL: https://github.com/hypernym-studio/prettier-config
- Owner: hypernym-studio
- License: mit
- Created: 2023-06-29T15:44:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-03T13:19:09.000Z (7 months ago)
- Last Synced: 2024-12-28T19:02:38.316Z (5 months ago)
- Topics: config, configuration, esm, presets, prettier, prettier-config, shareable
- Language: TypeScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Codeowners: .github/codeowners
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.jsexport { 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.jsexport { default } from '@hypernym/prettier-config/svelte'
```### Custom
```js
// prettier.config.jsimport 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.