Browse Source

修改eslint规则

luoshi 4 năm trước cách đây
mục cha
commit
2cef5e6821
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      source/.eslintrc.json

+ 8 - 1
source/.eslintrc.json

@@ -12,5 +12,12 @@
         "ecmaVersion": 2018,
         "sourceType": "module"
     },
-    "rules": {}
+    "rules": {
+        "no-constant-condition": [
+            "error",
+            {
+                "checkLoops": false
+            }
+        ]
+    }
 }