mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
tweak event-naming rule and remove disable-pragma from vscode.d.ts, (#154914)
fixes https://github.com/microsoft/vscode/issues/154526
This commit is contained in:
parent
261e65f44e
commit
2e247a1162
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
1
src/vscode-dts/vscode.d.ts
vendored
1
src/vscode-dts/vscode.d.ts
vendored
|
@ -1608,7 +1608,6 @@ declare module 'vscode' {
|
|||
/**
|
||||
* The event listeners can subscribe to.
|
||||
*/
|
||||
// eslint-disable-next-line vscode-dts-event-naming
|
||||
event: Event<T>;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue