Closed Bug 1755951 Opened 3 years ago Closed 3 years ago

Prepare for the enabling of eslint on debugger tests

Categories

(DevTools :: Debugger, task)

task

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(1 file)

Bug 1755907 is going to apply all necessary fix to make the test pass all eslint checks.
But there is some preliminary work to be done before being able to run eslint.

First, we should setup a valid eslintrc.js.
Then, we should start using the right import-symbols instruction in head.js/helpers.js/...

Let's try to do that before doing the massive eslint fixes in order to facilitate the review.

After this patch, we only need to remove the ignore from /.eslintignore.

My goal originaly was to simply add import-globals-from comments in helpers.js
But because of cross dependencies between head.js and helpers.js, it wasn't so trivial.
I first tried to merge them into a unique head.js, but the EXAMPLE_URL symbol
should not be imported by tests external to the debugger.
So I aligned debugger to the common practice of naming the shared head file... shared-head.js!
Like the inspector is doing.
I also merged helpers/context.js into shared-head.js to simplify things a bit.

Because of that I had to tweak many tests outside of the debugger.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/124fb7aebc89 [devtools] Prepare for the enabling of eslint on debugger tests. r=nchevobbe
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Regressions: 1756616
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: