Skip to content

Commit

Permalink
refactor: migrate to lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jul 18, 2024
1 parent a5b16b6 commit 1497410
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 34 deletions.
14 changes: 0 additions & 14 deletions .husky/pre-commit

This file was deleted.

31 changes: 13 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"clean": "rm -rf lib *.tgz",
"commit": "git-cz",
"release:check": "semantic-release --dry-run",
"prepare": "husky install"
"prepare": "simple-git-hooks || echo 'simple-git-hooks install skipped'"
},
"keywords": [
"cli",
Expand Down Expand Up @@ -73,11 +73,11 @@
"@types/node": "^18.15.11",
"@types/table": "^6.3.2",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"jest": "^29.5.0",
"lint-staged": "^15.2.7",
"semantic-release": "^24.0.0",
"semantic-release-npm-github": "^5.0.0",
"simple-git-hooks": "^2.11.1",
"ts-jest": "^29.1.0",
"typescript": "^5.0.3",
"xo": "^0.54.0"
Expand Down Expand Up @@ -153,6 +153,9 @@
},
"verbose": true
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.js": [
"xo --fix",
Expand Down

0 comments on commit 1497410

Please sign in to comment.