Skip to content

Commit 9f93b4d

Browse files
committed
chore: address lint issues
1 parent f52a74b commit 9f93b4d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

2023/day/17/part/1/solve.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ type Node = Vector & { d: Direction; heatLoss: number };
66

77
export default function solve(input: string) {
88
const blocks = input.split("\n").map((line) => Array.from(line, Number));
9-
const { length: height, 0: { length: width } } = blocks;
109
const heatLosses = blocks.map((row) =>
1110
row.map(() => new Map<string, number>())
1211
);

2024/day/3/part/2/solve.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ export default function solve(input: string) {
22
let sum = 0;
33
let enabled = true;
44
const regExp =
5+
// todo: remove lint-ignore once https://github.com/denoland/deno_lint/issues/1372 is fixed
6+
// deno-lint-ignore no-invalid-regexp
57
/(?<op>do)\(\)|(?<op>don't)\(\)|(?<op>mul)\((?<a>\d+),(?<b>\d+)\)/g;
68
for (const { groups } of input.matchAll(regExp)) {
79
const { op, a, b } = groups!;

lib/combinations.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ function setBit(bits: bigint, index: number) {
22
return bits | (1n << BigInt(index));
33
}
44

5-
function clearBit(bits: bigint, index: number) {
6-
return bits & ~(1n << BigInt(index));
7-
}
8-
95
function setBits(bits: bigint, fromIndex: number, toIndex: number) {
106
return bits |
117
(((1n << BigInt(toIndex)) - 1n) & ~((1n << BigInt(fromIndex)) - 1n));

0 commit comments

Comments
 (0)