Skip to content

Commit

Permalink
Merge pull request #173 from CatalysmsServerManager/niekcandaele/issu…
Browse files Browse the repository at this point in the history
…e149

Install lefthook for better git hooks
  • Loading branch information
niekcandaele committed Jul 14, 2020
2 parents 92adead + f2862ff commit b56736a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 176 deletions.
5 changes: 5 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pre-commit:
commands:
eslint:
glob: "*.{js,jsx}"
run: npx eslint {staged_files}
181 changes: 6 additions & 175 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"node": "8"
},
"devDependencies": {
"@arkweid/lefthook": "^0.7.2",
"@types/bull": "^3.10.3",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
Expand All @@ -77,7 +78,6 @@
"eslint": "^7.4.0",
"faker": "^4.1.0",
"grunt-bower-task": "^0.5.0",
"husky": "^4.2.5",
"mocha": "^7.1.2",
"mocha-junit-reporter": "^1.23.3",
"mocha-lcov-reporter": "^1.3.0",
Expand Down

0 comments on commit b56736a

Please sign in to comment.