Enable more ESLint rules for image/
Categories
(Core :: ImageLib, task, P3)
Tracking
()
People
(Reporter: standard8, Assigned: kanurag94, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [lang=js] [gfx-noted])
Attachments
(1 file)
In bug 1554142 we enabled ESLint for image/, however we also disabled various rules. Now that bug has landed, we should work to enable the rules that were initially disabled.
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: https://developer.mozilla.org/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build (an artifact build is sufficient).
- If you have any problems, please ask on IRC (https://wiki.mozilla.org/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: https://developer.mozilla.org/docs/Mozilla/Developer_guide/Introduction
- If you have any problems, please ask on IRC (https://wiki.mozilla.org/Irc) in the #introduction channel. They're there to help you get started.
- Start working on this bug.
- Remove the relevant lines from the top-level .eslintrc.js
- Note: Don't remove the lines below the prettier comment, there's separate work ongoing for that.
- Run
./mach eslint image - Investigate the issues raised and fix them.
- The ESLint website has more details for most of the rules
- The mozilla/ rules are documented separately
- There's also useful information here about fixing no-undef issues.
- If you have direct questions about this bug, feel free to ask here or on irc.
- Remove the relevant lines from the top-level .eslintrc.js
- Build your change with mach build and test your change with:
./mach xpcshell-test image./mach mochitest image
- Submit the patch for review. Mark me as a reviewer (r?standard8) so I'll get an email to come look at your code. I'll be doing an initial review of the patch, then passing it to image/ peers for final review.
- Here's the guide.
- I strongly suggest using moz_phab to push the patch.
- After a series of reviews and changes to your patch, I'll mark it for checkin or push it to autoland. Your code will 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.
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 1•2 years ago
|
||
Hey, can I take this up as my first contribution?
Thanks! :)
| Reporter | ||
Comment 2•2 years ago
|
||
Hi Rishabh, thank you for the offer, I've assigned it to you.
Comment 3•2 years ago
|
||
(In reply to Mark Banner (:standard8) from comment #2)
Hi Rishabh, thank you for the offer, I've assigned it to you.
My apologies for the delay. I got busy with another task. I will get right back to this and ask you if I get stuck anywhere. Thanks!
Comment 4•2 years ago
|
||
Hey, can I take this up?
Comment 5•2 years ago
|
||
| Assignee | ||
Comment 6•2 years ago
|
||
| Reporter | ||
Comment 7•2 years ago
|
||
Anurag, generally it is polite to ask if you take over a bug someone's assigned to, sometimes they just get delayed. However in this case I haven't heard from Rishabh for a while, and I pinged them last week, so handing this over.
Comment 8•2 years ago
|
||
Hey Mark!
I'm sorry for not keeping up with this! I tried multiple times to get firefox build up and running, but always got an error in the mach build command stage.
I tried to reach out on Mozilla IRC, but couldn't solve the issue there as well.
I apologize for not getting back here on time!
Anurag, you can take this up :)
| Assignee | ||
Comment 9•2 years ago
|
||
Mark, I apologize for taking over like this. Thanks !
Rishabh, I'm sorry, I didn't ask first. Thanks for letting me take over!
Comment 10•2 years ago
|
||
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3be18873536a Enable more ESLint rules for image/. r=Standard8,aosmond
| Reporter | ||
Comment 11•2 years ago
|
||
Anurag, thank you for your work on this, this is now on our integration branch, and should be merged to the master mozilla-central within a day if there's no issues found in automation.
Comment 12•2 years ago
|
||
| bugherder | ||
Comment 13•2 years ago
|
||
| bugherderuplift | ||
Updated•2 years ago
|
Description
•