Skip to content

Commit 432bca5

Browse files
committed
chore: remove ESLint disable before @ts-expect-error comment
Since @typescript-eslint/typescript-eslint@4.0.0, the `ban-ts-comment` rule was changed to `allow-with-description`, so the ESLint disable is not needed anymore.
1 parent 805afad commit 432bca5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/index.unit.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ describe('commitlint plugin function rules', () => {
1616
});
1717

1818
it("creates the 'function-rules/header-max-length' rule", () => {
19-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2019
// @ts-expect-error: TS2532: Object is possibly 'undefined'.
2120
const rule = config.rules['function-rules/header-max-length'];
2221
expect(rule).toEqual([2, 'always', rules.headerMaxLength]);
@@ -27,7 +26,6 @@ describe('commitlint plugin function rules', () => {
2726
'footer-max-line-length',
2827
'header-max-length',
2928
])("disables the '%s' rule", (ruleName: string) => {
30-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
3129
// @ts-expect-error: TS2532: Object is possibly 'undefined'.
3230
const rule = config.rules[ruleName];
3331
expect(rule).toEqual([0]);

0 commit comments

Comments
 (0)