Closed Bug 1508817 Opened 6 years ago Closed 5 years ago

Enable ESLint for docshell


(Core :: DOM: Navigation, enhancement, P3)




Tracking Status
firefox65 --- wontfix
firefox66 --- wontfix
firefox67 --- wontfix
firefox68 --- fixed


(Reporter: standard8, Assigned: pong7219, Mentored)



(Keywords: good-first-bug, Whiteboard: [seneca-eslint][lang=js])


(2 files, 2 obsolete files)

As part of rolling out ESLint across the tree, we should enable it for the rest of docshell, i.e. all of:

Whiteboard: [seneca-eslint]
Priority: -- → P3
I'll work on this issue if no one has yet
Assignee: standard8 → sathia
Attachment #9031192 - Attachment is obsolete: true

I've not heard from Sathia, so opening this out as a mentored bug.

To help Mozilla out with this bug, here's the steps:

  1. Comment here on the bug that you want to volunteer to help. I (or someone else) will assign it to you.
  2. Download and build the Firefox source code:
  3. 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.
    • Here's what to do:
      1. In .eslintignore, remove the three docshell/test/... lines.
      2. Run eslint ./mach eslint --fix docshell/test
        • This should fix some of the issues.
      3. Inspect the diff to make sure that the indentation of the lines surrounding the changes look ok.
      4. Create a commit of the work so far. Note the extra docshell at the end (this avoids committing .eslintignore at this stage)
        • $ hg commit -m "Bug nnn - Enable ESLint for docshell (automatic changes). r?Standard8" docshell
      5. For the remaining issues, you'll need to fix them by hand. To find them, run ./mach eslint docshell.
      6. 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 docshell (manual changes). r?Standard8
      7. Post the two commits via phabricator. Please use moz-phab to submit them.
  4. 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 docshell peer, so there may still be more to go.
  5. 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!
  6. 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.
Assignee: sathia → nobody
Mentor: standard8
Keywords: good-first-bug
Whiteboard: [seneca-eslint] → [seneca-eslint][lang=js]

Hi Mark,
I could work on this, if that's ok :)


Hi Mellina, I've assigned it to you, please start working on it. Feel free to ask questions.

Assignee: nobody → pong7219

Hi Mark,

Thanks! I will work on it today and will have updates tomorrow.

Flags: needinfo?(standard8)

Hi Mellina, sorry I haven't gotten to look at this yet - I've had lots on the last day or so. I hope to look at it tomorrow if not before.

Flags: needinfo?(standard8)

Hi Mark, don't worry! There is a lot to check here as well, I understand.

I just gave a heads-up in case you haven't seen it.

Please take your time.

Boris, can you accept the automatic changes as well please?

Flags: needinfo?(bzbarsky)

Sorry, I had missed there were two requests, somehow. Done.

Flags: needinfo?(bzbarsky)
Attachment #9052911 - Attachment is obsolete: true
Pushed by
Enable ESLint for docshell (automatic changes). r=Standard8,bzbarsky
Enable ESLint for docshell (manual changes). r=Standard8,bzbarsky
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.