Skip to content

Commit

Permalink
Updated to husky v5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
YashTotale committed Mar 11, 2021
1 parent 6859af7 commit 48d4e1b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 116 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.eslintrc linguist-language=JSON
.prettierrc linguist-language=JSON

.huskyrc linguist-language=JSON
.lintstagedrc linguist-language=JSON

.markdownlintrc linguist-language=JSON
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:staged
5 changes: 0 additions & 5 deletions .huskyrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ oauth-token.json
# Misc
.DS_Store
remind-mail.html
.husky/_
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
".eslintignore": "ignore",
".eslintrc": "json",

".huskyrc": "json",
".lintstagedrc": "json",

".snyk": "yaml",
Expand Down
111 changes: 4 additions & 107 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"clasp:status": "clasp login --status",
"build": "npm run compile && npm run clasp",
"lint": "npx lint-check",
"postinstall": "replace-in-file \"declare var console\" \"//declare var console\" node_modules/@types/google-apps-script/google-apps-script.base.d.ts",
"lint:staged": "lint-staged",
"postinstall": "husky install && replace-in-file \"declare var console\" \"//declare var console\" node_modules/@types/google-apps-script/google-apps-script.base.d.ts",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"contributors:check": "all-contributors check",
Expand Down Expand Up @@ -75,7 +76,7 @@
"clasp": "^1.0.0",
"concurrently": "^5.3.0",
"eslint": "^7.18.0",
"husky": "^4.3.8",
"husky": "^5.1.3",
"lint-staged": "^10.5.3",
"markdownlint-cli": "^0.26.0",
"prettier": "^2.2.1",
Expand Down

0 comments on commit 48d4e1b

Please sign in to comment.