瀏覽代碼

add no-constant-binary-expression to eslint

Alexander Rose 1 年之前
父節點
當前提交
e6a4122d1c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .eslintrc.json

+ 2 - 1
.eslintrc.json

@@ -55,7 +55,8 @@
         "block-spacing": "error",
         "keyword-spacing": "off",
         "space-before-blocks": "error",
-        "semi-spacing": "error"
+        "semi-spacing": "error",
+        "no-constant-binary-expression": "error"
     },
     "overrides": [
         {