Skip to content

Commit

Permalink
chore(deps): use prettier v3.3.3 (#7816)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Jul 29, 2024
1 parent 6993177 commit 216a926
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 327 deletions.
2 changes: 2 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
"@types/node",
"@types/react",
"@types/react-dom",
"eslint-plugin-react-compiler",
"node",
"react",
"react-dom",
"react-scripts",
"tsup",
"typescript",
"typescript47",
"typescript48",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Posts</h1>
queryClient.getQueryData(['post', post.id])
? {
fontWeight: 'bold',
color: 'green'
color: 'green',
}
: {}
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>Posts</h1>
queryClient.getQueryData(['post', post.id])
? {
fontWeight: 'bold',
color: 'green'
color: 'green',
}
: {}
"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"jsdom": "^24.1.0",
"knip": "^5.26.0",
"nx": "^19.4.3",
"prettier": "^4.0.0-alpha.8",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.3",
"publint": "^0.2.8",
"react": "19.0.0-rc-4c2e457c7c-20240522",
Expand Down
2 changes: 1 addition & 1 deletion packages/query-core/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ function getDefaultState<
return {
data,
dataUpdateCount: 0,
dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
dataUpdatedAt: hasData ? (initialDataUpdatedAt ?? Date.now()) : 0,
error: null,
errorUpdateCount: 0,
errorUpdatedAt: 0,
Expand Down
11 changes: 6 additions & 5 deletions packages/vue-query/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ export type MaybeRefDeep<T> = MaybeRef<

export type NoUnknown<T> = Equal<unknown, T> extends true ? never : T

export type Equal<TTargetA, TTargetB> = (<T>() => T extends TTargetA
? 1
: 2) extends <T>() => T extends TTargetB ? 1 : 2
? true
: false
export type Equal<TTargetA, TTargetB> =
(<T>() => T extends TTargetA ? 1 : 2) extends <T>() => T extends TTargetB
? 1
: 2
? true
: false

export type DeepUnwrapRef<T> = T extends UnwrapLeaf
? T
Expand Down
Loading

0 comments on commit 216a926

Please sign in to comment.