diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
new file mode 100644
index 0000000..b557652
--- /dev/null
+++ b/.git-blame-ignore-revs
@@ -0,0 +1,2 @@
+# Bulk reformats. `git config blame.ignoreRevsFile .git-blame-ignore-revs`
+7c3ebac6c13c79aee6c79c917a09363ff6c8fa9d # prettier, 13 files
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index a646416..554fa37 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -11,7 +11,7 @@
version: 2
updates:
- package-ecosystem: npm
- directory: "/"
+ directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 5
@@ -20,7 +20,7 @@ updates:
update-types: [minor, patch]
- package-ecosystem: github-actions
- directory: "/"
+ directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 3
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..b698663
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,31 @@
+# Build output and vendored trees — formatting these is noise.
+node_modules
+.next
+dist
+build
+out
+coverage
+.turbo
+.vercel
+*.min.js
+*.min.css
+
+# Generated during a build, so it is absent locally and present in CI — which
+# makes a clean local --check no evidence at all. Contentlayer's output also
+# uses import assertions, which prettier's parser rejects outright.
+.contentlayer
+.astro
+.svelte-kit
+storybook-static
+test-results
+playwright-report
+
+# Lockfiles are generated; prettier would rewrite them wholesale.
+package-lock.json
+pnpm-lock.yaml
+yarn.lock
+
+# Markdown is deliberately out of scope for now. Prettier rewraps prose, which
+# is where it is most opinionated and least useful, and it would bury the real
+# diff. Remove this line when you want docs formatted too.
+*.md
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..616247a
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,9 @@
+{
+ "semi": true,
+ "singleQuote": true,
+ "printWidth": 100,
+ "tabWidth": 2,
+ "trailingComma": "all",
+ "arrowParens": "always",
+ "endOfLine": "lf"
+}
diff --git a/next.config.ts b/next.config.ts
index cb651cd..b22af96 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,4 +1,4 @@
-import type { NextConfig } from "next";
+import type { NextConfig } from 'next';
const nextConfig: NextConfig = {};
diff --git a/package-lock.json b/package-lock.json
index 4ff4a7f..de9c171 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,6 +18,7 @@
"@types/react": "^19.2.18",
"eslint": "^9.39.5",
"eslint-config-next": "^15.5.20",
+ "prettier": "3.9.6",
"prisma": "^6.2.1",
"typescript": "^5.7.3",
"vitest": "^4.1.11"
@@ -5672,6 +5673,22 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/prettier": {
+ "version": "3.9.6",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz",
+ "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
"node_modules/prisma": {
"version": "6.19.3",
"resolved": "https://registry.npmjs.org/prisma/-/prisma-6.19.3.tgz",
diff --git a/package.json b/package.json
index 8f13696..455b106 100644
--- a/package.json
+++ b/package.json
@@ -12,9 +12,11 @@
"lint": "next lint",
"typecheck": "tsc --noEmit",
"test": "vitest run",
- "verify": "npm run lint && npm run typecheck && npm run test",
+ "verify": "npm run format:check && npm run lint && npm run typecheck && npm run test",
"db:generate": "prisma generate",
- "db:migrate": "prisma migrate dev"
+ "db:migrate": "prisma migrate dev",
+ "format": "prettier --write .",
+ "format:check": "prettier --check ."
},
"dependencies": {
"@prisma/client": "^6.2.1",
@@ -27,6 +29,7 @@
"@types/react": "^19.2.18",
"eslint": "^9.39.5",
"eslint-config-next": "^15.5.20",
+ "prettier": "3.9.6",
"prisma": "^6.2.1",
"typescript": "^5.7.3",
"vitest": "^4.1.11"
diff --git a/src/app/EvidenceVerifier.module.css b/src/app/EvidenceVerifier.module.css
index c0f69c4..e640b84 100644
--- a/src/app/EvidenceVerifier.module.css
+++ b/src/app/EvidenceVerifier.module.css
@@ -152,7 +152,7 @@
}
.algo {
- font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
+ font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
font-size: 0.75rem;
color: var(--color-text-muted);
}
diff --git a/src/app/EvidenceVerifier.tsx b/src/app/EvidenceVerifier.tsx
index 41d2b26..4bb86b6 100644
--- a/src/app/EvidenceVerifier.tsx
+++ b/src/app/EvidenceVerifier.tsx
@@ -82,8 +82,8 @@ export function EvidenceVerifier() {
Verify a claim from its evidence
- The verdict is a tally of supporting vs. contradicting evidence. Add
- evidence on each side and see the explainable result — nothing hidden.
+ The verdict is a tally of supporting vs. contradicting evidence. Add evidence on each side
+ and see the explainable result — nothing hidden.
@@ -118,12 +118,7 @@ export function EvidenceVerifier() {