Skip to content

Commit 2333526

Browse files
committed
Remove deadwood TSLint suppressions
1 parent 6bb00df commit 2333526

File tree

32 files changed

+14
-52
lines changed

32 files changed

+14
-52
lines changed

apps/api-documenter/src/documenters/YamlDocumenter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
// tslint:disable:member-ordering
5-
64
import * as path from 'path';
75

86
import yaml = require('js-yaml');

apps/api-extractor-model/src/items/ApiItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class ApiItem {
231231
// These functional forms don't have a proper name, so we don't append the "()" suffix
232232
break;
233233
default:
234-
if (ApiParameterListMixin.isBaseClassOf(current)) { // tslint:disable-line:no-use-before-declare
234+
if (ApiParameterListMixin.isBaseClassOf(current)) {
235235
reversedParts.push('()');
236236
}
237237
}

apps/api-extractor/src/analyzer/AstSymbolTable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ export class AstSymbolTable {
379379
return referencedAstEntity;
380380
}
381381

382-
// tslint:disable-next-line:no-unused-variable
383382
private _fetchAstDeclaration(node: ts.Node, isExternal: boolean): AstDeclaration | undefined {
384383
if (!AstDeclaration.isSupportedSyntaxKind(node.kind)) {
385384
return undefined;

apps/api-extractor/src/generators/DtsRollupGenerator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export class DtsRollupGenerator {
7171

7272
// Emit the triple slash directives
7373
for (const typeDirectiveReference of collector.dtsTypeReferenceDirectives) {
74-
// tslint:disable-next-line:max-line-length
7574
// https://github.com/microsoft/TypeScript/blob/611ebc7aadd7a44a4c0447698bfda9222a78cb66/src/compiler/declarationEmitter.ts#L162
7675
stringWriter.writeLine(`/// <reference types="${typeDirectiveReference}" />`);
7776
}

apps/rush-lib/src/logic/TaskSelector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ export class TaskSelector {
203203
const script: string | undefined = this._getScriptCommand(rushProject, this._options.commandToRun);
204204

205205
if (script === undefined && !this._options.ignoreMissingScript) {
206-
// tslint:disable-next-line:max-line-length
207206
throw new Error(`The project [${rushProject.packageName}] does not define a '${this._options.commandToRun}' command in the 'scripts' section of its package.json`);
208207
}
209208

apps/rush-lib/src/logic/pnpm/PnpmLinkManager.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ export class PnpmLinkManager extends BaseLinkManager {
210210
const folderNameInLocalInstallationRoot: string = uriEncode(Text.replaceAll(absolutePathToTgzFile, path.sep, '/')) +
211211
folderNameSuffix;
212212

213-
// tslint:disable-next-line:max-line-length
214213
// e.g.: C:\wbt\common\temp\node_modules\.local\C%3A%2Fwbt%2Fcommon%2Ftemp%2Fprojects%2Fapi-documenter.tgz\node_modules
215214

216215
const pathToLocalInstallation: string = this._getPathToLocalInstallation(folderNameInLocalInstallationRoot);
@@ -306,7 +305,6 @@ export class PnpmLinkManager extends BaseLinkManager {
306305

307306
// FYI dependencyName might contain an NPM scope, here it gets converted into a filesystem folder name
308307
// e.g. if the dependency is supi:
309-
// tslint:disable-next-line:max-line-length
310308
// "C:\wbt\common\temp\node_modules\.local\C%3A%2Fwbt%2Fcommon%2Ftemp%2Fprojects%2Fapi-documenter.tgz\node_modules\supi"
311309
const dependencyLocalInstallationSymlink: string = path.join(
312310
pathToLocalInstallation,

apps/rush-lib/src/logic/test/ChangelogGenerator.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ describe('updateIndividualChangelog', () => {
136136
rushConfiguration
137137
)!;
138138

139-
/* tslint:disable-next-line:no-unused-expression */
140139
expect(actualResult).not.toBeDefined();
141140
});
142141

apps/rush-lib/src/logic/test/PublishUtilities.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ describe('findChangeRequests', () => {
7575
});
7676

7777
it('returns 4 changes when hotfixing a root package', () => {
78-
// tslint:disable-next-line no-any
7978
const allChanges: IChangeInfoHash = PublishUtilities.findChangeRequests(
8079
packagesRushConfiguration.projectsByName,
8180
packagesRushConfiguration,
@@ -282,13 +281,11 @@ describe('sortChangeRequests', () => {
282281

283282
describe('isRangeDependency', () => {
284283
it('can test ranges', () => {
285-
/* tslint:disable:no-unused-expression */
286284
expect(PublishUtilities.isRangeDependency('>=1.0.0 <2.0.0')).toEqual(true);
287285
expect(PublishUtilities.isRangeDependency('>=1.0.0-pr.1 <2.0.0')).toEqual(true);
288286
expect(PublishUtilities.isRangeDependency('1.0.0')).toEqual(false);
289287
expect(PublishUtilities.isRangeDependency('^1.0.0')).toEqual(false);
290288
expect(PublishUtilities.isRangeDependency('~1.0.0')).toEqual(false);
291-
/* tslint:enable:no-unused-expression */
292289
});
293290
});
294291

apps/rush-lib/src/utilities/AlreadyReportedError.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export class AlreadyReportedError extends Error {
1212
super('An error occurred.');
1313

1414
// Manually set the prototype, as we can no longer extend built-in classes like Error, Array, Map, etc
15-
// tslint:disable-next-line:max-line-length
1615
// [https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work](https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work)
1716
//
1817
// Note: the prototype must also be set on any classes which extend this one

core-build/gulp-core-build-mocha/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export const instrument: InstrumentTask = new InstrumentTask();
1010
/** @public */
1111
export const mocha: MochaTask = new MochaTask();
1212

13-
export default serial(instrument, mocha) as IExecutable; // tslint:disable-line:export-name no-any
13+
export default serial(instrument, mocha) as IExecutable;

0 commit comments

Comments
 (0)