File tree Expand file tree Collapse file tree 10 files changed +396
-354
lines changed Expand file tree Collapse file tree 10 files changed +396
-354
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"editor.formatOnSave" : true ,
3
3
"unocss.root" : " ./playground" ,
4
- "eslint.experimental.useFlatConfig" : true ,
5
- "eslint.options" : {
6
- "overrideConfigFile" : " ./eslint.config.mjs"
7
- }
4
+ "eslint.experimental.useFlatConfig" : true
8
5
}
Original file line number Diff line number Diff line change
1
+ const { sxzz } = require ( '@sxzz/eslint-config' )
2
+ module . exports = sxzz ( )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 65
65
"access" : " public"
66
66
},
67
67
"scripts" : {
68
- "lint" : " ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs --cache ." ,
69
- "lint:fix" : " pnpm run lint -- -- fix" ,
68
+ "lint" : " eslint --cache ." ,
69
+ "lint:fix" : " pnpm run lint --fix" ,
70
70
"build" : " tsup && tsx scripts/postbuild.mts" ,
71
71
"dev" : " pnpm run -C playground dev" ,
72
72
"test" : " vitest" ,
85
85
"unplugin" : " ^1.3.1"
86
86
},
87
87
"devDependencies" : {
88
- "@sxzz/eslint-config" : " ^3.0.0" ,
88
+ "@sxzz/eslint-config" : " ^3.1.0" ,
89
+ "@sxzz/prettier-config" : " ^1.0.2" ,
89
90
"@types/benchmark" : " ^2.1.2" ,
90
91
"@types/jsesc" : " ^3.0.1" ,
91
- "@types/node" : " ^18.16.18 " ,
92
- "@types/react" : " ^18.2.12 " ,
92
+ "@types/node" : " ^20.3.1 " ,
93
+ "@types/react" : " ^18.2.14 " ,
93
94
"benchmark" : " ^2.1.4" ,
94
95
"bumpp" : " ^9.1.1" ,
95
96
"eslint" : " ^8.43.0" ,
96
- "eslint-define-config" : " ^1.20 .0" ,
97
+ "eslint-define-config" : " ^1.21 .0" ,
97
98
"fast-glob" : " ^3.2.12" ,
98
99
"prettier" : " ^2.8.8" ,
99
100
"tsup" : " ^7.0.0" ,
104
105
},
105
106
"engines" : {
106
107
"node" : " >=16.14.0"
107
- }
108
+ },
109
+ "prettier" : " @sxzz/prettier-config"
108
110
}
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < link rel ="icon " href ="/favicon.ico " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
+ < title > JSX to String</ title >
8
+ </ head >
3
9
4
- < head >
5
- < meta charset ="UTF-8 " />
6
- < link rel ="icon " href ="/favicon.ico " />
7
- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
8
- < title > JSX to String</ title >
9
- </ head >
10
-
11
- < body class ="font-sans dark:text-white dark:bg-hex-121212 ">
12
- < div id ="app "> </ div >
13
- < script >
14
- ( function ( ) {
15
- const prefersDark = window . matchMedia && window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches
16
- const setting = localStorage . getItem ( 'color-schema' ) || 'auto'
17
- if ( setting === 'dark' || ( prefersDark && setting !== 'light' ) )
18
- document . documentElement . classList . toggle ( 'dark' , true )
19
- } ) ( )
20
- </ script >
21
- < script type ="module " src ="/src/main.ts "> </ script >
22
- </ body >
23
-
10
+ < body class ="font-sans dark:text-white dark:bg-hex-121212 ">
11
+ < div id ="app "> </ div >
12
+ < script >
13
+ ; ( function ( ) {
14
+ const prefersDark =
15
+ window . matchMedia &&
16
+ window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches
17
+ const setting = localStorage . getItem ( 'color-schema' ) || 'auto'
18
+ if ( setting === 'dark' || ( prefersDark && setting !== 'light' ) )
19
+ document . documentElement . classList . toggle ( 'dark' , true )
20
+ } ) ( )
21
+ </ script >
22
+ < script type ="module " src ="/src/main.ts "> </ script >
23
+ </ body >
24
24
</ html >
Original file line number Diff line number Diff line change 11
11
"vercel-build" : " pnpm run -C .. build && pnpm build"
12
12
},
13
13
"dependencies" : {
14
- "@unocss/reset" : " ^0.53.1 " ,
14
+ "@unocss/reset" : " ^0.53.3 " ,
15
15
"@vueuse/core" : " ^10.2.0" ,
16
16
"unplugin-jsx-string" : " workspace:*" ,
17
17
"vue" : " ^3.3.4"
20
20
"@iconify-json/carbon" : " ^1.1.18" ,
21
21
"@vitejs/plugin-vue" : " ^4.2.3" ,
22
22
"@vue/runtime-core" : " ^3.3.4" ,
23
- "unocss" : " ^0.53.1 " ,
23
+ "unocss" : " ^0.53.3 " ,
24
24
"unplugin-auto-import" : " ^0.16.4" ,
25
25
"unplugin-vue-components" : " ^0.25.1" ,
26
26
"vite" : " ^4.3.9" ,
27
- "vue-tsc" : " ^1.8.0 "
27
+ "vue-tsc" : " ^1.8.1 "
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments