Closed Bug 1329017 Opened 8 years ago Closed 8 years ago

Enable the no-useless-return rule for eslint

Categories

(Toolkit :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: jaws, Assigned: jaws)

Details

Attachments

(1 file)

There are 47 errors found with this rule enabled. eslint provides a --fix option to autofix these errors. I have manually inspected the fixes to make sure that they are correct.
Comment on attachment 8824230 [details] Bug 1329017 - Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. https://reviewboard.mozilla.org/r/102750/#review103452 Yay, another of my favourite rules enabled :-) Thanks
Attachment #8824230 - Flags: review?(standard8) → review+
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72e93073be64 Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. r=standard8
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: