Skip to content

Commit 93cbbdb

Browse files
Bump prettier from 3.8.5 to 3.9.5 (#1624)
* Bump prettier from 3.8.5 to 3.9.5 Bumps [prettier](https://github.com/prettier/prettier) from 3.8.5 to 3.9.5. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.8.5...3.9.5) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.9.5 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * updating package.json * unneeded type assertion * running prettier --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Klaus <klahott@gmail.com>
1 parent 4d9d08a commit 93cbbdb

6 files changed

Lines changed: 14 additions & 26 deletions

File tree

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
"jest-snapshot-serializer-raw": "^2.0.0",
107107
"jest-watch-typeahead": "^3.0.1",
108108
"knip": "^6.25.0",
109-
"prettier": "^3.8.5",
110-
"solc": "^0.8.36",
109+
"prettier": "^3.9.5",
110+
"solc": "^0.8.35",
111111
"ts-loader": "^9.6.2",
112112
"ts-node": "^10.9.2",
113113
"typescript": "^6.0.3",

src/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ import { hasPrettierIgnore } from './slang-utils/has-prettier-ignore.js';
1313
import { getVisitorKeys } from './slang-utils/get-visitor-keys.js';
1414

1515
import type {
16-
AstPath,
17-
Doc,
1816
Parser,
19-
ParserOptions,
2017
Printer,
2118
RequiredOptions,
2219
SupportLanguage
@@ -80,12 +77,7 @@ const slangPrinter: Printer<PrintableNode> = {
8077
handleComments,
8178
isBlockComment,
8279
massageAstNode,
83-
print: slangPrint as (
84-
path: AstPath<PrintableNode>,
85-
options: ParserOptions<PrintableNode>,
86-
print: (path: AstPath<PrintableNode>) => Doc,
87-
args?: unknown
88-
) => Doc,
80+
print: slangPrint,
8981
hasPrettierIgnore,
9082
getVisitorKeys,
9183
printComment

src/slang-nodes/ConditionalExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class ConditionalExpression extends SlangNode {
135135
// We can remove parentheses only because we are sure that the
136136
// `condition` must be a single `bool` value.
137137
const operandLoc = this.operand.loc;
138-
for (let operandSingleExpression; ; ) {
138+
for (let operandSingleExpression; ;) {
139139
operandSingleExpression = getOperandSingleExpression(this.operand);
140140
if (
141141
operandSingleExpression === undefined ||

src/slang-nodes/types.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,4 @@ export type BinaryOperation = Extract<
498498
>;
499499

500500
export type ChainableExpression =
501-
| FunctionCallExpression
502-
| IndexAccessExpression
503-
| MemberAccessExpression;
501+
FunctionCallExpression | IndexAccessExpression | MemberAccessExpression;

tests/config/create-snapshot.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ function makeWidthIndicator(printWidth) {
5656

5757
const defaultWidthIndicator = makeWidthIndicator();
5858
function printWidthIndicator(printWidth) {
59-
if (
60-
!(
61-
printWidth === undefined ||
62-
(Number.isSafeInteger(printWidth) && printWidth > 0)
63-
)
64-
) {
59+
if (!(
60+
printWidth === undefined ||
61+
(Number.isSafeInteger(printWidth) && printWidth > 0)
62+
)) {
6563
return "";
6664
}
6765

0 commit comments

Comments
 (0)