Added prettier formatting

This commit is contained in:
2025-02-11 00:58:37 +00:00
parent 80fe6c785f
commit e614806eac
4 changed files with 14 additions and 1 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -88,3 +88,6 @@ deploy:
#!/usr/bin/env bash #!/usr/bin/env bash
docker compose up -d --wait docker compose up -d --wait
docker exec -it am-d-modeleu-worker-1 setup.sh 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}"

View File

@@ -16,8 +16,9 @@
"@sveltejs/vite-plugin-svelte": "^4.0.4", "@sveltejs/vite-plugin-svelte": "^4.0.4",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"globals": "^15.14.0", "globals": "^15.14.0",
"publint": "^0.2.12",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.3",
"publint": "^0.2.12",
"sass": "^1.83.1", "sass": "^1.83.1",
"svelte": "^5.17.3", "svelte": "^5.17.3",
"svelte-preprocess": "^5.1.4", "svelte-preprocess": "^5.1.4",

View File

@@ -3,6 +3,15 @@ const config = {
tabWidth: 4, tabWidth: 4,
trailingComma: "all", trailingComma: "all",
printWidth: 100, printWidth: 100,
plugins: ["prettier-plugin-svelte"],
overrides: [
{
files: "*.svelte",
options: {
parser: "svelte",
},
},
],
}; };
export default config; export default config;