mirror of
https://github.com/Nezumi-2711/uptime-monitoring.git
synced 2026-09-22 13:48:31 +00:00
feat: setup oxlint and prettier for the project
This commit is contained in:
+20
-2
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user