Skip to content

Commit 4368122

Browse files
committed
Clarify disabling the @typescript-eslint/no-namespace and add a TODO to move the code later
1 parent afc2953 commit 4368122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configs/testing-library-compass/src/assertions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { Assertion, util } from 'chai';
22

3+
// TODO(COMPASS-10119): Move declaration into a separate .d.ts and implementation into a *-register.js file as we do with other global patching code intended for tests.
4+
35
declare global {
4-
// eslint-disable-next-line @typescript-eslint/no-namespace
6+
// eslint-disable-next-line @typescript-eslint/no-namespace -- We're following a pattern established in the `@types/chai-as-promised` package to add a Chai assertion property.
57
export namespace Chai {
68
interface Assertion {
79
/** Asserts that a dialog is open */

0 commit comments

Comments
 (0)