refactor: 优化eslint配置,提升代码质量 (#1341)

* feat: 统一并标准化eslint

* lint: napcat.webui

* lint: napcat.webui

* lint: napcat.core

* build: fix

* lint: napcat.webui

* refactor: 重构eslint

* Update README.md
This commit is contained in:
时瑾 authored and GitHub committed 2025-11-03 16:30:45 +08:00
1 parent d5b8f886d6
commit 06f6a542f5
651 files changed
+37978 -37584

No files matched your search

+17 -17
View File
@@ -1,4 +1,4 @@
import { tv } from 'tailwind-variants'
import { tv } from 'tailwind-variants';
export const title = tv({
base: 'tracking-tight inline font-semibold',
@@ -10,24 +10,24 @@ export const title = tv({
cyan: 'from-[#00b7fa] to-[#01cfea]',
green: 'from-[#6FEE8D] to-[#17c964]',
pink: 'from-[#FF72E1] to-[#F54C7A]',
foreground: 'from-[#FFFFFF] to-[#4B4B4B]'
foreground: 'from-[#FFFFFF] to-[#4B4B4B]',
},
size: {
xxs: 'text-medium lg:text-medium',
xs: 'text-xl lg:text-xl',
sm: 'text-3xl lg:text-4xl',
md: 'text-[2.3rem] lg:text-5xl leading-9',
lg: 'text-4xl lg:text-6xl'
lg: 'text-4xl lg:text-6xl',
},
fullWidth: {
true: 'w-full block'
true: 'w-full block',
},
shadow: {
true: 'drop-shadow-md'
}
true: 'drop-shadow-md',
},
},
defaultVariants: {
size: 'md'
size: 'md',
},
compoundVariants: [
{
@@ -38,21 +38,21 @@ export const title = tv({
'cyan',
'green',
'pink',
'foreground'
'foreground',
],
class: 'bg-clip-text text-transparent bg-gradient-to-b'
}
]
})
class: 'bg-clip-text text-transparent bg-gradient-to-b',
},
],
});
export const subtitle = tv({
base: 'w-full md:w-1/2 my-2 text-lg lg:text-xl text-default-600 block max-w-full',
variants: {
fullWidth: {
true: '!w-full'
}
true: '!w-full',
},
},
defaultVariants: {
fullWidth: true
}
})
fullWidth: true,
},
});