Skip to content

Commit 055145f

Browse files
committed
Fix up the ESLint suppressions that are shuffled by Prettier
1 parent 7f5e2f7 commit 055145f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/analyzer/AstReferenceResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export class AstReferenceResolver {
235235
}
236236

237237
return new ResolverFailure(
238-
`More than one declaration "${astSymbolName}" matches the` + ` TSDoc selector "${selectorName}"`
238+
`More than one declaration "${astSymbolName}" matches the TSDoc selector "${selectorName}"`
239239
);
240240
}
241241
return matches[0];

src/analyzer/AstSymbolTable.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,10 @@ export class AstSymbolTable {
487487

488488
const arbitraryDeclaration: ts.Declaration = followedSymbol.declarations[0];
489489

490-
// eslint-disable-next-line no-bitwise
491490
if (
491+
// eslint-disable-next-line no-bitwise
492492
followedSymbol.flags &
493+
// eslint-disable-next-line no-bitwise
493494
(ts.SymbolFlags.TypeParameter | ts.SymbolFlags.TypeLiteral | ts.SymbolFlags.Transient) &&
494495
!TypeScriptInternals.isLateBoundSymbol(followedSymbol)
495496
) {

src/analyzer/ExportAnalyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ export class ExportAnalyzer {
367367
}
368368
}
369369

370+
// eslint-disable-next-line no-bitwise
370371
if (!(current.flags & ts.SymbolFlags.Alias)) {
371-
// eslint-disable-line no-bitwise
372372
break;
373373
}
374374

src/analyzer/TypeScriptInternals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export class TypeScriptInternals {
4545
* for a computed property based on its type, rather than by the Binder).
4646
*/
4747
public static isLateBoundSymbol(symbol: ts.Symbol): boolean {
48-
// eslint-disable-next-line no-bitwise
4948
if (
49+
// eslint-disable-next-line no-bitwise
5050
symbol.flags & ts.SymbolFlags.Transient &&
5151
(symbol as any).checkFlags === (ts as any).CheckFlags.Late
5252
) {

src/generators/ApiReportGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ export class ApiReportGenerator {
184184
insideTypeLiteral: boolean
185185
): void {
186186
// Should we process this declaration at all?
187+
// eslint-disable-next-line no-bitwise
187188
if ((astDeclaration.modifierFlags & ts.ModifierFlags.Private) !== 0) {
188-
// eslint-disable-line no-bitwise
189189
span.modification.skipAll();
190190
return;
191191
}

0 commit comments

Comments
 (0)