Skip to content

Commit 77ddb35

Browse files
committed
Merge pull request #37 from igorshubovych/lint-on-precommit
Run linting before commit
2 parents 7d3ab36 + 377f1c5 commit 77ddb35

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929
"test": "test"
3030
},
3131
"scripts": {
32-
"precommit": "npm test -- --reporter=dot",
33-
"prepush": "npm test -- --reporter=dot",
32+
"precommit": "npm run lint && npm run test:quiet",
33+
"prepush": "npm run test:quiet",
3434
"start": "NODE_ENV=development node ./bin/tldr",
3535
"example": "NODE_ENV=development node ./bin/tldr tar",
36-
"test": "mocha test --recursive --reporter=spec",
36+
"test": "mocha test",
37+
"test:quiet": "npm test -- --reporter=dot",
3738
"lint": "eslint lib test bin/tldr",
38-
"watch": "mocha --watch test --recursive --reporter=min --growl"
39+
"watch": "npm run test:quiet -- --reporter=min --watch --growl"
3940
},
4041
"os": [
4142
"!win32"

0 commit comments

Comments
 (0)