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

@@ -9,13 +9,13 @@ import { ApiRepository, ApiImpl } from './api1';
import { Event, EventEmitter } from 'vscode';
import { CloneManager } from '../cloneManager';
function deprecated(original: any, context: ClassMemberDecoratorContext) {
if (context.kind !== 'method') {
function deprecated(original: unknown, context: ClassMemberDecoratorContext) {
if (typeof original !== 'function' || context.kind !== 'method') {
throw new Error('not supported');
}
const key = context.name.toString();
return function (this: any, ...args: any[]): any {
return function (this: unknown, ...args: unknown[]) {
console.warn(`Git extension API method '${key}' is deprecated.`);
return original.apply(this, args);
};