Skip to content

Commit f852fb3

Browse files
committed
Add pre-commit hook
1 parent e4d0fd6 commit f852fb3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ build/Release
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
2727
node_modules
2828

29+
# added automatically by precommit-hook as defaults
30+
.jshint*
31+
2932
dist/

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"eslint-config-airbnb-lite": "^1.0.3",
1919
"eslint-watch": "^1.2.4",
2020
"in-publish": "^2.0.0",
21-
"mocha": "^2.2.5"
21+
"mocha": "^2.2.5",
22+
"precommit-hook": "^3.0.0"
2223
},
2324
"scripts": {
2425
"start": "esw -w .",
@@ -45,5 +46,9 @@
4546
"bugs": {
4647
"url": "https://github.com/sullenor/css-modules-require-hook/issues"
4748
},
48-
"homepage": "https://github.com/sullenor/css-modules-require-hook"
49+
"homepage": "https://github.com/sullenor/css-modules-require-hook",
50+
"pre-commit": [
51+
"lint",
52+
"test"
53+
]
4954
}

0 commit comments

Comments
 (0)