Closed Bug 1917003 Opened 2 months ago Closed 1 month ago

Prevent using await await in JS

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

(Whiteboard: [webdriver:m12])

Attachments

(2 files)

While using await await somePromise; is a valid syntax, it's almost always a mistake.
For the rare cases where this would be useful it sounds fine to require a comment + expect developers to disable the eslint rule locally.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b45070bc3aaa [eslint] Add linter rule to ban await await r=Standard8,frontend-codestyle-reviewers https://hg.mozilla.org/integration/autoland/rev/d2267c0307e5 [eslint] Fix violations for reject-multiple-await r=perftest-reviewers,credential-management-reviewers,places-reviewers,issammani,daisuke,sparky
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Priority: -- → P3
Whiteboard: [webdriver:m12]
See Also: → 1919181
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: