Skip to content

Commit

Permalink
style: update prettier style
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Dec 23, 2023
1 parent 56ef05b commit 4a5c1b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/usage/UsageWalker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class UsageWalker {
? new ClassExpressionScope(
(node as ts.ClassExpression).name!,
this.#scope,
)
)

Check warning on line 237 in src/usage/UsageWalker.ts

View check run for this annotation

Codecov / codecov/patch

src/usage/UsageWalker.ts#L237

Added line #L237 was not covered by tests
: new NonRootScope(this.#scope, ScopeBoundary.Function),
);
case ts.SyntaxKind.ClassDeclaration:
Expand Down
4 changes: 2 additions & 2 deletions src/usage/getPropertyName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export function getPropertyName(
return ts.isNumericLiteral(expression.operand)
? `${negate ? "-" : ""}${expression.operand.text}`
: ts.isBigIntLiteral(expression.operand)
? `${negate ? "-" : ""}${expression.operand.text.slice(0, -1)}`
: undefined;
? `${negate ? "-" : ""}${expression.operand.text.slice(0, -1)}`
: undefined;

Check warning on line 32 in src/usage/getPropertyName.ts

View check run for this annotation

Codecov / codecov/patch

src/usage/getPropertyName.ts#L31-L32

Added lines #L31 - L32 were not covered by tests
default:
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/usage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function identifierToKeywordKind(
return "identifierToKeywordKind" in ts
? ts.identifierToKeywordKind(node)
: // eslint-disable-next-line deprecation/deprecation
node.originalKeywordKind;
node.originalKeywordKind;
}

/**
Expand Down

0 comments on commit 4a5c1b3

Please sign in to comment.