Skip to content

Commit 2478249

Browse files
committed
fix: add createDefaultProgram to typescript config
1 parent 68e1cca commit 2478249

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/typescript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ exports.tsConfig = {
4040
parser: "@typescript-eslint/parser",
4141
parserOptions: {
4242
project: ["./**/tsconfig.json", "!./**/node_modules/**/tsconfig.json"],
43+
createDefaultProgram: true, // otherwise Eslint will error if a ts file is not covered by one of the tsconfig.json files
4344
},
4445
plugins: ["@typescript-eslint", "node", "import", "only-warn"],
4546
extends: [

0 commit comments

Comments
 (0)