chore: run biome format across the repo

Broaden `npm run format` / `npm run lint` to biome's full scan (`.`)
instead of a fixed src/tests/scripts list, so root-level files and any
new top-level directories stay formatted. Drop the stale ignore entry
for the deleted champions-data.js.
This commit is contained in:
tiennm99 committed 2026-04-22 14:14:29 +07:00
1 parent 173d1dbb18
commit cedd9da4ac
3 files changed
+3 -6

No files matched your search

-1
View File
@@ -34,7 +34,6 @@
"dist",
"coverage",
"src/modules/loldle/champions.json",
"src/modules/loldle/champions-data.js",
"src/modules/wordle/words-data.js"
]
}
+2 -2
View File
@@ -16,8 +16,8 @@
"db:migrate": "node scripts/migrate.js",
"register": "node --env-file-if-exists=.env.deploy scripts/register.js",
"register:dry": "node --env-file-if-exists=.env.deploy scripts/register.js --dry-run",
"lint": "biome check src tests scripts && eslint src",
"format": "biome format --write src tests scripts",
"lint": "biome check . && eslint src",
"format": "biome format --write .",
"test": "vitest run"
},
"dependencies": {
+1 -3
View File
@@ -56,9 +56,7 @@ describe("renderGuess", () => {
});
it("HTML-escapes values so < and > render literally", () => {
const evil = [
{ key: "regions", label: "Region(s)", result: "wrong", guessValue: "<script>" },
];
const evil = [{ key: "regions", label: "Region(s)", result: "wrong", guessValue: "<script>" }];
const out = renderGuess("Foo", evil);
expect(out).toContain("&lt;script&gt;");
expect(out).not.toContain("<script>");