diff --git a/editors/code/.eslintrc.js b/editors/code/.eslintrc.js index b145330a02..631d956da2 100644 --- a/editors/code/.eslintrc.js +++ b/editors/code/.eslintrc.js @@ -5,7 +5,8 @@ module.exports = { }, "parser": "@typescript-eslint/parser", "parserOptions": { - "project": "tsconfig.json", + "project": "tsconfig.eslint.json", + "tsconfigRootDir": __dirname, "sourceType": "module" }, "plugins": [ diff --git a/editors/code/tsconfig.eslint.json b/editors/code/tsconfig.eslint.json new file mode 100644 index 0000000000..9eddf27986 --- /dev/null +++ b/editors/code/tsconfig.eslint.json @@ -0,0 +1,11 @@ +// Special typescript project file, used by eslint only. +{ + "extends": "./tsconfig.json", + "include": [ + // repeated from base config's "include" setting + "src", + "tests", + // these are the eslint-only inclusions + ".eslintrc.js", + ] +}