Browse Source

Housekeeping for v1.0 branch (#551)

* update eslint-config-vue

* enable lint for test codes

* rename .eslintrc to .eslintrc.json due to deprecation

* bump vue dep

* bump vue related eslint plugins
katashin 8 năm trước cách đây
mục cha
commit
2716c2e8df
5 tập tin đã thay đổi với 15 bổ sung4 xóa
  1. 0 0
      .eslintrc.json
  2. 4 3
      package.json
  3. 6 0
      test/e2e/.eslintrc.json
  4. 5 0
      test/unit/.eslintrc.json
  5. 0 1
      test/unit/test.js

+ 0 - 0
.eslintrc → .eslintrc.json


+ 4 - 3
package.json

@@ -20,10 +20,11 @@
     "chat": "cd examples/chat && webpack-dev-server --inline --hot --config ../webpack.shared.config.js",
     "build": "node build/build.js",
     "build-examples": "BABEL_ENV=development webpack --config examples/webpack.build-all.config.js",
+    "lint": "eslint src test",
     "unit": "BABEL_ENV=development mocha test/unit/*.js --compilers js:babel-core/register",
     "pree2e": "npm run build-examples",
     "e2e": "casperjs test --concise ./test/e2e",
-    "test": "eslint src && npm run unit && npm run e2e",
+    "test": "npm run lint && npm run unit && npm run e2e",
     "docs": "cd docs && gitbook serve",
     "deploy-docs": "cd docs && ./deploy.sh",
     "release": "bash build/release.sh"
@@ -51,8 +52,8 @@
     "chai": "^3.4.1",
     "css-loader": "^0.26.1",
     "eslint": "^3.13.1",
-    "eslint-config-vue": "^2.0.1",
-    "eslint-plugin-vue": "^1.0.0",
+    "eslint-config-vue": "^2.0.2",
+    "eslint-plugin-vue": "^2.0.1",
     "mocha": "^3.2.0",
     "phantomjs-prebuilt": "^2.1.7",
     "rollup": "^0.41.4",

+ 6 - 0
test/e2e/.eslintrc.json

@@ -0,0 +1,6 @@
+{
+  "globals": {
+    "casper": true,
+    "__utils__": true
+  }
+}

+ 5 - 0
test/unit/.eslintrc.json

@@ -0,0 +1,5 @@
+{
+  "env": {
+    "jasmine": true
+  }
+}

+ 0 - 1
test/unit/test.js

@@ -3,7 +3,6 @@ import sinonChai from 'sinon-chai'
 import sinon from 'sinon'
 import Vue from 'vue'
 import Vuex from '../../src'
-import * as util from '../../src/util'
 
 Vue.use(Vuex)
 chai.use(sinonChai)