Skip to content

Commit

Permalink
chore(husky): add commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukaato committed Aug 2, 2024
1 parent a7d0c03 commit d254e3a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm run format
npm run lint
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
25 changes: 21 additions & 4 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"format": "prettier ./src/**/*.ts --check",
"format:fix": "prettier ./src/**/*.ts --write",
"lint": "eslint \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" --fix"
"lint:fix": "eslint \"src/**/*.ts\" --fix",
"prepare": "husky"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -42,6 +43,7 @@
"@typescript-eslint/parser": "~7.13.1",
"audit-ci": "~7.0.1",
"eslint": "~8.57.0",
"husky": "^9.1.4",
"prettier": "~3.3.2",
"rimraf": "~5.0.7",
"rollup": "~4.18.0",
Expand Down

0 comments on commit d254e3a

Please sign in to comment.