Skip to content

Commit d9da0f3

Browse files
committed
fix(site): .eslintrc.yaml tsconfigRootDir
Summary: The .eslintrc.yaml is located in site, rather than the root of the repository. The VS Code plugin has a CWD of the repository root, so it looks for tsconfig.test.json in the root rather in site. See Also: - typescript-eslint/typescript-eslint#251
1 parent ec077c6 commit d9da0f3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

site/.eslintrc.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ extends:
1717
parser: "@typescript-eslint/parser"
1818
parserOptions:
1919
ecmaVersion: 2018
20-
project:
21-
- "./tsconfig.test.json"
20+
project: "./tsconfig.test.json"
2221
sourceType: module
2322
ecmaFeatures:
2423
jsx: true
25-
tsconfigRootDir: "./"
24+
# REMARK(Grey): tsconfigRootDir is not relative to .eslintrc.yaml in the VS
25+
# Code plugin (instead it's the root directory). Therefore we
26+
# need to tell it to consider ./site as the root.
27+
# REMARK(Grey): We might want to move this to repository root eventually to
28+
# lint multiple projects (supply array to project property).
29+
tsconfigRootDir: "./site"
2630
plugins:
2731
- "@typescript-eslint"
2832
- import

0 commit comments

Comments
 (0)