chore: switch from eslint to oxlint

- Replace eslint and its plugins with oxlint, add .oxlintrc.json
- Add type-check and check scripts, drop deploy and predeploy
- Remove the GitHub Pages deploy workflow
- Move dayjs setup to src/lib and export the configured instance
- Bump React to 19.3, Vite to 8.3, Tailwind to 4.3 and other deps
- Reformat the contact page with prettier
This commit is contained in:
siujamo committed 2026-09-14 11:10:12 +08:00
1 parent 6738d6a39c
commit 48e0015599
8 files changed
+725 -2733

No files matched your search

+22 -26
View File
@@ -6,38 +6,34 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"deploy": "pnpm build && gh-pages -d dist",
"predeploy": "pnpm build"
"lint": "oxlint",
"type-check": "tsc --noEmit",
"check": "oxlint && tsc --noEmit",
"preview": "vite preview"
},
"dependencies": {
"@reduxjs/toolkit": "^2.11.2",
"@tailwindcss/vite": "^4.2.2",
"axios": "^1.16.1",
"dayjs": "^1.11.20",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"@reduxjs/toolkit": "^2.12.0",
"@tailwindcss/vite": "^4.3.3",
"axios": "^1.20.0",
"dayjs": "^1.11.23",
"react": "^19.3.0",
"react-dom": "^19.3.0",
"react-redux": "^9.3.0",
"react-router": "^7.16.0",
"react-router-dom": "^7.16.0",
"react-router": "^7.18.3",
"react-router-dom": "^7.18.3",
"redux-persist": "^6.0.0",
"tailwindcss": "^4.3.0"
"tailwindcss": "^4.3.3"
},
"devDependencies": {
"@eslint/js": "^9.39.4",
"@types/node": "^25.9.1",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"eslint": "^9.39.4",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.6.0",
"prettier": "^3.8.3",
"@eslint/js": "^9.39.5",
"@types/node": "^25.9.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.1",
"globals": "^17.12.0",
"oxlint": "^1.82.0",
"prettier": "^3.9.6",
"typescript": "~6.0.3",
"typescript-eslint": "^8.60.0",
"vite": "^8.0.15"
"vite": "^8.3.0"
}
}