瀏覽代碼

Housekeeping eslint (#516)

* dev build threw some errors with eslint for me, so I added what was missing. Please review.

* added babel-eslint package to devDependencies
* added eslint config to support ES6
* added another .eslintrc file in the test folder to make eslint aware of jasmine globals.

* small config correction of eslint
Thorsten Lünborg 8 年之前
父節點
當前提交
cece1138ff
共有 3 個文件被更改,包括 10 次插入0 次删除
  1. 4 0
      .eslintrc
  2. 1 0
      package.json
  3. 5 0
      test/unit/.eslintrc

+ 4 - 0
.eslintrc

@@ -1,4 +1,8 @@
 {
   "root": true,
+  "parser": "babel-eslint",
+  "parserOptions": {
+    "sourceType": "module"
+  },
   "extends": "vue"
 }

+ 1 - 0
package.json

@@ -37,6 +37,7 @@
   "homepage": "https://github.com/vuejs/vuex#readme",
   "devDependencies": {
     "babel-core": "^6.2.1",
+    "babel-eslint": "^7.1.1",
     "babel-loader": "^6.2.0",
     "babel-plugin-transform-runtime": "^6.1.18",
     "babel-polyfill": "^6.2.0",

+ 5 - 0
test/unit/.eslintrc

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