Closed Bug 1700106 Opened 3 years ago Closed 3 years ago

Remove eslint specific for devtool's mochitests

Categories

(DevTools :: General, task)

task

Tracking

(firefox89 fixed)

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 2 open bugs, )

Details

Attachments

(9 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

DevTools mochitests are running with some specific config:
https://searchfox.org/mozilla-central/source/devtools/.eslintrc.mochitests.js#10-33

Some rules like JSX looks pure legacy and can be removed
and many others looks like things that should be addressed instead of being workaround via a custom rule.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

I kept a few having some overrides. But they may be irrelevant.
And I kept some eslint files for all folder that aren't matching the pattern matching "/test*//browser*/".
Ideally we would rename these folder to match.

Last but not least, I identified one case where we were using mochitest file for xpcshell tests!

Blocks: 1700346
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eeb59dd8939f
[devtools] Remove all unused eslint rules from devtools mochitests. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/039a01c906b0
[devtools] Remove the gDevTools custom eslint global from DevTools mochitests. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/bab0a5372c7f
[devtools] Remove the waitUntilState custom eslint global from DevTools mochitests. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/34bdea224bf1
[devtools] Remove the waitForTick custom eslint global from DevTools mochitests. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/7582b10727ee
[devtools] Remove the balanced-observers eslint disabling from DevTools mochitests. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/a6cba7972cd7
[devtools] Exclude tests from general reject-some-requires eslint rule. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/ab0345c22e40
[devtools] Exclude tests from general DevTools camelcase eslint rule. r=jdescottes
https://hg.mozilla.org/integration/autoland/rev/13af1d6187c5
[devtools] Remove now-useless eslint files related to mochitests. r=jdescottes,Standard8
https://hg.mozilla.org/integration/autoland/rev/a667260c7e49
[devtools] Removed synthesizeKeyFromKeyTag unused test helper. r=jdescottes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: