Archived
1
0

Add code-server alias to eslint

This commit is contained in:
Asher 2021-02-09 13:32:01 -06:00
parent 2879bd4c22
commit 9647d65e52
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
2 changed files with 6 additions and 1 deletions

View File

@ -35,7 +35,7 @@ rules:
[error, { alphabetize: { order: "asc" }, groups: [["builtin", "external", "internal"], "parent", "sibling"] }]
no-async-promise-executor: off
# This isn't a real module, just types, which apparently doesn't resolve.
import/no-unresolved: [error, { ignore: ["express-serve-static-core", "code-server"] }]
import/no-unresolved: [error, { ignore: ["express-serve-static-core"] }]
settings:
# Does not work with CommonJS unfortunately.

View File

@ -0,0 +1,5 @@
settings:
import/resolver:
alias:
map:
- [code-server, ../../typings/pluginapi.d.ts]