mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Git - enable ESLint rule for git extensions (#277156)
* Initial commit with all exceptions * First pass of fixing * Add ignored files explicitly
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
import { done } from './util';
|
||||
|
||||
function decorate(decorator: (fn: Function, key: string) => Function): Function {
|
||||
return function (original: any, context: ClassMethodDecoratorContext) {
|
||||
if (context.kind === 'method' || context.kind === 'getter' || context.kind === 'setter') {
|
||||
return function (original: unknown, context: ClassMethodDecoratorContext) {
|
||||
if (typeof original === 'function' && (context.kind === 'method' || context.kind === 'getter' || context.kind === 'setter')) {
|
||||
return decorator(original, context.name.toString());
|
||||
}
|
||||
throw new Error('not supported');
|
||||
|
||||
Reference in New Issue
Block a user