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: 7 months ago
JSON representation
Sveltek's config for Prettier.
- Host: GitHub
- URL: https://github.com/sveltek/prettier-config
- Owner: sveltek
- License: mit
- Created: 2025-03-25T16:59:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T17:55:29.000Z (7 months ago)
- Last Synced: 2025-03-25T18:41:07.684Z (7 months ago)
- Topics: config, configuration, presets, prettier, prettier-config, shareable, svelte, sveltek, sveltekit
- Language: TypeScript
- Homepage:
- Size: 19.5 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
@sveltek/prettier-config
Sveltek's config for Prettier.
## Installation
```sh
pnpm add -D @sveltek/prettier-config
```## Setup
Add a `format` command for manual formatting (optional):
#### package.json
```json
{
"scripts": {
"format": "prettier --write ."
}
}
```## Usage
#### prettier.config.js
```js
export { default } from '@sveltek/prettier-config'
```## Customization
#### prettier.config.js
```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](https://github.com/sveltek/prettier-config/discussions) to get involved.
## License
Developed in ðŸ‡ðŸ‡· Croatia, © Sveltek.
Released under the [MIT](LICENSE.txt) license.