Skip to content

Commit 2f28cee

Browse files
committed
added prepush
1 parent c36140b commit 2f28cee

File tree

2 files changed

+13
-20
lines changed

2 files changed

+13
-20
lines changed

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "JS training tasks",
55
"scripts": {
66
"lint": "eslint ./**/*.js",
7-
"precommit": "lint-staged",
87
"test": "./node_modules/.bin/mocha",
9-
"test-debug": "./node_modules/.bin/mocha --debug-brk"
8+
"test-debug": "./node_modules/.bin/mocha --debug-brk",
9+
"prepush": "npm run lint && npm test"
1010
},
1111
"author": "IT Shark Pro",
1212
"license": "MIT",
@@ -15,17 +15,10 @@
1515
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
1616
"eslint": "^5.4.0",
1717
"husky": "^0.14.3",
18-
"lint-staged": "^7.2.2",
1918
"mocha": "^5.2.0"
2019
},
2120
"repository": {
2221
"type": "git",
2322
"url": "[email protected]:it-shark-pro/js-assignments.git"
24-
},
25-
"lint-staged": {
26-
"*.js": [
27-
"npm run lint",
28-
"git add"
29-
]
3023
}
3124
}

0 commit comments

Comments
 (0)