feat: setup oxlint and prettier for the project

This commit is contained in:
2026-08-28 20:03:19 +07:00
parent 9766edad03
commit 3dcc812cd4
65 changed files with 3940 additions and 1741 deletions
+20 -2
View File
@@ -11,7 +11,12 @@
"types": "wrangler types",
"db:local": "wrangler d1 migrations apply uptime --local",
"db:remote": "wrangler d1 migrations apply uptime --remote",
"admin:create": "bun scripts/create-admin.ts"
"admin:create": "bun scripts/create-admin.ts",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepare": "husky"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.54.1",
@@ -22,6 +27,10 @@
"@types/react-dom": "^19.2.5",
"@vitejs/plugin-react": "^6.1.0",
"drizzle-kit": "^0.31.10",
"husky": "^9.1.7",
"lint-staged": "^17.4.1",
"oxlint": "^1.80.0",
"prettier": "^3.9.6",
"tailwindcss": "4",
"typescript": "^5.5.2",
"vite": "^8.2.2",
@@ -40,5 +49,14 @@
"trustedDependencies": [
"workerd",
"esbuild"
]
],
"lint-staged": {
"*.{ts,tsx}": [
"oxlint --fix",
"prettier --write"
],
"*.{js,jsx,json,jsonc,css,md}": [
"prettier --write"
]
}
}