Skip to content

Commit

Permalink
Merge pull request #46 from atom-community/add-createDefaultProgram
Browse files Browse the repository at this point in the history
fix: add createDefaultProgram to typescript config
  • Loading branch information
aminya authored Jun 18, 2021
2 parents 68e1cca + 2478249 commit bf04783
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports.tsConfig = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./**/tsconfig.json", "!./**/node_modules/**/tsconfig.json"],
createDefaultProgram: true, // otherwise Eslint will error if a ts file is not covered by one of the tsconfig.json files
},
plugins: ["@typescript-eslint", "node", "import", "only-warn"],
extends: [
Expand Down

0 comments on commit bf04783

Please sign in to comment.