Skip to content

Commit 63fcd88

Browse files
committed
Fix up linting.
1 parent 85387d7 commit 63fcd88

File tree

9 files changed

+29
-24
lines changed

9 files changed

+29
-24
lines changed

biome.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": ["./node_modules/@cubing/dev-config/biome/biome.json"],
34
"files": {
45
"includes": ["**", "!dist", "!package.json"]
56
},

bun.lock

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[install]
2+
auto = "disable"
3+
linker = "isolated"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
"events": "^3.3.0",
2222
"pouchdb": "^9.0.0",
2323
"pouchdb-find": "^9.0.0",
24-
"typescript": "^5.8.3"
24+
"typescript": "^5.8.3",
25+
"workbox-window": "^7.3.0"
2526
},
2627
"devDependencies": {
27-
"@biomejs/biome": "^2.1.4",
28+
"@biomejs/biome": "^2.3.2",
2829
"@cubing/deploy": "^0.2.2",
2930
"@cubing/dev-config": "^0.3.6",
3031
"@types/chai": "^5.2.2",

src/timer.cubing.net/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<td>sync:</td>
8585
<td class="sync"><a class="sync-link" style="display: inline-block;" href="./config.html"><img
8686
src="./resources/vendor/material-icons/sync-24px-white.svg" title="Delete" class="material-icon">
87+
</a></td>
8788
</tr>
8889
<tr>
8990
<td title="number of attempts">DB size:</td>

src/timer.cubing.net/timing/Controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type TransitionMap = Record<State, State>;
1616

1717
export class Controller {
1818
private timer: Timer;
19-
// @ts-ignore: This is initialized unconditionally by the constructor but TypeScript is not powerful enough to tell.
19+
// @ts-expect-error: ts(2564) — This is initialized unconditionally by the constructor but TypeScript is not powerful enough to tell.
2020
private state: State;
2121
constructor(
2222
private domElement: HTMLElement,

src/timer.cubing.net/ui/ScrambleView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class ScrambleView {
9898
this.twistyPlayer.classList.remove("dim");
9999
this.scrambleTwistyAlgViewer.textContent = scrambleString; // TODO: animation
100100

101-
this.twistyPlayer.puzzle = eventInfo(scrambleWithEvent.eventID)?.puzzleID!;
101+
this.twistyPlayer.puzzle = eventInfo(scrambleWithEvent.eventID)!.puzzleID;
102102
this.twistyPlayer.alg = scrambleWithEvent.scramble ?? new Alg();
103103
this.twistyPlayer.timestamp = "end";
104104
this.twistyPlayer.animate([{ opacity: 0.25 }, { opacity: 1 }], {

src/timer.cubing.net/ui/results-table.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ import { playIcon, trashIcon } from "./material-icons";
1212
export const MAX_NUM_RECENT_ATTEMPTS = 100;
1313

1414
const session = new TimerSession();
15-
// @ts-ignore
16-
// biome-ignore lint/correctness/noUnusedVariables: TODO: this assignment is meant to be shared with a different file.
17-
let justRemoved: string;
15+
// let justRemoved: string;
1816

1917
function tdWithContent(content?: string): HTMLTableDataCellElement {
2018
const td = document.createElement("td");
@@ -135,7 +133,7 @@ function trashTD(attempt: AttemptDataWithIDAndRev): HTMLTableDataCellElement {
135133
trashButton.parentNode!.parentNode!.parentNode!.removeChild(
136134
trashButton.parentNode!.parentNode!,
137135
);
138-
justRemoved = attempt._id;
136+
// justRemoved = attempt._id;
139137
});
140138
scrambleTD.appendChild(trashButton);
141139
return scrambleTD;

src/timer.cubing.net/ui/style.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ twisty-player.dim {
314314

315315
.scramble-text.event-minx {
316316
font-family: monospace;
317-
text-align: start !important;
318-
text-align-last: start !important;
317+
text-align: start;
318+
text-align-last: start;
319319
}
320320

321321
.timer {
@@ -630,6 +630,10 @@ twisty-player {
630630

631631
.stats-summary table td:nth-child(2) {
632632
color: white;
633+
634+
&.partial {
635+
color: unset;
636+
}
633637
}
634638

635639
.stats-summary table {
@@ -715,7 +719,3 @@ table#attempt-list thead {
715719
.h-bar {
716720
line-height: 0.5em;
717721
}
718-
719-
.stats-summary .partial {
720-
color: unset !important;
721-
}

0 commit comments

Comments
 (0)