lint: Limit JS assert rule to web/tests.

This commit is contained in:
Tim Abbott 2023-04-14 12:25:43 -07:00
parent 5d69a54849
commit 1d2cf734f3
1 changed files with 1 additions and 0 deletions

View File

@ -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(...)"],
},