style: lint

This commit is contained in:
Neko Ayaka
2026-08-26 19:49:58 +08:00
parent e60a04a4ec
commit 98f40d7d0b
1625 changed files with 75216 additions and 75203 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import App from './App.vue'
import '@unocss/reset/tailwind.css'
import 'uno.css'
const router = createRouter({ routes, history: createWebHashHistory() })
const router = createRouter({ history: createWebHashHistory(), routes })
createApp(App)
.use(router)
@@ -11,12 +11,12 @@ export const weatherComponent = defineCallingComponent(
Weather,
object({
city: string(),
temperature: string(),
condition: string(),
temperature: string(),
}),
{
city: 'Tokyo',
temperature: '25°',
condition: 'Sunny',
temperature: '25°',
},
)
@@ -6,9 +6,9 @@ import { toJsonSchema } from 'xsschema'
export function defineCallingComponent<T extends Schema>(name: string, component: Component, schema: T, exampleProps?: Record<string, any>) {
return {
name,
schema: toJsonSchema(schema),
component: markRaw(component),
exampleProps,
name,
schema: toJsonSchema(schema),
}
}
+3 -3
View File
@@ -25,8 +25,8 @@ export default defineConfig({
...presetWebFontsFonts('fontsource'),
},
timeouts: {
warning: 5000,
failure: 10000,
warning: 5000,
},
}),
presetIcons({
@@ -35,14 +35,14 @@ export default defineConfig({
presetChromatic({
baseHue: 240.25,
colors: {
primary: 0,
complementary: 180,
primary: 0,
},
}) as Preset,
],
safelist: 'prose prose-sm m-auto text-left'.split(' '),
transformers: [
transformerDirectives(),
transformerVariantGroup(),
],
safelist: 'prose prose-sm m-auto text-left'.split(' '),
})
+1 -1
View File
@@ -9,8 +9,8 @@ import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
VueRouter({
extensions: ['.vue', '.md'],
dts: resolve(import.meta.dirname, 'src', 'typed-router.d.ts'),
extensions: ['.vue', '.md'],
}),
Vue(),
// https://github.com/antfu/unocss