Skip to content

Commit cebeb17

Browse files
Bump prettier from 2.7.1 to 3.6.2 (#94)
* Bump prettier from 2.7.1 to 3.6.2 Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 3.6.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.7.1...3.6.2) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.6.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * dependabot/npm_and_yarn/prettier-3.6.2 Fix prettier issues --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lavender <[email protected]>
1 parent b9dc9ee commit cebeb17

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"globals": "^16.0.0",
9393
"jest-extended": "^4.0.2",
9494
"jsdom": "20.0.3",
95-
"prettier": "2.7.1",
95+
"prettier": "3.6.2",
9696
"storybook": "^9.0.10",
9797
"typescript": "^5.7.3",
9898
"vite": "6.3.5",

src/styles/styles.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,22 @@ const rotateAnimation = keyframes({
1818
});
1919

2020
export const animatedBlueBorder = css`
21-
background: linear-gradient(90deg, ${palette.blue.base} 50%, transparent 50%),
21+
background:
22+
linear-gradient(90deg, ${palette.blue.base} 50%, transparent 50%),
2223
linear-gradient(90deg, ${palette.blue.base} 50%, transparent 50%),
2324
linear-gradient(0deg, ${palette.blue.base} 50%, transparent 50%),
2425
linear-gradient(0deg, ${palette.blue.base} 50%, transparent 50%);
2526
background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
26-
background-position: left top, right bottom, left bottom, right top;
27-
background-size: 15px 2px, 15px 2px, 2px 15px, 2px 15px;
27+
background-position:
28+
left top,
29+
right bottom,
30+
left bottom,
31+
right top;
32+
background-size:
33+
15px 2px,
34+
15px 2px,
35+
2px 15px,
36+
2px 15px;
2837
animation: ${rotateAnimation} 1s linear infinite;
2938
border-radius: ${spacing[200]}px;
3039
`;

src/utilities/apply-layout.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ export const applyLayout = <N extends BaseNode, E extends BaseEdge>(
6666
const transformedNodes = nodes.map<N>(node => ({
6767
...node,
6868
height:
69-
'height' in node && typeof node.height === 'number' ? node.height : node.measured?.height ?? getNodeHeight(node),
70-
width: 'width' in node && typeof node.width === 'number' ? node.width : node.measured?.width ?? DEFAULT_NODE_WIDTH,
69+
'height' in node && typeof node.height === 'number'
70+
? node.height
71+
: (node.measured?.height ?? getNodeHeight(node)),
72+
width:
73+
'width' in node && typeof node.width === 'number' ? node.width : (node.measured?.width ?? DEFAULT_NODE_WIDTH),
7174
}));
7275

7376
const transformedEdges = edges.map<ElkExtendedEdge>(edge => ({

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ __metadata:
13371337
globals: "npm:^16.0.0"
13381338
jest-extended: "npm:^4.0.2"
13391339
jsdom: "npm:20.0.3"
1340-
prettier: "npm:2.7.1"
1340+
prettier: "npm:3.6.2"
13411341
react: "npm:17.0.2"
13421342
react-dom: "npm:17.0.2"
13431343
storybook: "npm:^9.0.10"
@@ -7826,12 +7826,12 @@ __metadata:
78267826
languageName: node
78277827
linkType: hard
78287828

7829-
"prettier@npm:2.7.1":
7830-
version: 2.7.1
7831-
resolution: "prettier@npm:2.7.1"
7829+
"prettier@npm:3.6.2":
7830+
version: 3.6.2
7831+
resolution: "prettier@npm:3.6.2"
78327832
bin:
7833-
prettier: bin-prettier.js
7834-
checksum: 10c0/359d2b7ecf36bd52924a48331cae506d335f18637fde6c686212f952b9ce678ce9f554a80571049b36ec2897a8a6c40094b776dea371cc5c04c481cf5b78504b
7833+
prettier: bin/prettier.cjs
7834+
checksum: 10c0/488cb2f2b99ec13da1e50074912870217c11edaddedeadc649b1244c749d15ba94e846423d062e2c4c9ae683e2d65f754de28889ba06e697ac4f988d44f45812
78357835
languageName: node
78367836
linkType: hard
78377837

0 commit comments

Comments
 (0)