Skip to content

Commit 092157d

Browse files
committed
chore: update deps
1 parent d144e59 commit 092157d

11 files changed

+2553
-1458
lines changed

.vscode/settings.json

+8-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": "explicit"
2+
"[javascript][javascriptreact][typescript][typescriptreact][json][jsonc]": {
3+
"editor.formatOnSave": false,
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll.eslint": "explicit"
6+
}
47
},
58

6-
// If you want to silent stylistic rules
9+
// You can also silent all auto fixable rules
710
"eslint.rules.customizations": [
8-
{ "rule": "@stylistic/*", "severity": "off" },
9-
{ "rule": "simple-import-sort/*", "severity": "off" },
10-
{ "rule": "antfu/consistent-list-newline", "severity": "off" },
11-
{ "rule": "hyoban/jsx-attribute-spacing", "severity": "off" },
12-
{ "rule": "@stylistic/no-tabs", "severity": "default" },
13-
{ "rule": "@stylistic/max-statements-per-line", "severity": "default" }
14-
],
15-
16-
// You may don't need this in the future
17-
"eslint.experimental.useFlatConfig": true,
18-
"eslint.validate": [
19-
"javascript",
20-
"javascriptreact",
21-
"typescript",
22-
"typescriptreact",
23-
"json"
24-
],
25-
26-
// Disable the default formatter, use eslint instead
27-
"prettier.enable": false,
28-
"editor.formatOnSave": false,
11+
{ "rule": "*", "fixable": true, "severity": "off" }
12+
]
2913
}

eslint.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
2-
import hyoban from 'eslint-config-hyoban'
2+
import { defineConfig } from 'eslint-config-hyoban'
33

4-
export default hyoban(
4+
export default defineConfig(
55
{
66
ignores: [
77
'test/snapshot/**/*',

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unocss-preset-shadcn",
33
"type": "module",
44
"version": "0.3.0",
5-
"packageManager": "pnpm@9.1.0",
5+
"packageManager": "pnpm@9.4.0",
66
"description": "use shadcn ui with unocss",
77
"author": "Stephen Zhou <[email protected]>",
88
"license": "MIT",
@@ -56,18 +56,18 @@
5656
},
5757
"devDependencies": {
5858
"@antfu/ni": "^0.21.12",
59-
"@antfu/utils": "^0.7.8",
60-
"@types/node": "^20.12.11",
61-
"@unocss/preset-mini": "^0.60.0",
62-
"eslint": "^9.2.0",
63-
"eslint-config-hyoban": "^2.2.11",
64-
"lint-staged": "^15.2.2",
65-
"pnpm": "^9.1.0",
59+
"@antfu/utils": "^0.7.10",
60+
"@types/node": "^20.14.9",
61+
"@unocss/preset-mini": "^0.60.4",
62+
"eslint": "^9.6.0",
63+
"eslint-config-hyoban": "https://pkg.pr.new/hyoban/eslint-config-hyoban@main",
64+
"lint-staged": "^15.2.7",
65+
"pnpm": "^9.4.0",
6666
"simple-git-hooks": "^2.11.1",
67-
"typescript": "^5.4.5",
67+
"typescript": "^5.5.3",
6868
"unbuild": "^2.0.0",
69-
"unocss": "^0.60.0",
70-
"vite": "^5.2.11",
69+
"unocss": "^0.60.4",
70+
"vite": "^5.3.3",
7171
"vitest": "^1.6.0"
7272
},
7373
"simple-git-hooks": {

playground/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@radix-ui/react-accordion": "^1.1.2",
13-
"@radix-ui/react-slot": "^1.0.2",
14-
"@unocss/reset": "^0.60.0",
12+
"@radix-ui/react-accordion": "^1.2.0",
13+
"@radix-ui/react-slot": "^1.1.0",
14+
"@unocss/reset": "^0.60.4",
1515
"class-variance-authority": "^0.7.0",
1616
"clsx": "^2.1.1",
17-
"foxact": "^0.2.33",
18-
"jotai-dark": "^0.3.0",
19-
"lucide-react": "^0.378.0",
17+
"foxact": "^0.2.35",
18+
"jotai-dark": "^0.3.2",
19+
"lucide-react": "^0.400.0",
2020
"react": "^18.3.1",
2121
"react-dom": "^18.3.1",
2222
"tailwind-merge": "^2.3.0"
2323
},
2424
"devDependencies": {
25-
"@iconify-json/lucide": "^1.1.187",
26-
"@types/react": "^18.3.1",
25+
"@iconify-json/lucide": "^1.1.198",
26+
"@types/react": "^18.3.3",
2727
"@types/react-dom": "^18.3.0",
28-
"@vitejs/plugin-react": "^4.2.1",
29-
"typescript": "^5.4.5",
30-
"unocss": "^0.60.0",
28+
"@vitejs/plugin-react": "^4.3.1",
29+
"typescript": "^5.5.3",
30+
"unocss": "^0.60.4",
3131
"unocss-preset-animations": "^1.0.2",
3232
"unocss-preset-shadcn": "workspace:^",
33-
"vite": "^5.2.11"
33+
"vite": "^5.3.3"
3434
}
3535
}

playground/src/components/theme-switch.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ const builtinRadiuses = [0, 0.3, 0.5, 0.75, 1] as const
2020

2121
export function ThemeSwitch() {
2222
const [currentColor, setCurrentColor] = useLocalStorage<
23-
(typeof builtinColors)[number]
24-
>('currentColor', 'neutral')
23+
(typeof builtinColors)[number]
24+
>('currentColor', 'neutral')
2525

2626
const [currentRadius, setCurrentRadius] = useLocalStorage<
27-
(typeof builtinRadiuses)[number]
28-
>('currentRadius', 0.5)
27+
(typeof builtinRadiuses)[number]
28+
>('currentRadius', 0.5)
2929

3030
return (
3131
<div className="space-y-4">

playground/src/components/ui/button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const buttonVariants = cva(
3737
export interface ButtonProps
3838
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
3939
VariantProps<typeof buttonVariants> {
40-
asChild?: boolean,
40+
asChild?: boolean
4141
}
4242

4343
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(

playground/src/main.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@unocss/reset/tailwind.css'
22
import 'virtual:uno.css'
33

4-
import React from 'react'
4+
import * as React from 'react'
55
import ReactDOM from 'react-dom/client'
66

77
import App from './app'

0 commit comments

Comments
 (0)