Closed
Bug 1376347
Opened 7 years ago
Closed 7 years ago
Enable the ESLint func-call-spacing, key-spacing, keyword-spacing, and no-trailing-spaces rules for accessible/
Categories
(Core :: Disability Access APIs, enhancement)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: standard8, Assigned: hemantsingh1612, Mentored)
References
()
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(1 file)
We currently have the rules enabled for mozilla-central (in recommended.js), but we should enable them for the accessible/ directory as well to provide more consistency with our eslint configuration. I'm happy to mentor this bug. There's background on our eslint setups here: https://developer.mozilla.org/docs/ESLint Also, details of the rule: http://eslint.org/docs/rules/dot-notation Here's some approximate steps: - In accessible/.eslintrc.js remove the lines for: * func-call-spacing * key-spacing * keyword-spacing * no-trailing spaces - Run eslint for fixing: ./mach eslint --fix This should fix most/all of the instances. - Fix any remaining instances by hand - Inspect the diff to make sure that the indentation of the lines surrounding the changes look OK still. - Create a commit and push it to mozreview: http://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview.html
Assignee | ||
Comment 1•7 years ago
|
||
Hi, Can I take this one. :)
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → hemantsingh1612
Comment hidden (mozreview-request) |
Reporter | ||
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8882560 [details] Bug 1376347 - Enable the ESLint func-call-spacing, key-spacing, keyword-spacing, and no-trailing-spaces rules for accessible/ https://reviewboard.mozilla.org/r/153666/#review159128 `./mach eslint accessible/` is still showing failures in `accessible/tests/mochitest/attributes/test_obj.html`, so you'll need to fix those by hand. ::: accessible/jsat/OutputGenerator.jsm:688 (Diff revision 1) > return utterance; > }, > > list: function list(aAccessible, aRoleStr, aState, aFlags) { > - return this._getListUtterance > - (aAccessible, aRoleStr, aFlags, aAccessible.childCount); > + return this._getListUtterance(aAccessible, aRoleStr, aFlags, > + aAccessible.childCount); nit: still needs 2-space based indentation here. ::: accessible/jsat/OutputGenerator.jsm:694 (Diff revision 1) > }, > > definitionlist: > function definitionlist(aAccessible, aRoleStr, aState, aFlags) { > - return this._getListUtterance > - (aAccessible, aRoleStr, aFlags, aAccessible.childCount / 2); > + return this._getListUtterance(aAccessible, aRoleStr, aFlags, > + aAccessible.childCount / 2); nit: still needs 2-space based indentation here.
Attachment #8882560 -
Flags: review?(standard8)
Reporter | ||
Comment 4•7 years ago
|
||
Alexander, do you want to do the final review on this once it is updated, or are you happy for me to do it?
Flags: needinfo?(surkov.alexander)
Comment 5•7 years ago
|
||
Surkov is out until next week, so to get this unblocking, I'm happy to do a final reviewif you feel like giving me one. ;)
Flags: needinfo?(surkov.alexander)
Comment hidden (mozreview-request) |
Reporter | ||
Updated•7 years ago
|
Attachment #8882560 -
Flags: review?(standard8) → review?(mzehe)
Reporter | ||
Comment 7•7 years ago
|
||
Marco, I've taken a quick scan and it looks reasonable, so over to you :-) Thanks.
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8882560 [details] Bug 1376347 - Enable the ESLint func-call-spacing, key-spacing, keyword-spacing, and no-trailing-spaces rules for accessible/ https://reviewboard.mozilla.org/r/153666/#review159538 Thanks!
Attachment #8882560 -
Flags: review?(mzehe) → review+
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cfe257e5d880 Enable the ESLint func-call-spacing, key-spacing, keyword-spacing, and no-trailing-spaces rules for accessible/ r=MarcoZ
Comment 10•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cfe257e5d880
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•