Added a precommit-hook
This commit is contained in:
6
.validate.json
Normal file
6
.validate.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"scripts": {
|
||||||
|
"lint": "jshint ."
|
||||||
|
},
|
||||||
|
"pre-commit": ["lint", "validate", "test"]
|
||||||
|
}
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest && mocha --compilers js:mocha-traceur tests/**/*.spec.js && jsxhint --jsx-only .",
|
"test": "jest && mocha --compilers js:mocha-traceur tests/**/*.spec.js",
|
||||||
"start": "npm install && bower install && gulp"
|
"start": "npm install && bower install && gulp",
|
||||||
|
"lint": "jsxhint --jsx-only ."
|
||||||
},
|
},
|
||||||
|
"pre-commit": ["lint"],
|
||||||
"jest": {
|
"jest": {
|
||||||
"testFileExtensions": [
|
"testFileExtensions": [
|
||||||
"jest.js"
|
"jest.js"
|
||||||
@@ -23,6 +25,7 @@
|
|||||||
"mocha": "^2.2.5",
|
"mocha": "^2.2.5",
|
||||||
"mocha-sinon": "^1.1.4",
|
"mocha-sinon": "^1.1.4",
|
||||||
"mocha-traceur": "^2.1.0",
|
"mocha-traceur": "^2.1.0",
|
||||||
|
"precommit-hook": "^2.0.1",
|
||||||
"react-tools": "^0.13.3",
|
"react-tools": "^0.13.3",
|
||||||
"sinon": "^1.14.1"
|
"sinon": "^1.14.1"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user