Skip to content

Commit 6bed139

Browse files
committed
frontend: fix eslint rule is already defined
Only disabled Rule "no-sparse-arrays" per line as we dont want it for the whole file.
1 parent 6404eb1 commit 6bed139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontends/web/src/utils/equal.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ describe('equal', () => {
8787
});
8888

8989
it('compares sparse array vs defined array', () => {
90-
/*eslint no-sparse-arrays: "off"*/
90+
// eslint-disable-next-line no-sparse-arrays
9191
expect(equal([1, , 3], [1, undefined, 3])).toBeFalsy();
92-
/*eslint no-sparse-arrays: "off"*/
92+
// eslint-disable-next-line no-sparse-arrays
9393
expect(equal([1, , 3], [1, , 3])).toBeTruthy();
9494
});
9595
});

0 commit comments

Comments
 (0)