ソースを参照

add focused test eslint rules for tests

Evan You 9 年 前
コミット
e0ab042295
4 ファイル変更13 行追加0 行削除
  1. 1 0
      package.json
  2. 4 0
      test/ssr/.eslintrc
  3. 4 0
      test/unit/.eslintrc
  4. 4 0
      test/weex/.eslintrc

+ 1 - 0
package.json

@@ -77,6 +77,7 @@
     "eslint-config-vue": "^2.0.1",
     "eslint-loader": "^1.3.0",
     "eslint-plugin-flowtype": "^2.16.0",
+    "eslint-plugin-jasmine": "^2.1.0",
     "eslint-plugin-vue": "^1.0.0",
     "flow-bin": "^0.33.0",
     "he": "^1.1.0",

+ 4 - 0
test/ssr/.eslintrc

@@ -1,5 +1,9 @@
 {
   "env": {
     "jasmine": true
+  },
+  "plugins": ["jasmine"],
+  "rules": {
+    "jasmine/no-focused-tests": 2
   }
 }

+ 4 - 0
test/unit/.eslintrc

@@ -6,5 +6,9 @@
     "waitForUpdate": true,
     "triggerEvent": true,
     "createTextVNode": true
+  },
+  "plugins": ["jasmine"],
+  "rules": {
+    "jasmine/no-focused-tests": 2
   }
 }

+ 4 - 0
test/weex/.eslintrc

@@ -1,5 +1,9 @@
 {
   "env": {
     "jasmine": true
+  },
+  "plugins": ["jasmine"],
+  "rules": {
+    "jasmine/no-focused-tests": 2
   }
 }