From 9647d65e522f78f861d618557083faf84c7c4133 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 9 Feb 2021 13:32:01 -0600 Subject: [PATCH] Add code-server alias to eslint --- .eslintrc.yaml | 2 +- test/test-plugin/.eslintrc.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/test-plugin/.eslintrc.yaml diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 2036b6e0e..edb20bfe1 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -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. diff --git a/test/test-plugin/.eslintrc.yaml b/test/test-plugin/.eslintrc.yaml new file mode 100644 index 000000000..12279afb5 --- /dev/null +++ b/test/test-plugin/.eslintrc.yaml @@ -0,0 +1,5 @@ +settings: + import/resolver: + alias: + map: + - [code-server, ../../typings/pluginapi.d.ts]