Skip to content

Commit

Permalink
chore: lint staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso committed Dec 12, 2024
1 parent 8239b83 commit ac92362
Show file tree
Hide file tree
Showing 5 changed files with 3,451 additions and 1,080 deletions.
5 changes: 2 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pnpm run lint
pnpm run format
git add .
pnpm type-check
pnpm lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'package.json': 'sort-package-json'
'*.{js,jsx,ts,tsx,vue}': 'eslint --fix'
'*.{js,jsx,ts,tsx,vue,md,html,css,json,yml,yaml}': 'prettier --write'
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "zashboard",
"version": "1.25.0",
"description": "A dashboard using clash api",
"license": "MIT",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -32,6 +34,7 @@
"prettier-plugin-tailwindcss": "^0.6.9",
"pretty-bytes": "^6.1.1",
"reconnectingwebsocket": "^1.0.0",
"sort-package-json": "^2.12.0",
"subsetted-fonts": "^1.0.4",
"theme-change": "^2.5.0",
"uuid": "^11.0.3",
Expand All @@ -57,6 +60,7 @@
"eslint": "^9.16.0",
"eslint-plugin-vue": "^9.32.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"npm-run-all2": "^7.0.1",
"postcss": "^8.4.49",
"prettier": "^3.4.1",
Expand Down
Loading

0 comments on commit ac92362

Please sign in to comment.