Enable ESLint for dom/media/test/
Categories
(Core :: Audio/Video: Playback, task, P3)
Tracking
()
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Whiteboard: [lang=js])
Attachments
(5 files, 1 obsolete file)
As part of rolling out ESLint across the tree, we should enable it for dom/media/test/
.
Note: I've not put this as a good-first-bug as there's quite a lot of errors (~700) listed after the automatic fixes. I think that number will probably go down rapidly as the main issues are fixed (sometimes multiple errors are reported due to one issue), but will likely take more time than I'd expect for a good-first-bug. If you want to take this on, and it starts taking too long, feel free to submit partial patches.
To help Mozilla out with this bug, here's the steps:
- Comment here on the bug that you want to volunteer to help. I (or someone else) will assign it to you.
- Download and build the Firefox source code, see the docs for details. An artifact build is all you need.
- If you have any problems, please ask on IRC in the #introduction channel. They're there to help you get started.
- You can also read the Developer Guide, which has answers to most development questions.
- Start working on this bug
- Please note:
- We want to end up with two separate commits. One with the automatic changes, the second with the manual changes.
- Although you'll change .eslintignore at the start, only the second commit should have the .eslintignore changes. Please follow the suggested commands closely.
- Here's what to do:
- In .eslintignore, remove the
dom/media/test/**
and!dom/media/test/marionette/yttest/*.js
lines. - Run eslint
./mach eslint --fix dom/media/test/
- This should fix some of the issues.
- Inspect the diff to make sure that the indentation of the lines surrounding the changes look ok.
- Create a commit of the work so far. Note the extra
dom/media/test/
at the end (this avoids committing .eslintignore at this stage)$ hg commit -m "Bug nnn - Enable ESLint for dom/media/test/ (automatic changes). r?Standard8" dom/media/test/
- For the remaining issues, you'll need to fix them by hand. To find them, run
./mach eslint dom/media/test/
. - Create a second commit of the manual changes, note, there's no directory specifier this time, so .eslintignore will be included.
$ hg commit -m "Bug nnn - Enable ESLint for dom/media/test/ (manual changes). r?Standard8
- Post the two commits via phabricator. Please use moz-phab to submit them.
- In .eslintignore, remove the
- Please note:
- Once the patches are submitted, I'll take a look. If there's any changes necessary I'll comment in Phabricator, so be prepared to update the patches. If there's no changes, I'll request review from a dom peer, so there may still be more to go.
- Once we're happy with the changes, I'll push it to autoland - our integration branch. Your code will then soon be shipping to Firefox users worldwide!
- Now you get to think about what kind of bug you'd like to work on next. Let me know what you're interested in and I can help you find your next contribution.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
May I work on this next Mark?
Assignee | ||
Comment 2•5 years ago
|
||
Hi Karan, sure, this seems like a good next one for you to work on.
Comment 3•5 years ago
|
||
HI Karan it looks like you are not working on it, can i take this up?
Thanks
Ruchika
Comment 4•5 years ago
|
||
Hey Ruchika, I am working on it currently. Will inform you if I am unable to complete it. Thanks.
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Hi Karan, are you still working on this?
Comment 7•5 years ago
|
||
Hey Mark, sorry I won't be working on this anymore. Feel free to reassign.
Assignee | ||
Comment 8•5 years ago
|
||
Ok, no problem thank you for letting us know.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D37752
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D49798
Assignee | ||
Comment 11•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 12•5 years ago
|
||
Depends on D37752
Assignee | ||
Comment 13•5 years ago
|
||
This enables the following rules:
- dot-notation
- mozilla/no-useless-parameters
- no-else-return
- no-useless-return
- object-shorthand
Depends on D50130
Assignee | ||
Comment 14•5 years ago
|
||
Depends on D50131
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
Note: The list on this page is in phabricator ID order. It is probably best to follow the stack in the "Revision Contents" section of the phabricator pages.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=147bcea10fd22691fcfee75ec28596b614d3831d
Updated•5 years ago
|
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Backed out for mda failures on /test_media_selection.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/132bd541dbef4de71c008f2b182fcb162651084a
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=272724891&repo=autoland&lineNumber=2783
Comment 18•5 years ago
|
||
Assignee | ||
Comment 19•5 years ago
|
||
I'd missed a couple of changes in the no-shadow patch. All fixed up now.
Comment 20•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/77b66c3539ec
https://hg.mozilla.org/mozilla-central/rev/f10e6e88331a
https://hg.mozilla.org/mozilla-central/rev/6368dec38ad6
https://hg.mozilla.org/mozilla-central/rev/68d0e52b6dd1
https://hg.mozilla.org/mozilla-central/rev/f72e51defe97
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Description
•