Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add no-constant-binary-expression eslint rule

Chocobozzzc37b19ffa975
diff --git a/.eslintrc.json b/.eslintrc.json
index 3bfdee6ebf..9545fe1428 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -40,6 +40,9 @@
}
],
"quotes": "off",
+
+ "no-constant-binary-expression": "error",
+
"@typescript-eslint/indent": [
"error",
2,
diff --git a/client/.eslintrc.json b/client/.eslintrc.json
index e4c8d901bb..e292617dde 100644
--- a/client/.eslintrc.json
+++ b/client/.eslintrc.json
@@ -159,7 +159,8 @@
"quote-props": [
"error",
"consistent-as-needed"
- ]
+ ],
+ "no-constant-binary-expression": "error"
}
},
{