Skip to content

Commit

Permalink
feat: lint only staged-files (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakanjo authored Sep 4, 2023
1 parent 32e46b1 commit 416b617
Show file tree
Hide file tree
Showing 2 changed files with 277 additions and 36 deletions.
21 changes: 14 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@
"unocss": "^0.54.1"
},
"dependencies": {
"baiwusanyu-utils": "^1.0.14",
"@ikun-ui/utils": "workspace:*",
"@ikun-ui/alert": "workspace:*",
"@ikun-ui/avatar": "workspace:*",
"@ikun-ui/backtop": "workspace:*",
"@ikun-ui/badge": "workspace:*",
"@ikun-ui/breadcrumb": "workspace:*",
"@ikun-ui/breadcrumb-item": "workspace:*",
Expand All @@ -100,15 +99,16 @@
"@ikun-ui/notify": "workspace:*",
"@ikun-ui/popover": "workspace:*",
"@ikun-ui/preset": "workspace:*",
"@ikun-ui/progress": "workspace:*",
"@ikun-ui/radio": "workspace:*",
"@ikun-ui/select": "workspace:*",
"@ikun-ui/slider": "workspace:*",
"@ikun-ui/spin": "workspace:*",
"@ikun-ui/switch": "workspace:*",
"@ikun-ui/tag": "workspace:*",
"@ikun-ui/tooltip": "workspace:*",
"@ikun-ui/spin": "workspace:*",
"@ikun-ui/backtop": "workspace:*",
"@ikun-ui/slider": "workspace:*",
"@ikun-ui/progress": "workspace:*"
"@ikun-ui/utils": "workspace:*",
"baiwusanyu-utils": "^1.0.14"
},
"devDependencies": {
"@playwright/test": "^1.37.0",
Expand All @@ -132,6 +132,7 @@
"esno": "^0.17.0",
"fast-glob": "^3.3.1",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"npm-run-all": "^4.1.5",
"ora": "^7.0.1",
"prettier": "^3.0.1",
Expand All @@ -150,8 +151,14 @@
"vite": "^4.4.9",
"vitest": "^0.34.1"
},
"lint-staged": {
"*": [
"prettier --write",
"eslint"
]
},
"simple-git-hooks": {
"pre-commit": "pnpm run format && pnpm run lint",
"pre-commit": "npx lint-staged",
"commit-msg": "node vertify-commit.js"
}
}
Loading

0 comments on commit 416b617

Please sign in to comment.