Skip to content

Commit 28836b5

Browse files
committed
fix lint
1 parent de9436f commit 28836b5

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.eslintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ module.exports = {
88
"plugin:@typescript-eslint/recommended",
99
"prettier",
1010
],
11+
rules: {
12+
"@typescript-eslint/explicit-module-boundary-types": "off",
13+
"@typescript-eslint/no-non-null-assertion": "off",
14+
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
15+
},
1116
};

src/Day 07 - Handy Haversacks/HandyHaversacks.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function countBagsInShinyGoldBag(rules: Rules) {
5050

5151
function countBagsThatCanContainOneShinyGoldBag(rules: Rules) {
5252
const bagRules = parseBagRules(rules);
53-
const shinyGoldIncludedIn = Array.from(bagRules).filter(([_, canContain]) =>
53+
const shinyGoldIncludedIn = Array.from(bagRules).filter(([, canContain]) =>
5454
canContain().find((contain) => contain.color === "shiny gold")
5555
);
5656
return shinyGoldIncludedIn.length;

src/Day 13 - Shuttle Search/Day13.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function findNextBus(earliestTimestampStr: string, possibleBusIdsStr: string) {
7272
}
7373

7474
function findEarliestTsForOffsetDepartures(possibleBusIdsStr: string) {
75-
const busIds = possibleBusIdsStr.split(",").map((idStr, offset) => {
75+
const busIds = possibleBusIdsStr.split(",").map((idStr) => {
7676
const busId = Number(idStr);
7777
if (isNaN(busId)) return 1;
7878
return busId;

src/Day 15 - Rambunctious Recitation/Day15.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe("Day 15 - Rambunctious Recitation", () => {
2424

2525
function playMemory(listStr: string, turnToReturn: number) {
2626
const initialList = listStr.split(",").map((n) => Number(n));
27+
2728
let mostRecentNum = NaN;
2829
let turnNo = initialList.length;
2930

0 commit comments

Comments
 (0)