We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4d37f commit 950c48fCopy full SHA for 950c48f
package.json
@@ -38,6 +38,7 @@
38
"eslint-plugin-prettier": "^3.3.0",
39
"express": "^4.16.2",
40
"fs-extra": "^4.0.2",
41
+ "husky": "^4.3.6",
42
"jsdoc": "^3.6.3",
43
"jsdoc-to-markdown": "^6.0.1",
44
"karma": "^4.0.0",
@@ -49,6 +50,7 @@
49
50
"karma-sauce-launcher": "^2.0.2",
51
"karma-sinon": "^1.0.5",
52
"karma-sourcemap-loader": "^0.3.7",
53
+ "lint-staged": "^10.5.3",
54
"mocha": "^4.0.1",
55
"prettier": "^2.2.1",
56
"requirejs": "^2.3.6",
@@ -84,5 +86,15 @@
84
86
"homepage": "https://github.com/amplitude/amplitude-javascript#readme",
85
87
"directories": {
88
"test": "test"
89
+ },
90
+ "husky": {
91
+ "hooks": {
92
+ "pre-commit": "lint-staged"
93
+ }
94
95
+ "lint-staged": {
96
+ "{src,test,scripts}/**/*.js": [
97
+ "yarn run fix"
98
+ ]
99
}
100
0 commit comments