Skip to content

Commit 410780a

Browse files
committed
chore(lint): disable func-names in test files
Mocha tests need `function () {}` so they can use `this.timeout()` / `this.skip()` — arrow functions don't bind `this` to the test context. The `func-names` rule was firing on every test in the suite (including pre-existing tests in `protocol_versions.test.ts`); moving the rule to the test-file override block silences those warnings. Co-authored-by: Isaac
1 parent 0104bc4 commit 410780a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"files": ["*.test.js", "*.test.ts"],
3030
"rules": {
3131
"no-unused-expressions": "off",
32-
"@typescript-eslint/no-unused-expressions": "off"
32+
"@typescript-eslint/no-unused-expressions": "off",
33+
"func-names": "off"
3334
}
3435
}
3536
]

0 commit comments

Comments
 (0)