Skip to content

Commit

Permalink
chore(deps): update all non-major dependencies (#2051)
Browse files Browse the repository at this point in the history
* chore(deps): update all non-major dependencies

* Fix typescript-eslint rules

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
  • Loading branch information
renovate[bot] and lachlancollins committed Jul 29, 2024
1 parent 18d2efc commit a1438ee
Show file tree
Hide file tree
Showing 30 changed files with 144 additions and 113 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default [
{
name: 'tanstack/temp',
rules: {
'ts/ban-types': 'off',
'@typescript-eslint/ban-types': 'off',
'no-shadow': 'off',
},
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/authenticated-routes/src/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { z } from 'zod'
import { useAuth } from '../auth'
import { sleep } from '../utils'

// eslint-disable-next-line ts/no-unnecessary-type-assertion
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const fallback = '/dashboard' as const

export const Route = createFileRoute('/login')({
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-react-query/src/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const fetchPost = async (postId: string) => {
.get<PostType>(`https://jsonplaceholder.typicode.com/posts/${postId}`)
.then((r) => r.data)

// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!post) {
throw new NotFoundError(`Post with id "${postId}" not found!`)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic/src/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const fetchPost = async (postId: string) => {
.get<PostType>(`https://jsonplaceholder.typicode.com/posts/${postId}`)
.then((r) => r.data)

// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!post) {
throw new NotFoundError(`Post with id "${postId}" not found!`)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable ts/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import * as React from 'react'
import type { Invoice } from '../utils/mockTodos'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function patchInvoice({
if (!invoice) {
throw new Error('Invoice not found.')
}
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (updatedInvoice.title?.toLocaleLowerCase()?.includes('error')) {
throw new Error('Ouch!')
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable ts/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import * as React from 'react'
import {
Link,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function patchInvoice({
if (!invoice) {
throw new Error('Invoice not found.')
}
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (updatedInvoice.title?.toLocaleLowerCase()?.includes('error')) {
throw new Error('Ouch!')
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/kitchen-sink-react-query/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable ts/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import * as React from 'react'
import ReactDOM from 'react-dom/client'
import {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/kitchen-sink-react-query/src/mockTodos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function patchInvoice({
if (!invoice) {
throw new Error('Invoice not found.')
}
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (updatedInvoice.title?.toLocaleLowerCase()?.includes('error')) {
throw new Error('Ouch!')
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/kitchen-sink/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable ts/no-unnecessary-condition */
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import * as React from 'react'
import ReactDOM from 'react-dom/client'
import {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/kitchen-sink/src/mockTodos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function patchInvoice({
if (!invoice) {
throw new Error('Invoice not found.')
}
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (updatedInvoice.title?.toLocaleLowerCase()?.includes('error')) {
throw new Error('Ouch!')
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-basic-counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@typescript-eslint/parser": "^7.17.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vinxi": "0.3.12"
"vinxi": "0.4.1"
},
"devDependencies": {
"@types/node": "^20.12.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-basic-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"react-dom": "^18.3.1",
"redaxios": "^0.5.1",
"tailwind-merge": "^2.4.0",
"vinxi": "0.3.12"
"vinxi": "0.4.1"
},
"devDependencies": {
"@playwright/test": "^1.45.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-basic-rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@tanstack/start": "^1.45.11",
"redaxios": "^0.5.1",
"tailwind-merge": "^2.4.0",
"vinxi": "0.3.12"
"vinxi": "0.4.1"
},
"devDependencies": {
"@types/react": "^18.2.65",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react-dom": "^18.3.1",
"redaxios": "^0.5.1",
"tailwind-merge": "^2.4.0",
"vinxi": "0.3.12"
"vinxi": "0.4.1"
},
"devDependencies": {
"@playwright/test": "^1.45.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-trellaux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"redaxios": "^0.5.1",
"tailwind-merge": "^2.4.0",
"tiny-invariant": "^1.3.3",
"vinxi": "0.3.12",
"vinxi": "0.4.1",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@eslint-react/eslint-plugin": "^1.6.0",
"@playwright/test": "^1.45.3",
"@rollup/plugin-replace": "^5.0.7",
"@tanstack/config": "^0.10.0",
"@tanstack/config": "^0.11.1",
"@types/node": "^20.14.7",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-with-query/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
{
files: ['**/__tests__/**'],
rules: {
'ts/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
]
2 changes: 1 addition & 1 deletion packages/react-router/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
{
files: ['**/__tests__/**'],
rules: {
'ts/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
]
2 changes: 1 addition & 1 deletion packages/react-router/src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ export class Route<

const isRoot = !options?.path && !options?.id

// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
this.parentRoute = this.options?.getParentRoute?.()

if (isRoot) {
Expand Down
8 changes: 4 additions & 4 deletions packages/react-router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ export class Router<
}

if (
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
!this.history ||
(this.options.history && this.options.history !== this.history)
) {
Expand All @@ -654,7 +654,7 @@ export class Router<
this.buildRouteTree()
}

// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!this.__store) {
this.__store = new Store(getInitialRouterState(this.latestLocation), {
onUpdate: () => {
Expand Down Expand Up @@ -1542,9 +1542,9 @@ export class Router<
await this.loadMatches({
matches: pendingMatches,
location: next,
// eslint-disable-next-line ts/require-await
// eslint-disable-next-line @typescript-eslint/require-await
onReady: async () => {
// eslint-disable-next-line ts/require-await
// eslint-disable-next-line @typescript-eslint/require-await
this.startViewTransition(async () => {
// this.viewTransitionPromise = createControlledPromise<true>()

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type MakeDifferenceOptional<TLeft, TRight> = Omit<
}

// from https://stackoverflow.com/a/53955431
// eslint-disable-next-line ts/naming-convention
// eslint-disable-next-line @typescript-eslint/naming-convention
export type IsUnion<T, U extends T = T> = (
T extends any ? (U extends T ? false : true) : never
) extends false
Expand Down
2 changes: 1 addition & 1 deletion packages/router-devtools/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default [
{
files: ['**/__tests__/**'],
rules: {
'ts/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
]
4 changes: 2 additions & 2 deletions packages/router-devtools/src/useMediaQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function useMediaQuery(query: string): boolean | undefined {
// Keep track of the preference in state, start with the current match
const [isMatch, setIsMatch] = React.useState(() => {
if (typeof window !== 'undefined') {
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
return window.matchMedia && window.matchMedia(query).matches
}
return
Expand All @@ -13,7 +13,7 @@ export default function useMediaQuery(query: string): boolean | undefined {
// Watch for changes
React.useEffect(() => {
if (typeof window !== 'undefined') {
// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!window.matchMedia) {
return
}
Expand Down
2 changes: 1 addition & 1 deletion packages/router-plugin/src/compilers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { ParseAstOptions } from './ast'
// https://github.com/babel/babel/issues/15269.
let generate = (_generate as any)['default'] as typeof _generate

// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!generate) {
generate = _generate
}
Expand Down
2 changes: 1 addition & 1 deletion packages/start-vite-plugin/src/compilers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ParseAstOptions } from './ast'
// https://github.com/babel/babel/issues/15269.
let generate = (_generate as any)['default'] as typeof _generate

// eslint-disable-next-line ts/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!generate) {
generate = _generate
}
Expand Down
2 changes: 1 addition & 1 deletion packages/start/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
{
files: ['**/__tests__/**'],
rules: {
'ts/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
]
6 changes: 3 additions & 3 deletions packages/start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@
"@types/jsesc": "^3.0.3",
"@vinxi/react": "0.2.3",
"@vinxi/react-server-dom": "^0.0.3",
"@vinxi/server-components": "^0.3.3",
"@vinxi/server-functions": "^0.3.3",
"@vinxi/server-components": "^0.4.1",
"@vinxi/server-functions": "^0.4.1",
"import-meta-resolve": "^4.1.0",
"isbot": "^5.1.13",
"jsesc": "^3.0.2",
"tiny-invariant": "^1.3.3",
"vinxi": "0.3.12",
"vinxi": "0.4.1",
"vite-tsconfig-paths": "^4.3.2",
"zod": "^3.23.8"
},
Expand Down
Loading

0 comments on commit a1438ee

Please sign in to comment.