Skip to content

Commit d2c0549

Browse files
koba04shisama
authored andcommitted
feat(typescript): disable typescript-eslint/ban-ts-ignore (#185)
1 parent 0a4222d commit d2c0549

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/typescript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
"@typescript-eslint/unified-signatures": "warn",
2222
"@typescript-eslint/indent": ["warn", 2, { SwitchCase: 1 }],
2323

24+
"@typescript-eslint/ban-ts-ignore": "off",
2425
"@typescript-eslint/camelcase": "off",
2526
"@typescript-eslint/explicit-function-return-type": "off",
2627
"@typescript-eslint/explicit-member-accessibility": "off",

test/fixtures/typescript/ok.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ class Bar {
2323

2424
const bar: BarInterface = new Bar('bar');
2525
bar.getName();
26+
27+
// @ts-ignore
28+
const num: number = '10';

0 commit comments

Comments
 (0)