Skip to content

Commit cb98e32

Browse files
committed
make lintfix
1 parent 81a10c7 commit cb98e32

14 files changed

Lines changed: 707 additions & 685 deletions

frontend/astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from "astro/config"
1+
import { defineConfig } from "astro/config";
22

33
export default defineConfig({
44
output: "static",
@@ -20,4 +20,4 @@ export default defineConfig({
2020
},
2121
},
2222
},
23-
})
23+
});

frontend/prettier.config.js

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
1-
export const config = {
2-
tabWidth: 2,
3-
useTabs: false,
4-
semi: false,
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
// Global settings
54
printWidth: 110,
6-
plugins: ["prettier-plugin-astro"],
5+
singleQuote: false,
6+
trailingComma: 'all',
7+
plugins: ['prettier-plugin-astro'],
8+
9+
// File-specific overrides
710
overrides: [
811
{
9-
files: "*.astro",
12+
// Astro files need special parser
13+
files: '*.astro',
1014
options: {
11-
parser: "astro"
12-
}
13-
}
14-
]
15-
}
16-
17-
export default config
15+
parser: 'astro',
16+
},
17+
},
18+
{
19+
// Markdown and prose files should preserve natural line breaks
20+
files: '*.{html,md,mdx}',
21+
options: {
22+
proseWrap: 'preserve', // Don't force rewrapping of prose content
23+
},
24+
},
25+
{
26+
// JavaScript/TypeScript files use single quotes and ES5 trailing commas
27+
files: '*.{js,ts,jsx,tsx}',
28+
options: {
29+
singleQuote: true,
30+
trailingComma: 'es5',
31+
},
32+
},
33+
],
34+
};

0 commit comments

Comments
 (0)