Closed
Bug 1358947
Opened 6 years ago
Closed 6 years ago
Make eslint "max-nested-callbacks" rule an error
Categories
(Developer Infrastructure :: Lint and Formatting, defect)
Tracking
(firefox53 wontfix, firefox54 wontfix, firefox55 fixed)
RESOLVED
FIXED
mozilla55
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
Attachments
(1 file)
In bug 1358041 comment 8, standard8 suggested moving the `"max-nested-callbacks": ["error", 8]` rule from browser/.eslintrc.js to the mozilla/recommended rules.
Comment hidden (mozreview-request) |
Comment 2•6 years ago
|
||
mozreview-review |
Comment on attachment 8860789 [details] Bug 1358947 - Make eslint "max-nested-callbacks" rule an error. https://reviewboard.mozilla.org/r/132748/#review135690 Looks good, one minor issue. Also remember the version issues I mentioned in bug 1358949. ::: tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js:163 (Diff revision 1) > > // No single if block inside an else block > "no-lonely-if": "error", > > + // Maximum depth callbacks can be nested. > + "max-nested-callbacks": ["error", 10], Please can you add this in alphabetical order, just under "max-depth" (I know, its not perfect atm, I'll get a mentored bug filed on it)
Attachment #8860789 -
Flags: review?(standard8) → review+
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #2) > Please can you add this in alphabetical order, just under "max-depth" (I > know, its not perfect atm, I'll get a mentored bug filed on it) Thanks! I'll move "max-nested-callbacks" to the right position when I land the patch.
Pushed by cpeterson@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2b8241081386 Make eslint "max-nested-callbacks" rule an error. r=standard8
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2b8241081386
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•5 years ago
|
Product: Testing → Firefox Build System
Updated•4 years ago
|
Version: Version 3 → 3 Branch
Updated•8 months ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•