Skip to content

Commit f3e0f0b

Browse files
authored
Added enforcement. (#11381)
1 parent 628301b commit f3e0f0b

File tree

23 files changed

+7
-30
lines changed

23 files changed

+7
-30
lines changed

Extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6125,7 +6125,7 @@
61256125
"code": "ts-node -T .scripts/code.ts",
61266126
"verify": "ts-node -T .scripts/verify.ts",
61276127
"prep": "yarn copy-walkthrough-media && yarn generate-native-strings && yarn translations-generate",
6128-
"lint": "eslint -c .eslintrc.js src test ui .scripts",
6128+
"lint": "eslint -c .eslintrc.js --report-unused-disable-directives src test ui .scripts",
61296129
"compile": "(yarn verify prep || yarn prep) && tsc --build tsconfig.json",
61306130
"watch": "(yarn verify prep || yarn prep )&& tsc --build tsconfig.json --watch",
61316131
"rebuild": "yarn clean && yarn prep && yarn compile",

Extension/src/LanguageServer/settings.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* ------------------------------------------------------------------------------------------ */
55
'use strict';
66

7-
/* eslint-disable @typescript-eslint/no-unnecessary-boolean-literal-compare */
8-
97
import { execSync } from 'child_process';
108
import * as editorConfig from 'editorconfig';
119
import * as fs from 'fs';

Extension/src/SSH/commandInteractors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ export class ContinueOnInteractor implements IInteractor {
322322
return ContinueOnInteractor.ID;
323323
}
324324

325-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
326325
async onData(data: string, _cancelToken?: vscode.CancellationToken): Promise<IInteraction> {
327326
const result: IInteraction = { postAction: 'keep' };
328327
const pattern: string = escapeStringForRegex(this.continueOn);

Extension/src/Utility/Async/constructor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import { is } from '../System/guards';
77
import { ConstructorReturn, Reject, Resolve, AsyncConstructor } from '../System/types';
88

9-
// eslint-disable-next-line @typescript-eslint/naming-convention
109
export function Async<TClass extends new (...args: ConstructorParameters<TClass>) => ConstructorReturn<TClass>>(ctor: TClass) {
1110
class AsyncConstructed extends Promise<TClass> {
1211
static class: TClass = ctor;

Extension/src/Utility/Async/factory.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* See 'LICENSE' in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
55

6-
/* eslint-disable @typescript-eslint/naming-convention */
7-
86
import { is } from '../System/guards';
97
import { Reject, Resolve } from '../System/types';
108

Extension/src/Utility/Async/iterators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function accumulator<T>(...iterables: Some<T>[]): AsynchIterable<T> {
125125
}
126126

127127
}
128-
// eslint-disable-next-line no-unmodified-loop-condition
128+
129129
} while (!completeWhenEmpty);
130130
signal.dispose(false);
131131

Extension/src/Utility/Eventing/dispatcher.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const asyncHandlers = new Map<string, Subscriber[]>();
4141
const queue = new Array<Event<any, any>>();
4242
const current = new Set<Callback>();
4343

44-
// eslint-disable-next-line @typescript-eslint/naming-convention
4544
export const DispatcherBusy = new ManualSignal<void>();
4645

4746
/** starts the processing of the event queue. */

Extension/src/Utility/Eventing/interfaces.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* See 'LICENSE' in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
55

6-
/* eslint-disable @typescript-eslint/naming-convention */
7-
86
export interface EventData<TInput = any | undefined> {
97
readonly name: string;
108
completed?: Promise<unknown>;

Extension/src/Utility/Process/program.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* See 'LICENSE' in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
55

6-
/* eslint-disable @typescript-eslint/naming-convention */
76
import { fail } from 'assert';
87
import { Factory } from '../Async/factory';
98
import { lazy } from '../Async/lazy';

Extension/src/Utility/Process/streams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class LineIterator implements AsyncIterable<string>, AsyncIterator<string
180180
* Iterator next function.
181181
* @returns the next line, or undefined if the iterator is done.
182182
*/
183-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
183+
184184
async next(): Promise<IteratorResult<string>> {
185185
do {
186186
// is the current line (regardless of whether it's full or not) a match

0 commit comments

Comments
 (0)