mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-13 22:16:33 +00:00
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:
1 parent
173d1dbb18
commit
cedd9da4ac
3 files changed
+3
-6
No files matched your search
@@ -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
@@ -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": {
|
||||
|
||||
@@ -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("<script>");
|
||||
expect(out).not.toContain("<script>");
|
||||
|
||||
Reference in new issue
Block a user