diff --git a/bun.lockb b/bun.lockb index 285cb86..f1de764 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/justfile b/justfile index 8750bfe..e295bf9 100644 --- a/justfile +++ b/justfile @@ -88,3 +88,6 @@ deploy: #!/usr/bin/env bash docker compose up -d --wait docker exec -it am-d-modeleu-worker-1 setup.sh + +fmt: + bun run prettier --write "**/*.{js,jsx,ts,tsx,html,css,scss,sass,svelte,yaml,json,markdown}" diff --git a/package.json b/package.json index 4f5b123..4be98eb 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,9 @@ "@sveltejs/vite-plugin-svelte": "^4.0.4", "autoprefixer": "^10.4.20", "globals": "^15.14.0", - "publint": "^0.2.12", "prettier": "^3.4.2", + "prettier-plugin-svelte": "^3.3.3", + "publint": "^0.2.12", "sass": "^1.83.1", "svelte": "^5.17.3", "svelte-preprocess": "^5.1.4", diff --git a/prettier.config.js b/prettier.config.js index e18157b..2972530 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -3,6 +3,15 @@ const config = { tabWidth: 4, trailingComma: "all", printWidth: 100, + plugins: ["prettier-plugin-svelte"], + overrides: [ + { + files: "*.svelte", + options: { + parser: "svelte", + }, + }, + ], }; export default config;