Skip to content

Commit c81ec5a

Browse files
authored
chore: update ui template (#53)
Signed-off-by: Ryan Wang <[email protected]>
1 parent e31b994 commit c81ec5a

File tree

12 files changed

+1671
-1510
lines changed

12 files changed

+1671
-1510
lines changed

ui/.editorconfig

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
# EditorConfig is awesome: https://EditorConfig.org
2-
3-
# top-most EditorConfig file
4-
root = true
5-
6-
[*]
7-
indent_style = space
1+
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}]
2+
charset = utf-8
83
indent_size = 2
4+
indent_style = space
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
98
end_of_line = lf
10-
charset = utf-8
11-
trim_trailing_whitespace = false
12-
insert_final_newline = true
9+
max_line_length = 100

ui/.eslintrc.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

ui/.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"$schema": "https://json.schemastore.org/prettierrc",
33
"semi": false,
44
"singleQuote": true,
5-
"printWidth": 100
5+
"printWidth": 100,
6+
"tabWidth": 2
67
}

ui/eslint.config.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { globalIgnores } from 'eslint/config'
2+
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
3+
import pluginVue from 'eslint-plugin-vue'
4+
import pluginVitest from '@vitest/eslint-plugin'
5+
import pluginOxlint from 'eslint-plugin-oxlint'
6+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
7+
8+
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
9+
// import { configureVueProject } from '@vue/eslint-config-typescript'
10+
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
11+
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
12+
13+
export default defineConfigWithVueTs(
14+
{
15+
name: 'app/files-to-lint',
16+
files: ['**/*.{ts,mts,tsx,vue}'],
17+
},
18+
19+
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
20+
21+
pluginVue.configs['flat/essential'],
22+
vueTsConfigs.recommended,
23+
24+
{
25+
...pluginVitest.configs.recommended,
26+
files: ['src/**/__tests__/*'],
27+
},
28+
...pluginOxlint.configs['flat/recommended'],
29+
skipFormatting,
30+
)

ui/package.json

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,47 @@
44
"build": "run-p type-check \"build-only {@}\" --",
55
"build-only": "vite build",
66
"dev": "vite build --watch --mode=development",
7-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
7+
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
8+
"lint:eslint": "eslint . --fix",
9+
"lint": "run-s lint:*",
810
"prettier": "prettier --write src/",
911
"test:unit": "vitest --passWithNoTests",
10-
"type-check": "vue-tsc --build --force"
12+
"type-check": "vue-tsc --build"
1113
},
1214
"dependencies": {
1315
"@halo-dev/api-client": "^2.21.0",
1416
"@halo-dev/components": "^2.21.0",
1517
"@halo-dev/console-shared": "^2.21.0",
1618
"axios": "^1.7.2",
1719
"canvas-confetti": "^1.9.3",
18-
"vue": "^3.4.31"
20+
"vue": "^3.5.17"
1921
},
2022
"devDependencies": {
2123
"@halo-dev/ui-plugin-bundler-kit": "^2.21.1",
22-
"@iconify/json": "^2.2.224",
23-
"@rushstack/eslint-patch": "^1.10.3",
24-
"@tsconfig/node20": "^20.1.4",
25-
"@types/canvas-confetti": "^1.6.4",
24+
"@iconify/json": "^2.2.350",
25+
"@tsconfig/node20": "^20.1.6",
26+
"@types/canvas-confetti": "^1.9.0",
2627
"@types/jsdom": "^21.1.7",
27-
"@types/node": "^20.14.9",
28-
"@vitejs/plugin-vue": "^5.0.5",
29-
"@vue/eslint-config-prettier": "^9.0.0",
30-
"@vue/eslint-config-typescript": "^13.0.0",
28+
"@types/node": "^20.19.1",
29+
"@vitejs/plugin-vue": "^5.2.4",
30+
"@vitest/eslint-plugin": "^1.2.7",
31+
"@vue/eslint-config-prettier": "^10.2.0",
32+
"@vue/eslint-config-typescript": "^14.5.1",
3133
"@vue/test-utils": "^2.4.6",
32-
"@vue/tsconfig": "^0.5.1",
33-
"eslint": "^8.57.0",
34-
"eslint-plugin-vue": "^9.26.0",
35-
"jsdom": "^24.1.0",
36-
"npm-run-all2": "^6.2.0",
37-
"prettier": "^3.3.2",
38-
"sass": "^1.77.6",
39-
"typescript": "~5.5.3",
40-
"unplugin-icons": "^0.19.0",
34+
"@vue/tsconfig": "^0.7.0",
35+
"eslint": "^9.29.0",
36+
"eslint-plugin-oxlint": "^0.16.12",
37+
"eslint-plugin-vue": "~10.0.1",
38+
"jsdom": "^26.1.0",
39+
"npm-run-all2": "^7.0.2",
40+
"oxlint": "^0.16.12",
41+
"prettier": "3.5.3",
42+
"sass": "^1.89.2",
43+
"typescript": "~5.8.3",
44+
"unplugin-icons": "^22.1.0",
4145
"vite": "^5.3.2",
42-
"vitest": "^1.6.0",
43-
"vue-tsc": "^2.0.24"
46+
"vitest": "^3.2.4",
47+
"vue-tsc": "^2.2.10"
4448
},
45-
"packageManager": "[email protected].0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
49+
"packageManager": "[email protected].9"
4650
}

0 commit comments

Comments
 (0)