diff options
| author | Jack Clayton <jackclayto@gmail.com> | 2022-02-06 06:52:51 +0800 |
|---|---|---|
| committer | Jack Clayton <jackclayto@gmail.com> | 2022-02-06 06:52:51 +0800 |
| commit | 76ecf9a17d7f80e648c0a89921f937239e324ffd (patch) | |
| tree | dbc053b9e23c5b274adf6f67dd99e04302c93358 | |
| parent | 668947056a9abb668a17e99134bb677e13828f59 (diff) | |
| download | rust-76ecf9a17d7f80e648c0a89921f937239e324ffd.tar.gz rust-76ecf9a17d7f80e648c0a89921f937239e324ffd.zip | |
Fix eslint errors
| -rw-r--r-- | editors/code/.eslintrc.js | 3 | ||||
| -rw-r--r-- | editors/code/tsconfig.eslint.json | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/editors/code/.eslintrc.js b/editors/code/.eslintrc.js index b145330a022..631d956da2b 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 00000000000..9eddf279864 --- /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", + ] +} |
