diff --git a/.vscode/settings.json b/.vscode/settings.json index a503c49b57bc2..1f737aeec2508 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -75,5 +75,6 @@ "webrtc", "xerrors", "yamux" - ] + ], + "eslint.workingDirectories": ["./site"] } diff --git a/site/.eslintrc.yaml b/site/.eslintrc.yaml index d6c6be9eb6b95..436bd1a2e40e2 100644 --- a/site/.eslintrc.yaml +++ b/site/.eslintrc.yaml @@ -17,11 +17,12 @@ extends: parser: "@typescript-eslint/parser" parserOptions: ecmaVersion: 2018 - project: - - "./tsconfig.test.json" + project: "./tsconfig.test.json" sourceType: module ecmaFeatures: jsx: true + # REMARK(Grey): We might want to move this to repository root eventually to + # lint multiple projects (supply array to project property). tsconfigRootDir: "./" plugins: - "@typescript-eslint"