update rule-disablements (eslint-disable for tslint-disable)
This commit is contained in:
parent
90512e6c02
commit
f80a6f9b96
|
@ -118,7 +118,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
|||
this.pathSeparator = path.sep;
|
||||
this.lastStart = Date.now();
|
||||
|
||||
// tslint:disable-next-line: no-var-keyword
|
||||
// eslint-disable-next-line no-var
|
||||
var p = new Promise<void>((resolve, reject) => {
|
||||
this._onReady = { promise: p, resolve, reject };
|
||||
});
|
||||
|
|
|
@ -389,7 +389,7 @@ interface UriState extends UriComponents {
|
|||
|
||||
const _pathSepMarker = isWindows ? 1 : undefined;
|
||||
|
||||
// tslint:disable-next-line:class-name
|
||||
// eslint-disable-next-line @typescript-eslint/class-name-casing
|
||||
class _URI extends URI {
|
||||
|
||||
_formatted: string | null = null;
|
||||
|
|
|
@ -136,6 +136,7 @@ suite('Event', function () {
|
|||
let a = new Emitter<undefined>();
|
||||
let hit = false;
|
||||
a.event(function () {
|
||||
// eslint-disable-next-line no-throw-literal
|
||||
throw 9;
|
||||
});
|
||||
a.event(function () {
|
||||
|
|
|
@ -28,7 +28,7 @@ suite('Keytar', () => {
|
|||
try {
|
||||
await keytar.deletePassword(name, 'foo');
|
||||
} finally {
|
||||
// tslint:disable-next-line: no-unsafe-finally
|
||||
// eslint-disable-next-line no-unsafe-finally
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
///
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
const x01 = "string";
|
||||
/// ^^^^^^^^ string
|
||||
|
||||
|
|
|
@ -282,10 +282,9 @@ export class ContextKeyEqualsExpr implements ContextKeyExpr {
|
|||
}
|
||||
|
||||
public evaluate(context: IContext): boolean {
|
||||
/* tslint:disable:triple-equals */
|
||||
// Intentional ==
|
||||
// eslint-disable-next-line eqeqeq
|
||||
return (context.getValue(this.key) == this.value);
|
||||
/* tslint:enable:triple-equals */
|
||||
}
|
||||
|
||||
public serialize(): string {
|
||||
|
@ -348,10 +347,9 @@ export class ContextKeyNotEqualsExpr implements ContextKeyExpr {
|
|||
}
|
||||
|
||||
public evaluate(context: IContext): boolean {
|
||||
/* tslint:disable:triple-equals */
|
||||
// Intentional !=
|
||||
// eslint-disable-next-line eqeqeq
|
||||
return (context.getValue(this.key) != this.value);
|
||||
/* tslint:enable:triple-equals */
|
||||
}
|
||||
|
||||
public serialize(): string {
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
|
||||
import { ISignService } from 'vs/platform/sign/common/sign';
|
||||
|
||||
/* tslint:disable */
|
||||
|
||||
declare module vsda {
|
||||
// eslint-disable-next-line @typescript-eslint/class-name-casing
|
||||
export class signer {
|
||||
sign(arg: any): any;
|
||||
}
|
||||
|
|
|
@ -37,10 +37,11 @@ import { isFullscreen } from 'vs/base/browser/browser';
|
|||
import { IHostService } from 'vs/workbench/services/host/browser/host';
|
||||
|
||||
// TODO@sbatten https://github.com/microsoft/vscode/issues/81360
|
||||
// tslint:disable-next-line: import-patterns layering TODO@sbatten
|
||||
// eslint-disable-next-line code-layering, code-import-patterns
|
||||
import { IElectronService } from 'vs/platform/electron/node/electron';
|
||||
import { optional } from 'vs/platform/instantiation/common/instantiation';
|
||||
// tslint:disable-next-line: import-patterns layering TODO@sbatten
|
||||
// TODO@sbatten
|
||||
// eslint-disable-next-line code-layering, code-import-patterns
|
||||
import { IElectronEnvironmentService } from 'vs/workbench/services/electron/electron-browser/electronEnvironmentService';
|
||||
import { BrowserFeatures } from 'vs/base/browser/canIUse';
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ import { IProductService } from 'vs/platform/product/common/productService';
|
|||
import { REMOTE_HOST_SCHEME } from 'vs/platform/remote/common/remoteHosts';
|
||||
|
||||
// TODO@sbatten https://github.com/microsoft/vscode/issues/81360
|
||||
// tslint:disable-next-line: import-patterns layering
|
||||
// eslint-disable-next-line code-layering, code-import-patterns
|
||||
import { IElectronService } from 'vs/platform/electron/node/electron';
|
||||
|
||||
export class TitlebarPart extends Part implements ITitleService {
|
||||
|
|
|
@ -190,6 +190,7 @@ suite('RPCProtocol', () => {
|
|||
|
||||
test('issue #72798: null errors are hard to digest', function (done) {
|
||||
delegate = (a1: number, a2: number) => {
|
||||
// eslint-disable-next-line no-throw-literal
|
||||
throw { 'what': 'what' };
|
||||
};
|
||||
bProxy.$m(4, 1).then((res) => {
|
||||
|
|
Loading…
Reference in a new issue