Skip to content

Commit 8786651

Browse files
eliamaino-fpkobawan
authored andcommitted
[tools] Add script for linting and update travis
1 parent b23bddc commit 8786651

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3-
- 8.9.4
3+
- 10.15.0
44
script:
5-
- "eslint . --max-warnings 0"
5+
- npm run lint
6+
- npm test

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
"dist/vast-client.min.js": "dist/vast-client.min.js"
2929
},
3030
"scripts": {
31-
"test": "mocha --compilers js:babel-core/register --reporter spec test/*.js",
3231
"build": "rollup -c",
33-
"precommit": "eslint . --max-warnings 0 && pretty-quick --staged"
32+
"lint": "eslint .",
33+
"precommit": "eslint . --max-warnings 0 && pretty-quick --staged",
34+
"test": "mocha --compilers js:babel-core/register --reporter spec test/*.js"
3435
},
3536
"devDependencies": {
3637
"babel-core": "^6.26.0",

0 commit comments

Comments
 (0)