Skip to content

Commit bf04783

Browse files
authored
Merge pull request #46 from atom-community/add-createDefaultProgram
fix: add createDefaultProgram to typescript config
2 parents 68e1cca + 2478249 commit bf04783

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)