Closed Bug 1687235 Opened 3 years ago Closed 3 years ago

Enable ESLint rule no-setter-return on the rest of the tree

Categories

(Toolkit :: General, task, P3)

task
Points:
2

Tracking

()

RESOLVED FIXED
87 Branch
Iteration:
87.1 - Jan 25 - Feb 7
Tracking Status
firefox87 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(5 files)

We've enabled the ESLint rule no-setter-return on most of the tree, but there are still some files in the top level .eslintrc.js to be cleaned up.

From the ESLint page:

Setters cannot return values.
While returning a value from a setter does not produce an error, the returned value is being ignored. Therefore, returning a value from a setter is either unnecessary or a possible error, since the returned value cannot be used.

Iteration: 86.3 - Jan 11 - Jan 24 → 87.1 - Jan 25 - Feb 7
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6eb33ad5d460
Enable ESLint rule no-setter-return for browser/. r=mossop,preferences-reviewers
https://hg.mozilla.org/integration/autoland/rev/c36493fb0599
Enable ESLint rule no-setter-return for toolkit and services. r=mossop
https://hg.mozilla.org/integration/autoland/rev/a7c933ddecfd
Enable ESLint rule no-setter-return for devtools. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/ec830b771bce
Enable ESLint rule no-setter-return for dom. r=bryce
https://hg.mozilla.org/integration/autoland/rev/638c802ca1d1
Enable ESLint rule no-setter-return for mobile/. r=agi

Missed keeping in an early return, fixing.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/19366accdcb8
Enable ESLint rule no-setter-return for browser/. r=mossop,preferences-reviewers
https://hg.mozilla.org/integration/autoland/rev/3ba81cd5265d
Enable ESLint rule no-setter-return for toolkit and services. r=mossop
https://hg.mozilla.org/integration/autoland/rev/dac784daa790
Enable ESLint rule no-setter-return for devtools. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/d674c5489728
Enable ESLint rule no-setter-return for dom. r=bryce
https://hg.mozilla.org/integration/autoland/rev/4daf19dcc91b
Enable ESLint rule no-setter-return for mobile/. r=agi
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: