Closed
Bug 1875495
Opened 9 months ago
Closed 9 months ago
Port bug 1780071 - Linter should yell if using assignment or comparisons inside assertion conditions
Categories
(Thunderbird :: Upstream Synchronization, task)
Tracking
(thunderbird_esr115 unaffected)
RESOLVED
FIXED
123 Branch
Tracking | Status | |
---|---|---|
thunderbird_esr115 | --- | unaffected |
People
(Reporter: mkmelin, Assigned: mkmelin)
References
Details
Attachments
(1 file)
Need to port bug 1780071.
The rule is now available but not yet enabled by default.
Add "mozilla/no-comparison-or-assignment-inside-ok": "error",
to rules in .eslintrc.js to enable it.
Assignee | ||
Updated•9 months ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 months ago
|
||
Didn't spot any direct errors, but these are the rewrites the plugin does for --fix
Assignee | ||
Updated•9 months ago
|
Keywords: checkin-needed-tb
Target Milestone: --- → 123 Branch
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/2fe42c4dc446
Port bug 1780071 - Linter should yell if using assignment or comparisons inside assertion conditions. r=aleca
You need to log in
before you can comment on or make changes to this bug.
Description
•