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

View File

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

View File

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