You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/04/26 05:47:41 UTC

incubator-weex git commit: * [html5] fix lint.

Repository: incubator-weex
Updated Branches:
  refs/heads/0.12-dev 86c555e74 -> cf755d4b5


* [html5] fix lint.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/cf755d4b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/cf755d4b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/cf755d4b

Branch: refs/heads/0.12-dev
Commit: cf755d4b50b333fdaace7ac311bf4b783261abae
Parents: 86c555e
Author: MrRaindrop <te...@gmail.com>
Authored: Wed Apr 26 13:47:24 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Wed Apr 26 13:47:24 2017 +0800

----------------------------------------------------------------------
 .eslintrc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/cf755d4b/.eslintrc
----------------------------------------------------------------------
diff --git a/.eslintrc b/.eslintrc
index 75c1fc2..a5697b6 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -38,6 +38,7 @@
   },
 
   "rules": {
+    "flowtype/no-types-missing-file-annotation": 0,
     "accessor-pairs": 2,
     "arrow-spacing": [2, { "before": true, "after": true }],
     "block-spacing": [2, "always"],
@@ -152,8 +153,14 @@
     "no-var": 2,
     "prefer-const": 2,
     "object-curly-spacing": [2, "always", {
-      objectsInObjects: false
+      "objectsInObjects": false
     }],
     "array-bracket-spacing": [2, "never"]
+  },
+
+  "settings": {
+    "flowtype": {
+      "onlyFilesWithFlowAnnotation": true
+    }
   }
 }