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)

Desktop
All

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.

Status: NEW → ASSIGNED

Didn't spot any direct errors, but these are the rewrites the plugin does for --fix

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

Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: