chore: eslint 配置
This commit is contained in:
@ -3,52 +3,6 @@ import { defineConfig, presetAttributify, presetWind3, transformerDirectives, tr
|
||||
// import presetChinese, { chineseTypography } from 'unocss-preset-chinese';
|
||||
|
||||
export default defineConfig({
|
||||
theme: {
|
||||
// https://unocss.dev/presets/wind#differences-from-tailwind-css
|
||||
// https://www.npmjs.com/package/unocss-preset-animations
|
||||
// https://github.com/whatnickcodes/unocss-preset-tailwindcss-motion
|
||||
animation: {
|
||||
keyframes: {
|
||||
scalein: '{0% { opacity: 0; transform: scaleY(0.8); } 100% { opacity: 1; transform: scaleY(1); }}',
|
||||
fadeout: '{0% { opacity: 1; } 100% { opacity: 0; }}',
|
||||
},
|
||||
durations: {
|
||||
scalein: '0.15s',
|
||||
fadeout: '0.15s',
|
||||
},
|
||||
timingFns: {
|
||||
scalein: 'linear',
|
||||
fadeout: 'linear',
|
||||
},
|
||||
properties: {
|
||||
scalein: {
|
||||
transition: 'transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)',
|
||||
},
|
||||
fadeout: {},
|
||||
},
|
||||
counts: {
|
||||
scalein: '1',
|
||||
fadeout: '1',
|
||||
},
|
||||
},
|
||||
|
||||
// https://unocss.dev/config/theme#usage
|
||||
colors: {
|
||||
'surface-0': 'var(--p-surface-0)', // text-surface-0
|
||||
'surface-900': 'var(--p-surface-900)', // text-surface-900
|
||||
},
|
||||
},
|
||||
|
||||
shortcuts: [
|
||||
{
|
||||
'logo-transform': 'i-icon:pacman w-6em h-6em transform transition-800',
|
||||
pacman: 'i-icon:pacman text-(pink 36)',
|
||||
},
|
||||
{
|
||||
// https://github.com/primefaces/tailwindcss-primeui/blob/d5e903377e015b7c63cb5edf42490b9d6954ef04/src/utils/preset.js
|
||||
'text-muted-color': 'text-[var(--p-text-muted-color)]',
|
||||
},
|
||||
],
|
||||
presets: [
|
||||
presetWind3({
|
||||
/* prefix: "u-", */
|
||||
@ -64,6 +18,52 @@ export default defineConfig({
|
||||
// https://unocss.dev/presets/attributify
|
||||
presetAttributify(),
|
||||
],
|
||||
|
||||
shortcuts: [
|
||||
{
|
||||
'logo-transform': 'i-icon:pacman w-6em h-6em transform transition-800',
|
||||
pacman: 'i-icon:pacman text-(pink 36)',
|
||||
},
|
||||
{
|
||||
// https://github.com/primefaces/tailwindcss-primeui/blob/d5e903377e015b7c63cb5edf42490b9d6954ef04/src/utils/preset.js
|
||||
'text-muted-color': 'text-[var(--p-text-muted-color)]',
|
||||
},
|
||||
],
|
||||
theme: {
|
||||
// https://unocss.dev/presets/wind#differences-from-tailwind-css
|
||||
// https://www.npmjs.com/package/unocss-preset-animations
|
||||
// https://github.com/whatnickcodes/unocss-preset-tailwindcss-motion
|
||||
animation: {
|
||||
counts: {
|
||||
fadeout: '1',
|
||||
scalein: '1',
|
||||
},
|
||||
durations: {
|
||||
fadeout: '0.15s',
|
||||
scalein: '0.15s',
|
||||
},
|
||||
keyframes: {
|
||||
fadeout: '{0% { opacity: 1; } 100% { opacity: 0; }}',
|
||||
scalein: '{0% { opacity: 0; transform: scaleY(0.8); } 100% { opacity: 1; transform: scaleY(1); }}',
|
||||
},
|
||||
properties: {
|
||||
fadeout: {},
|
||||
scalein: {
|
||||
transition: 'transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)',
|
||||
},
|
||||
},
|
||||
timingFns: {
|
||||
fadeout: 'linear',
|
||||
scalein: 'linear',
|
||||
},
|
||||
},
|
||||
|
||||
// https://unocss.dev/config/theme#usage
|
||||
colors: {
|
||||
'surface-0': 'var(--p-surface-0)', // text-surface-0
|
||||
'surface-900': 'var(--p-surface-900)', // text-surface-900
|
||||
},
|
||||
},
|
||||
transformers: [
|
||||
//https://unocss.dev/transformers/variant-group
|
||||
transformerVariantGroup(),
|
||||
|
Reference in New Issue
Block a user