Skip to content

Commit 0d7dfd5

Browse files
authored
[Docs Site] fix: formatting checks (#19848)
* fix: formatting checks * fix: format write with base `format` script
1 parent 0f851d7 commit 0d7dfd5

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
*.html text eol=lf
55
*.ini text eol=lf
66
*.js text eol=lf
7+
*.jsx text eol=lf
78
*.json text eol=lf
89
*.md text eol=lf
910
*.mdx text eol=lf
1011
*.mjs text eol=lf
1112
*.svg text eol=lf
1213
*.toml text eol=lf
1314
*.ts text eol=lf
15+
*.tsx text eol=lf
1416
*.txt text eol=lf
1517
*.vue text eol=lf
1618
*.xml text eol=lf

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"check:astro": "npx astro check",
1111
"check:worker": "npx tsc --noEmit -p ./worker/tsconfig.json",
1212
"dev": "npx astro dev",
13-
"format": "npm run format:core && npm run format:data",
14-
"format:core": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
13+
"format": "npm run format:core:fix && npm run format:data",
14+
"format:core": "npx prettier \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
1515
"format:core:check": "npm run format:core -- --check",
16+
"format:core:fix": "npm run format:core -- --write",
1617
"format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"",
1718
"format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"",
1819
"postinstall": "npm run sync",

src/components/FeedbackPrompt.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Buttons({
3737
}}
3838
className="cursor-pointer bg-transparent"
3939
>
40-
<MdOutlineThumbUp className="text-sl text-2xl hover:text-accent" />
40+
<MdOutlineThumbUp className="text-2xl text-sl hover:text-accent" />
4141
</button>
4242
<button
4343
onClick={() => {
@@ -46,7 +46,7 @@ function Buttons({
4646
}}
4747
className="cursor-pointer bg-transparent"
4848
>
49-
<MdOutlineThumbDown className="text-sl text-2xl hover:text-accent" />
49+
<MdOutlineThumbDown className="text-2xl text-sl hover:text-accent" />
5050
</button>
5151
</>
5252
);

src/components/models/ModelInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const ModelInfo = ({ model }: { model: WorkersAIModelsSchema }) => {
55
const author =
66
authorData[model.name.split("/")[1]]?.name ?? model.name.split("/")[1];
77
return (
8-
<span className="text-gray-400 !block mt-2 leading-5">
8+
<span className="mt-2 !block leading-5 text-gray-400">
99
{model.task.name}{author}
1010
</span>
1111
);

worker/worker-configuration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ interface Env {
66
declare module "*/_redirects" {
77
const value: string;
88
export default value;
9-
}
9+
}

0 commit comments

Comments
 (0)