Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lint: Limit JS assert rule to web/tests.
Tim Abbott1d2cf734f3de
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex 6e2b95d8bab..fa8cfa396f3 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -214,6 +214,7 @@ js_rules = RuleList({"pattern": r"assert\(","description": "Use 'assert.ok' instead of 'assert'. We avoid the use of 'assert' as it can easily be confused with 'assert.equal'.",+ "include_only": {"web/tests/"},"good_lines": ["assert.ok(...)"],"bad_lines": ["assert(...)"],},