Skip to content

Commit a55cd93

Browse files
committed
prettier . --write
1 parent 055145f commit a55cd93

29 files changed

+111
-111
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ require('@rushstack/eslint-config/patch-eslint6');
33

44
module.exports = {
55
extends: ['@rushstack/eslint-config'],
6-
parserOptions: { tsconfigRootDir: __dirname },
6+
parserOptions: { tsconfigRootDir: __dirname }
77
};

src/analyzer/AstImport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export enum AstImportKind {
2626
/**
2727
* An import statement such as `import x = require("y");`.
2828
*/
29-
EqualsImport,
29+
EqualsImport
3030
}
3131

3232
/**

src/analyzer/AstSymbolTable.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class AstSymbolTable {
107107

108108
this._exportAnalyzer = new ExportAnalyzer(this._program, this._typeChecker, bundledPackageNames, {
109109
analyze: this.analyze.bind(this),
110-
fetchAstSymbol: this._fetchAstSymbol.bind(this),
110+
fetchAstSymbol: this._fetchAstSymbol.bind(this)
111111
});
112112

113113
this._alreadyWarnedGlobalNames = new Set<string>();
@@ -461,7 +461,7 @@ export class AstSymbolTable {
461461
followedSymbol: symbol,
462462
isExternal: isExternal,
463463
includeNominalAnalysis: true,
464-
addIfMissing: true,
464+
addIfMissing: true
465465
});
466466

467467
if (!astSymbol) {
@@ -572,7 +572,7 @@ export class AstSymbolTable {
572572
followedSymbol: parentSymbol,
573573
isExternal: options.isExternal,
574574
includeNominalAnalysis: false,
575-
addIfMissing: true,
575+
addIfMissing: true
576576
});
577577
if (!parentAstSymbol) {
578578
throw new InternalError('Unable to construct a parent AstSymbol for ' + followedSymbol.name);
@@ -589,7 +589,7 @@ export class AstSymbolTable {
589589
isExternal: options.isExternal,
590590
nominalAnalysis: nominalAnalysis,
591591
parentAstSymbol: parentAstSymbol,
592-
rootAstSymbol: parentAstSymbol ? parentAstSymbol.rootAstSymbol : undefined,
592+
rootAstSymbol: parentAstSymbol ? parentAstSymbol.rootAstSymbol : undefined
593593
});
594594

595595
this._astSymbolsBySymbol.set(followedSymbol, astSymbol);
@@ -614,7 +614,7 @@ export class AstSymbolTable {
614614
const astDeclaration: AstDeclaration = new AstDeclaration({
615615
declaration,
616616
astSymbol,
617-
parent: parentAstDeclaration,
617+
parent: parentAstDeclaration
618618
});
619619

620620
this._astDeclarationsByDeclaration.set(declaration, astDeclaration);

src/analyzer/ExportAnalyzer.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class ExportAnalyzer {
136136
followedSymbol: followedSymbol,
137137
isExternal: astModule.isExternal,
138138
includeNominalAnalysis: true,
139-
addIfMissing: true,
139+
addIfMissing: true
140140
});
141141

142142
if (!astSymbol) {
@@ -390,7 +390,7 @@ export class ExportAnalyzer {
390390
followedSymbol: current,
391391
isExternal: referringModuleIsExternal,
392392
includeNominalAnalysis: false,
393-
addIfMissing: true,
393+
addIfMissing: true
394394
});
395395

396396
return astSymbol;
@@ -441,7 +441,7 @@ export class ExportAnalyzer {
441441
return this._fetchAstImport(declarationSymbol, {
442442
importKind: AstImportKind.NamedImport,
443443
modulePath: externalModulePath,
444-
exportName: exportName,
444+
exportName: exportName
445445
});
446446
}
447447

@@ -496,7 +496,7 @@ export class ExportAnalyzer {
496496
return this._fetchAstImport(undefined, {
497497
importKind: AstImportKind.StarImport,
498498
exportName: declarationSymbol.name,
499-
modulePath: externalModulePath,
499+
modulePath: externalModulePath
500500
});
501501
}
502502

@@ -528,7 +528,7 @@ export class ExportAnalyzer {
528528
return this._fetchAstImport(declarationSymbol, {
529529
importKind: AstImportKind.NamedImport,
530530
modulePath: externalModulePath,
531-
exportName: exportName,
531+
exportName: exportName
532532
});
533533
}
534534

@@ -561,7 +561,7 @@ export class ExportAnalyzer {
561561
return this._fetchAstImport(declarationSymbol, {
562562
importKind: AstImportKind.DefaultImport,
563563
modulePath: externalModulePath,
564-
exportName,
564+
exportName
565565
});
566566
}
567567

@@ -599,7 +599,7 @@ export class ExportAnalyzer {
599599
return this._fetchAstImport(declarationSymbol, {
600600
importKind: AstImportKind.EqualsImport,
601601
modulePath: externalModuleName,
602-
exportName: variableName,
602+
exportName: variableName
603603
});
604604
}
605605
}
@@ -695,7 +695,7 @@ export class ExportAnalyzer {
695695
return this._fetchAstImport(astSymbol.followedSymbol, {
696696
importKind: AstImportKind.NamedImport,
697697
modulePath: starExportedModule.externalModulePath,
698-
exportName: exportName,
698+
exportName: exportName
699699
});
700700
}
701701

@@ -771,7 +771,7 @@ export class ExportAnalyzer {
771771

772772
const moduleReference: IAstModuleReference = {
773773
moduleSpecifier: moduleSpecifier,
774-
moduleSpecifierSymbol: exportSymbol,
774+
moduleSpecifierSymbol: exportSymbol
775775
};
776776
const specifierAstModule: AstModule = this.fetchAstModuleFromSourceFile(
777777
moduleSourceFile,
@@ -797,7 +797,7 @@ export class ExportAnalyzer {
797797
followedSymbol: followedSymbol,
798798
isExternal: true,
799799
includeNominalAnalysis: false,
800-
addIfMissing: true,
800+
addIfMissing: true
801801
});
802802
}
803803
}

src/analyzer/PackageMetadataManager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
JsonFile,
1010
NewlineKind,
1111
INodePackageJson,
12-
JsonObject,
12+
JsonObject
1313
} from '@rushstack/node-core-library';
1414
import { Extractor } from '../api/Extractor';
1515
import { MessageRouter } from '../collector/MessageRouter';
@@ -129,9 +129,9 @@ export class PackageMetadataManager {
129129
toolPackages: [
130130
{
131131
packageName: '@microsoft/api-extractor',
132-
packageVersion: Extractor.version,
133-
},
134-
],
132+
packageVersion: Extractor.version
133+
}
134+
]
135135
};
136136

137137
const fileContent: string =
@@ -141,7 +141,7 @@ export class PackageMetadataManager {
141141

142142
FileSystem.writeFile(tsdocMetadataPath, fileContent, {
143143
convertLineEndings: newlineKind,
144-
ensureFolderExists: true,
144+
ensureFolderExists: true
145145
});
146146
}
147147

src/analyzer/SourceFileLocationFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class SourceFileLocationFormatter {
2323
return SourceFileLocationFormatter.formatPath(sourceFile.fileName, {
2424
sourceFileLine: lineAndCharacter.line + 1,
2525
sourceFileColumn: lineAndCharacter.character + 1,
26-
workingPackageFolderPath,
26+
workingPackageFolderPath
2727
});
2828
}
2929

src/analyzer/Span.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class Span {
359359

360360
this._writeModifiedText({
361361
output,
362-
separatorOverride: undefined,
362+
separatorOverride: undefined
363363
});
364364

365365
return output.toString();
@@ -368,7 +368,7 @@ export class Span {
368368
public writeModifiedText(output: StringBuilder): void {
369369
this._writeModifiedText({
370370
output,
371-
separatorOverride: undefined,
371+
separatorOverride: undefined
372372
});
373373
}
374374

src/analyzer/TypeScriptHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class TypeScriptHelpers {
279279
ts.setEmitFlags(declarationName, ts.EmitFlags.NoIndentation | ts.EmitFlags.SingleLine);
280280
}
281281
emit(hint, node);
282-
},
282+
}
283283
}
284284
);
285285
const sourceFile: ts.SourceFile = declarationName.getSourceFile();

src/api/CompilerState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class CompilerState {
8585
}
8686

8787
return new CompilerState({
88-
program,
88+
program
8989
});
9090
}
9191

src/api/ConsoleMessageId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ export const enum ConsoleMessageId {
6363
/**
6464
* Used for the information printed when the "--diagnostics" flag is enabled.
6565
*/
66-
Diagnostics = 'console-diagnostics',
66+
Diagnostics = 'console-diagnostics'
6767
}

0 commit comments

Comments
 (0)