diff --git a/.gitattributes b/.gitattributes index e4deccea81a394a..04e0ea90b3361a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,6 +4,7 @@ *.html text eol=lf *.ini text eol=lf *.js text eol=lf +*.jsx text eol=lf *.json text eol=lf *.md text eol=lf *.mdx text eol=lf @@ -11,6 +12,7 @@ *.svg text eol=lf *.toml text eol=lf *.ts text eol=lf +*.tsx text eol=lf *.txt text eol=lf *.vue text eol=lf *.xml text eol=lf diff --git a/package.json b/package.json index 42127f5f2011813..a9c1f75ab4f60b2 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,10 @@ "check:astro": "npx astro check", "check:worker": "npx tsc --noEmit -p ./worker/tsconfig.json", "dev": "npx astro dev", - "format": "npm run format:core && npm run format:data", - "format:core": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,css}\"", + "format": "npm run format:core:fix && npm run format:data", + "format:core": "npx prettier \"**/*.{js,jsx,ts,tsx,mjs,css}\"", "format:core:check": "npm run format:core -- --check", + "format:core:fix": "npm run format:core -- --write", "format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"", "format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"", "postinstall": "npm run sync", diff --git a/src/components/FeedbackPrompt.tsx b/src/components/FeedbackPrompt.tsx index 1c1b3151686eb58..273700895efebfb 100644 --- a/src/components/FeedbackPrompt.tsx +++ b/src/components/FeedbackPrompt.tsx @@ -37,7 +37,7 @@ function Buttons({ }} className="cursor-pointer bg-transparent" > - + ); diff --git a/src/components/models/ModelInfo.tsx b/src/components/models/ModelInfo.tsx index 870a0aebfc81b24..41b847c45e4ed07 100644 --- a/src/components/models/ModelInfo.tsx +++ b/src/components/models/ModelInfo.tsx @@ -5,7 +5,7 @@ const ModelInfo = ({ model }: { model: WorkersAIModelsSchema }) => { const author = authorData[model.name.split("/")[1]]?.name ?? model.name.split("/")[1]; return ( - + {model.task.name} • {author} ); diff --git a/worker/worker-configuration.d.ts b/worker/worker-configuration.d.ts index 3f96eb217016c83..e4c90e182b16d75 100644 --- a/worker/worker-configuration.d.ts +++ b/worker/worker-configuration.d.ts @@ -6,4 +6,4 @@ interface Env { declare module "*/_redirects" { const value: string; export default value; -} \ No newline at end of file +}