Skip to content

Commit

Permalink
fix: add createDefaultProgram to typescript config
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 18, 2021
1 parent 68e1cca commit 2478249
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 2478249

Please sign in to comment.