Closed Bug 1605995 Opened 4 years ago Closed 4 years ago

Add linting rule to prevent using relative paths in DevTools require calls

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(1 file)

In Bug 1596686 we migrated all devtools require calls to use absolute paths. This bug is about enforcing this via linting, which implies creating a new eslint rule. We "could" reuse reject-some-requires but it would make it hard to maintain, so a new rule seems easier to handle in the long run.

(edit: forgot to add a summary when creating the bug, sorry)

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/82bca3b583c8
Add linting rule against relative paths in DevTools require r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: