Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit d367614

Browse files
committed
chore: add ts-ignore comment for dynamic import
1 parent 6b2461b commit d367614

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ module.exports = {
88
"prettier/@typescript-eslint",
99
],
1010
ignorePatterns: ["*.js"],
11+
rules: {
12+
'@typescript-eslint/ban-ts-comment': 'off'
13+
}
1114
};

src/lib/linter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export interface DemoLinter {
2323
}
2424

2525
function loadPlugin(): Promise<ESLintPlugin> {
26+
// @ts-ignore
2627
return import("@typescript-eslint/eslint-plugin");
2728
}
2829

@@ -31,6 +32,7 @@ function loadParser() {
3132
}
3233

3334
async function loadESLinter() {
35+
// @ts-ignore
3436
return import("eslint/lib/linter/linter");
3537
}
3638

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
},
1414
"esModuleInterop": true,
1515
"forceConsistentCasingInFileNames": true,
16-
"resolveJsonModule": true
16+
"resolveJsonModule": true,
17+
"skipLibCheck": true,
1718
},
18-
"exclude": ["node_modules"]
19+
"exclude": ["node_modules"],
1920
}

0 commit comments

Comments
 (0)