mirror of https://github.com/coder/coder.git
chore: configure eslint vs code plugin (#423)
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: - https://github.com/microsoft/vscode-eslint/issues/196 - https://github.com/typescript-eslint/typescript-eslint/issues/251
This commit is contained in:
parent
6c83907b1b
commit
60f3cf6552
|
@ -75,5 +75,6 @@
|
|||
"webrtc",
|
||||
"xerrors",
|
||||
"yamux"
|
||||
]
|
||||
],
|
||||
"eslint.workingDirectories": ["./site"]
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue