Sveltek's config for Prettier.
pnpm add -D @sveltek/prettier-configAdd a format command for manual formatting (optional):
// package.json
{
"scripts": {
"format": "prettier --write ."
}
}// prettier.config.js
export { default } from '@sveltek/prettier-config'// prettier.config.js
import base from '@sveltek/prettier-config'
/** @type {import("prettier").Config} */
const config = {
...base,
singleQuote: false,
// ...
}
export default configFeel free to ask questions or share new ideas.
Use the official discussions to get involved.
Developed in 🇭🇷 Croatia, © Sveltek.
Released under the MIT license.