lint:fix all

This commit is contained in:
2025-07-29 00:32:57 +08:00
parent 7d2f57df97
commit 1745a54eb6
34 changed files with 820 additions and 606 deletions

106
.github/nuxt.config.ts vendored
View File

@@ -1,11 +1,10 @@
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import tailwindcss from '@tailwindcss/vite';
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import tailwindcss from '@tailwindcss/vite'
const currentDir = dirname(fileURLToPath(import.meta.url));
const currentDir = dirname(fileURLToPath(import.meta.url))
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'shadcn-nuxt',
'@vueuse/nuxt',
@@ -16,42 +15,33 @@ export default defineNuxtConfig({
'nuxt-og-image',
'@nuxt/scripts',
'@nuxtjs/i18n',
'@nuxt/fonts',
'@nuxt/fonts'
],
shadcn: {
prefix: 'Ui',
componentDir: join(currentDir, './components/ui'),
},
components: {
dirs: [
{
path: './components',
ignore: ['**/*.ts'],
},
],
},
i18n: {
bundle: {
optimizeTranslationDirective: false,
},
strategy: 'prefix_except_default',
},
colorMode: {
classSuffix: '',
disableTransition: true,
ignore: ['**/*.ts']
}
]
},
devtools: { enabled: true },
css: [
join(currentDir, './assets/css/themes.css'),
'~/assets/css/tailwind.css',
'~/assets/css/tailwind.css'
],
colorMode: {
classSuffix: '',
disableTransition: true
},
content: {
documentDriven: true,
highlight: {
theme: {
default: 'github-light',
dark: 'github-dark',
dark: 'github-dark'
},
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv']
},
navigation: {
fields: [
@@ -65,40 +55,50 @@ export default defineNuxtConfig({
'editLink',
'prevNext',
'breadcrumb',
'fullpage',
],
'fullpage'
]
},
experimental: {
search: {
indexed: true,
},
},
indexed: true
}
}
},
icon: {
clientBundle: {
scan: true,
sizeLimitKb: 512,
},
},
fonts: {
defaults: {
weights: ['300 800'],
},
compatibilityDate: '2025-05-13',
vite: {
plugins: [
tailwindcss()
],
optimizeDeps: {
include: ['debug']
}
},
typescript: {
tsConfig: {
compilerOptions: {
baseUrl: '.',
},
},
baseUrl: '.'
}
}
},
vite: {
plugins: [
tailwindcss(),
],
optimizeDeps: {
include: ['debug'],
},
fonts: {
defaults: {
weights: ['300 800']
}
},
compatibilityDate: '2025-05-13',
});
i18n: {
bundle: {
optimizeTranslationDirective: false
},
strategy: 'prefix_except_default'
},
icon: {
clientBundle: {
scan: true,
sizeLimitKb: 512
}
},
shadcn: {
prefix: 'Ui',
componentDir: join(currentDir, './components/ui')
}
})