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:
Ladislau Szomoru
2025-11-13 15:35:01 +00:00
committed by GitHub
parent 8603e1dd3a
commit 2b52b93770
17 changed files with 67 additions and 55 deletions

View File

@@ -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');