Sfoglia il codice sorgente

use eslint-plugin-flowtype (close #3583)

Evan You 9 anni fa
parent
commit
34cdf695b6
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 3 3
      .eslintrc
  2. 1 1
      package.json

+ 3 - 3
.eslintrc

@@ -2,9 +2,9 @@
   "root": true,
   "parser": "babel-eslint",
   "extends": "vue",
-  "plugins": ["flow-vars"],
+  "plugins": ["flowtype"],
   "rules": {
-    "flow-vars/define-flow-type": 1,
-    "flow-vars/use-flow-type": 1
+    "flowtype/define-flow-type": 1,
+    "flowtype/use-flow-type": 1
   }
 }

+ 1 - 1
package.json

@@ -66,7 +66,7 @@
     "eslint": "^3.4.0",
     "eslint-config-vue": "^1.1.0",
     "eslint-loader": "^1.3.0",
-    "eslint-plugin-flow-vars": "^0.5.0",
+    "eslint-plugin-flowtype": "^2.16.0",
     "eslint-plugin-html": "^1.5.2",
     "flow-bin": "^0.31.1",
     "flow-remove-types": "github:yyx990803/flow-remove-types",