chore: update ESLint configuration and biome settings to include routeTree.gen.ts

- Added src/renderer/src/routeTree.gen.ts to the ESLint includes for linting.
- Updated biome.jsonc to exclude src/renderer/src/routeTree.gen.ts from processing.
- Ensured consistent formatting in routeTree.gen.ts by adding missing commas and disabling ESLint for the file.
This commit is contained in:
MyPrototypeWhat 2025-12-04 15:44:02 +08:00
parent c0ee55cf39
commit 4149fca3a7
3 changed files with 11 additions and 5 deletions

View File

@ -51,7 +51,8 @@
"!*.json",
"!src/main/integration/**",
"!**/tailwind.css",
"!**/package.json"
"!**/package.json",
"!src/renderer/src/routeTree.gen.ts"
],
"indentStyle": "space",
"indentWidth": 2,
@ -81,7 +82,7 @@
},
"linter": {
"enabled": true,
"includes": ["!**/tailwind.css", "src/renderer/**/*.{tsx,ts}"],
"includes": ["!**/tailwind.css", "!src/renderer/src/routeTree.gen.ts", "src/renderer/**/*.{tsx,ts}"],
// only enable sorted tailwind css rule. used as formatter instead of linter
"rules": {
"nursery": {

View File

@ -66,6 +66,7 @@ export default defineConfig([
'src/main/integration/cherryai/index.js',
'src/main/integration/nutstore/sso/lib/**',
'src/renderer/src/ui/**',
'src/renderer/src/routeTree.gen.ts',
'packages/**/dist'
]
},

View File

@ -1,3 +1,5 @@
/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
@ -12,7 +14,7 @@ import { Route as IndexRouteImport } from './routes/index'
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
@ -50,6 +52,8 @@ declare module '@tanstack/react-router' {
}
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute
IndexRoute: IndexRoute,
}
export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)._addFileTypes<FileRouteTypes>()
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()