Skip to content

Commit acafccf

Browse files
committed
Update Travis build actions
Remove running prettier as a `pretest` script as prettier runs as a pre-commit hook through Husky and Lint-Staged already. Set Travis script to only run ESLint with running tests.
1 parent 4ec0b95 commit acafccf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ before_script:
1212
- export PATH=$HOME/.meteor:$PATH
1313
# Install all the dependencies!
1414
- npm install
15+
script:
16+
- npm run lint
1517
services:
1618
- mongodb
1719
cache:

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"private": true,
44
"scripts": {
55
"start": "meteor run",
6-
"pretest": "npm run prettier && npm run lint",
76
"test:meteor": "meteor test --once --driver-package meteortesting:mocha",
87
"test:meteor-app": "TEST_WATCH=1 meteor test --full-app --driver-package meteortesting:mocha",
98
"test": "jest",
109
"lint": "eslint . --ext .js --ext .jsx",
1110
"lint:fix": "eslint . --ext .js --ext .jsx --fix",
12-
"prettier": "prettier --write \"./**/*.{js,jsx}\"",
11+
"prettier:all": "prettier --write \"./**/*.{js,jsx}\"",
1312
"prettier:check": "prettier -l \"./**/*.{js,jsx}\"",
1413
"visualize": "meteor --production --extra-packages bundle-visualizer",
1514
"commit": "git-cz"

0 commit comments

Comments
 (0)