Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJohannes Rieken <johannes.rieken@gmail.com>2022-07-12 15:28:07 +0300
committerGitHub <noreply@github.com>2022-07-12 15:28:07 +0300
commit2e247a1162166e0c153ab5e6c8d37068b574c04a (patch)
tree33329b24cd1ad81cc9d4cce5046d0caf13584df9 /build
parent261e65f44e2be5a8ba5719e66e6499e6ab26d886 (diff)
tweak event-naming rule and remove disable-pragma from vscode.d.ts, (#154914)
fixes https://github.com/microsoft/vscode/issues/154526
Diffstat (limited to 'build')
-rw-r--r--build/lib/eslint/vscode-dts-event-naming.js2
-rw-r--r--build/lib/eslint/vscode-dts-event-naming.ts3
2 files changed, 2 insertions, 3 deletions
diff --git a/build/lib/eslint/vscode-dts-event-naming.js b/build/lib/eslint/vscode-dts-event-naming.js
index 1e376cca734..747e224b397 100644
--- a/build/lib/eslint/vscode-dts-event-naming.js
+++ b/build/lib/eslint/vscode-dts-event-naming.js
@@ -76,7 +76,7 @@ module.exports = new (_a = class ApiEventNaming {
if (def.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
return def;
}
- else if ((def.type === experimental_utils_1.AST_NODE_TYPES.TSPropertySignature || def.type === experimental_utils_1.AST_NODE_TYPES.Property) && def.key.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
+ else if ((def.type === experimental_utils_1.AST_NODE_TYPES.TSPropertySignature || def.type === experimental_utils_1.AST_NODE_TYPES.PropertyDefinition) && def.key.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
return def.key;
}
return this.getIdent(def.parent);
diff --git a/build/lib/eslint/vscode-dts-event-naming.ts b/build/lib/eslint/vscode-dts-event-naming.ts
index 956ba346087..5e767c6e257 100644
--- a/build/lib/eslint/vscode-dts-event-naming.ts
+++ b/build/lib/eslint/vscode-dts-event-naming.ts
@@ -88,11 +88,10 @@ export = new class ApiEventNaming implements eslint.Rule.RuleModule {
if (def.type === AST_NODE_TYPES.Identifier) {
return def;
- } else if ((def.type === AST_NODE_TYPES.TSPropertySignature || def.type === AST_NODE_TYPES.Property) && def.key.type === AST_NODE_TYPES.Identifier) {
+ } else if ((def.type === AST_NODE_TYPES.TSPropertySignature || def.type === AST_NODE_TYPES.PropertyDefinition) && def.key.type === AST_NODE_TYPES.Identifier) {
return def.key;
}
return this.getIdent(def.parent);
}
};
-