mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
lint: Limit JS assert rule to web/tests.
This commit is contained in:
@@ -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(...)"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user