move these configs respectively

This commit is contained in:
taskylizard
2024-02-25 01:13:16 +00:00
parent 00ab9fd3c6
commit b693586301
6 changed files with 4 additions and 5 deletions

7
docs/eslint.config.js Normal file
View File

@@ -0,0 +1,7 @@
// @ts-check
import tasky from '@taskylizard/eslint-config'
export default tasky({
vue: true,
browser: true
})

View File

@@ -5,7 +5,8 @@
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
"preview": "vitepress preview",
"lint": "eslint --cache --fix ."
},
"dependencies": {
"@headlessui/vue": "^1.7.17",

29
docs/unocss.config.ts Normal file
View File

@@ -0,0 +1,29 @@
import { defineConfig, presetUno, presetAttributify, presetIcons } from 'unocss'
export default defineConfig({
content: {
filesystem: ['.vitepress/config.mts', '.vitepress/constants.ts']
},
theme: {
colors: {
primary: 'var(--vp-c-brand-1)',
bg: 'var(--vp-c-bg)',
'bg-alt': 'var(--vp-c-bg-alt)',
'bg-elv': 'var(--vp-c-bg-elv)',
text: 'var(--vp-c-text-1)',
'text-2': 'var(--vp-c-text-2)',
div: 'var(--vp-c-divider)'
}
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.2,
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle'
}
})
]
})