mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
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:
parent
c0ee55cf39
commit
4149fca3a7
@ -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": {
|
||||||
|
|||||||
@ -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'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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>()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user