frontend: add OXC lint/format setup and apply semicolon fixes

This commit is contained in:
2026-05-25 02:54:30 +00:00
parent 836a563897
commit f6a40babc9
26 changed files with 3452 additions and 3130 deletions
+7 -1
View File
@@ -6,7 +6,11 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "oxlint --vue-plugin --import-plugin src",
"lint:fix": "npm run lint -- --fix",
"format": "oxfmt --config oxfmt.json src",
"format:check": "oxfmt --config oxfmt.json --check src"
},
"dependencies": {
"country-flag-icons": "^1.6.17",
@@ -15,6 +19,8 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",
"oxfmt": "^0.51.0",
"oxlint": "^1.66.0",
"typescript": "^5.3.0",
"vite": "^5.0.0",
"vue-tsc": "^2.0.0"