Skip to content

Commit 43220cf

Browse files
committed
exclude snapshots from prettier
1 parent d692497 commit 43220cf

2 files changed

Lines changed: 40 additions & 57 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/routeTree.*.snapshot.ts

‎packages/router-generator/tests/generator/no-formatted-route-tree/routeTree.nonnested.snapshot.ts‎

Lines changed: 39 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -14,82 +14,64 @@ import { Route as NestedIndexRouteImport } from './routes/nested/index'
1414
import { Route as NestedChildRouteImport } from './routes/nested/child'
1515

1616
const IndexRoute = IndexRouteImport.update({
17-
id: '/',
18-
path: '/',
19-
getParentRoute: () => rootRouteImport,
20-
} as any)
17+
id: '/',path: '/',getParentRoute: () => rootRouteImport
18+
}as any)
2119
const NestedIndexRoute = NestedIndexRouteImport.update({
22-
id: '/nested/',
23-
path: '/nested/',
24-
getParentRoute: () => rootRouteImport,
25-
} as any)
20+
id: '/nested/',path: '/nested/',getParentRoute: () => rootRouteImport
21+
}as any)
2622
const NestedChildRoute = NestedChildRouteImport.update({
27-
id: '/nested/child',
28-
path: '/nested/child',
29-
getParentRoute: () => rootRouteImport,
30-
} as any)
23+
id: '/nested/child',path: '/nested/child',getParentRoute: () => rootRouteImport
24+
}as any)
3125

3226
export interface FileRoutesByFullPath {
33-
'/': typeof IndexRoute
34-
'/nested/child': typeof NestedChildRoute
35-
'/nested': typeof NestedIndexRoute
27+
'/': typeof IndexRoute,'/nested/child': typeof NestedChildRoute,'/nested': typeof NestedIndexRoute
3628
}
3729
export interface FileRoutesByTo {
38-
'/': typeof IndexRoute
39-
'/nested/child': typeof NestedChildRoute
40-
'/nested': typeof NestedIndexRoute
30+
'/': typeof IndexRoute,'/nested/child': typeof NestedChildRoute,'/nested': typeof NestedIndexRoute
4131
}
4232
export interface FileRoutesById {
43-
__root__: typeof rootRouteImport
44-
'/': typeof IndexRoute
45-
'/nested/child': typeof NestedChildRoute
46-
'/nested/': typeof NestedIndexRoute
33+
'__root__': typeof rootRouteImport,
34+
'/': typeof IndexRoute,'/nested/child': typeof NestedChildRoute,'/nested/': typeof NestedIndexRoute
4735
}
4836
export interface FileRouteTypes {
49-
fileRoutesByFullPath: FileRoutesByFullPath
50-
fullPaths: '/' | '/nested/child' | '/nested'
51-
fileRoutesByTo: FileRoutesByTo
52-
to: '/' | '/nested/child' | '/nested'
53-
id: '__root__' | '/' | '/nested/child' | '/nested/'
54-
fileRoutesById: FileRoutesById
37+
fileRoutesByFullPath: FileRoutesByFullPath
38+
fullPaths: '/'|'/nested/child'|'/nested'
39+
fileRoutesByTo: FileRoutesByTo
40+
to: '/'|'/nested/child'|'/nested'
41+
id: '__root__'|'/'|'/nested/child'|'/nested/'
42+
fileRoutesById: FileRoutesById
5543
}
5644
export interface RootRouteChildren {
57-
IndexRoute: typeof IndexRoute
58-
NestedChildRoute: typeof NestedChildRoute
59-
NestedIndexRoute: typeof NestedIndexRoute
45+
IndexRoute: typeof IndexRoute,NestedChildRoute: typeof NestedChildRoute,NestedIndexRoute: typeof NestedIndexRoute
6046
}
6147

6248
declare module '@tanstack/react-router' {
6349
interface FileRoutesByPath {
6450
'/': {
65-
id: '/'
66-
path: '/'
67-
fullPath: '/'
68-
preLoaderRoute: typeof IndexRouteImport
69-
parentRoute: typeof rootRouteImport
70-
}
71-
'/nested/': {
72-
id: '/nested/'
73-
path: '/nested'
74-
fullPath: '/nested'
75-
preLoaderRoute: typeof NestedIndexRouteImport
76-
parentRoute: typeof rootRouteImport
77-
}
78-
'/nested/child': {
79-
id: '/nested/child'
80-
path: '/nested/child'
81-
fullPath: '/nested/child'
82-
preLoaderRoute: typeof NestedChildRouteImport
83-
parentRoute: typeof rootRouteImport
84-
}
51+
id: '/'
52+
path: '/'
53+
fullPath: '/'
54+
preLoaderRoute: typeof IndexRouteImport
55+
parentRoute: typeof rootRouteImport
56+
}
57+
'/nested/': {
58+
id: '/nested/'
59+
path: '/nested'
60+
fullPath: '/nested'
61+
preLoaderRoute: typeof NestedIndexRouteImport
62+
parentRoute: typeof rootRouteImport
63+
}
64+
'/nested/child': {
65+
id: '/nested/child'
66+
path: '/nested/child'
67+
fullPath: '/nested/child'
68+
preLoaderRoute: typeof NestedChildRouteImport
69+
parentRoute: typeof rootRouteImport
70+
}
8571
}
8672
}
8773

8874
const rootRouteChildren: RootRouteChildren = {
89-
IndexRoute: IndexRoute,
90-
NestedChildRoute: NestedChildRoute,
91-
NestedIndexRoute: NestedIndexRoute,
75+
IndexRoute: IndexRoute,NestedChildRoute: NestedChildRoute,NestedIndexRoute: NestedIndexRoute
9276
}
93-
export const routeTree = rootRouteImport
94-
._addFileChildren(rootRouteChildren)
95-
._addFileTypes<FileRouteTypes>()
77+
export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)._addFileTypes<FileRouteTypes>()

0 commit comments

Comments
 (0)