Skip to content

Commit f39edae

Browse files
committed
add linter to travis
1 parent 12e021b commit f39edae

File tree

3 files changed

+285
-468
lines changed

3 files changed

+285
-468
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ node_js:
66
before_script:
77
- yarn install
88

9-
script: yarn run test
9+
script:
10+
- yarn run lint
11+
- yarn run test

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
},
3030
"scripts": {
3131
"test": "karma start",
32-
"test:watch": "karma start --single-run=false"
32+
"test:watch": "karma start --single-run=false",
33+
"lint": "eslint --ext .js,.vue src spec"
3334
},
3435
"devDependencies": {
3536
"babel-core": "^6.25.0",
36-
"babel-eslint": "^7.2.3",
3737
"babel-loader": "^7.0.0",
3838
"babel-preset-es2015": "^6.24.1",
3939
"babel-register": "^6.24.1",
4040
"cross-env": "^5.0.1",
41-
"eslint": "^3.19.0",
41+
"eslint": "^4.0.0",
4242
"eslint-config-vue": "^2.0.2",
43-
"eslint-plugin-vue": "^2.0.1",
43+
"eslint-plugin-vue": "2.1.0",
4444
"jasmine": "^2.6.0",
4545
"karma": "^1.7.0",
4646
"karma-chrome-launcher": "^2.1.1",
@@ -52,7 +52,7 @@
5252
"vue-loader": "^12.2.1",
5353
"vue-router": "^2.6.0",
5454
"vue-template-compiler": "^2.3.4",
55-
"webpack": "^3.0.0",
55+
"webpack": "2.6.1",
5656
"webpack-dev-server": "^2.4.5"
5757
}
5858
}

0 commit comments

Comments
 (0)