Enable ESLint for dom/flex and dom/grid
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
People
(Reporter: standard8, Assigned: shashankaushik100, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(2 files, 6 obsolete files)
As part of rolling out ESLint across the tree, we should enable it for dom/flex and dom/grid.
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/flex/**
anddom/grid/**
lines. - Run eslint
./mach eslint --fix dom/
- 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/flex/ dom/grid
at the end (this avoids committing .eslintignore at this stage)$ hg commit -m "Bug nnn - Enable ESLint for dom/flex and dom/grid (automatic changes). r?Standard8" dom/flex dom/grid
- For the remaining issues, you'll need to fix them by hand. To find them, run
./mach eslint dom/
. - 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/flex and dom/grid (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•6 years ago
|
Comment 1•6 years ago
|
||
Hi :)
I would like to work on this isuue?
Reporter | ||
Comment 2•6 years ago
|
||
Hi Sonia, please start work and feel free to ask if you have questions.
Reporter | ||
Comment 3•5 years ago
|
||
Sonia's not working on this at the moment, so opening it up.
Assignee | ||
Comment 4•5 years ago
|
||
Hi Mark,
I would like to work on this bug. I am a first time contributor.
Please let me if this bug is already assigned.
Looking forward
Thanks,
Shashank Kaushik
Comment 5•5 years ago
|
||
hi, I would like to work on my very first bug..
Reporter | ||
Comment 6•5 years ago
|
||
Hi Shashank, thanks for the offer, please start working on it - I've just assigned it to you.
Vishal, I'm passing to Shashank as they got there first. I'd suggest you look at your existing bug 1547944 and try to sort out your problems there before taking on another one.
Assignee | ||
Comment 7•5 years ago
|
||
Sure Mark. Setting up the Artifact build. Will keep you posted
Assignee | ||
Comment 8•5 years ago
|
||
Hi Mark,
Raised Pull request on github. (Automatic changes)
PR: https://github.com/mozilla/gecko-dev/pull/473
Please review.
Thanks,
Shashank Kaushik
Comment 9•5 years ago
|
||
Hi Shashank,
As described in comment0, you need to send patch via phabricator.
You can learn more about how to send patch here https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch
Let us know if you need any help :)
Assignee | ||
Comment 10•5 years ago
|
||
Hi Shivam,
Thanks for sharing the Doc. I will go through it.
Is there any documentation on how one flavor is different from the other. how is gecko-dev
different from mozilla-unified
and some doc around how the code is structured between various layers (C++, JS etc.)
Thanks,
Shashank Kaushik
Assignee | ||
Comment 11•5 years ago
|
||
Enable ESLint for dom/flex and dom/grid (automatic changes)
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 12•5 years ago
|
||
Assignee | ||
Comment 13•5 years ago
|
||
Depends on D31716
Assignee | ||
Comment 14•5 years ago
|
||
Hi Mark,
Is there a concept of branches with Mercurial.
- If so how do i cut a feature/bug branch and raise PR/Revision to the master/default branch.
- If not how to create independent revisions?
If you know some good resources of getting around Mercurial please share them.
Thanks,
Shashank Kaushik
Assignee | ||
Updated•5 years ago
|
Reporter | ||
Comment 15•5 years ago
|
||
(In reply to Shashank Kaushik from comment #14)
Is there a concept of branches with Mercurial.
- If so how do i cut a feature/bug branch and raise PR/Revision to the master/default branch.
- If not how to create independent revisions?
If you know some good resources of getting around Mercurial please share them.
I think this might be a good document for you: https://mozilla-version-control-tools.readthedocs.io/en/latest/hgmozilla/workflows.html#to-label-or-not-to-label
Note that MQ is no longer supported now.
One other option you might be interested in is git-cinnabar it allows checking out a mercurial repository as a git repository. You'll still need to use moz-phab to submit patches rather than pushing them, but the workflow would otherwise be the same.
Did you see my comments in phabricator about making a few changes?
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 16•5 years ago
|
||
Did you see my comments in phabricator about making a few changes?
Yes Mark i saw the comments. I was a little busy with some personal work, will take this up over the weekend.
Thanks for links. I will go over them.
Assignee | ||
Comment 17•5 years ago
|
||
Depends on D31717
Assignee | ||
Comment 18•5 years ago
|
||
Depends on D32451
Assignee | ||
Comment 19•5 years ago
|
||
Hi Mark,
Changes done. Please review.
Thanks,
Shashank kaushik
Assignee | ||
Comment 20•5 years ago
|
||
Depends on D31717
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 21•5 years ago
|
||
Assignee | ||
Comment 22•5 years ago
|
||
Depends on D33345
Assignee | ||
Comment 23•5 years ago
|
||
Thanks Mark for the links. I now have a git-cinnabar version of the code.
Can i create multiple branches in git in my local and run "moz-phab" on each individually?.
I see in the above commit is says one is dependent on the other. I guess this happened because i raised them through the same branch.
Reporter | ||
Comment 24•5 years ago
|
||
(In reply to Shashank Kaushik from comment #23)
Thanks Mark for the links. I now have a git-cinnabar version of the code.
Thanks for the updates, I'll look at them in a moment. Just to note, if there are changes to do, then you'll need to commit amend the revisions, and then you can moz-phab submit
again. As long as you don't loose the Differential Revision:
information in the commit message, it will update the existing commits. moz-phab
also indicates if it'll create a new or update an existing revision when it asks you if you want to submit.
Can i create multiple branches in git in my local and run "moz-phab" on each individually?.
Yes you can, by default it'll submit anything that goes back to central
(or master
, whatever the remote branch is called).
I see in the above commit is says one is dependent on the other. I guess this happened because i raised them through the same branch.
Yes, that's correct. We generally treat the commits as separate revisions, and they'll be landed in as separate commits as well.
Comment 25•5 years ago
|
||
Assignee | ||
Comment 26•5 years ago
|
||
Hi Mark,
I would like to work on https://bugzilla.mozilla.org/show_bug.cgi?id=1532933 once you feel this one is done.
Thanks,
Shashank
Reporter | ||
Comment 27•5 years ago
|
||
Yes, this is done, thank you.
Comment 28•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7d65d293dc73
https://hg.mozilla.org/mozilla-central/rev/eb279dbdefe4
Comment 29•5 years ago
|
||
Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.
Reporter | ||
Updated•5 years ago
|
Description
•