Skip to content

Commit

Permalink
chore: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
mhchia committed Feb 24, 2023
1 parent 017385a commit ade23b6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run format
22 changes: 22 additions & 0 deletions package-lock.json

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

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
{"name": "Seohee Park"}
],
"scripts": {
"prepare": "husky install",
"build": "rollup --config rollup.config.mjs",
"test": "jest",
"test:debug": "jest --silent=false",
"lint": "eslint --ext .ts,.tsx,.js,.jsx src/ -c .eslintrc.js"
"lint": "eslint --ext .ts,.tsx,.js,.jsx src/ -c .eslintrc.js",
"format": "eslint --ext .ts,.tsx,.js,.jsx src/ -c .eslintrc.js --fix"
},
"keywords": [
"rln",
Expand All @@ -38,7 +40,7 @@
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.node.js"
},
},
"directories": {
"dist": "./dist",
"src": "./src",
Expand All @@ -62,14 +64,15 @@
},
"devDependencies": {
"@types/jest": "^29.2.4",
"@waku/rln": "^0.0.13",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.51.0",
"@waku/rln": "^0.0.13",
"eslint": "^8.33.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"husky": "^8.0.3",
"jest": "^29.3.1",
"prettier": "^2.8.1",
"rollup": "^3.14.0",
Expand All @@ -80,4 +83,4 @@
"tslib": "^2.5.0",
"typescript": "^4.9.5"
}
}
}

0 comments on commit ade23b6

Please sign in to comment.