Skip to content

Commit

Permalink
perf: use lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
mojiefong committed Jun 20, 2023
1 parent 0f7f929 commit 6681a97
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:fix
npx lint-staged
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint": "^8.43.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.2.2",
"rimraf": "^5.0.1",
"rollup": "^3.25.1",
"rollup-plugin-dts": "^5.3.0",
Expand All @@ -70,5 +71,8 @@
"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "^5.1.3",
"vitest": "^0.32.2"
},
"lint-staged": {
"*.{js,ts}": "eslint --fix"
}
}
Loading

0 comments on commit 6681a97

Please sign in to comment.