Open Bug 1447034 Opened 7 years ago Updated 6 months ago

Improve ESLint's detection of head.js files for xpcshell-tests (import-headjs-globals rule)

Categories

(Developer Infrastructure :: Lint and Formatting, enhancement, P2)

3 Branch
enhancement

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned)

References

Details

Currently, if a xpcshell-test head file is not: 1) named "head*.js" or "xpcshell_head*.js" or 2) not in the same directory, then we fail to locate it, and ESLint has to be told about it manually via import-globals-from. We're already parsing the manifests when detecting if files are used in tests or not, so we can simply work out what the real head files are by using the information from the manifest.
Assignee: standard8 → nobody
Priority: P1 → P2
Version: Version 3 → 3 Branch
Blocks: 1612907
Product: Firefox Build System → Developer Infrastructure
No longer blocks: 1612907
Severity: normal → S3
Duplicate of this bug: 1548333
Summary: Improve ESLint's detection of head.js files for xpcshell-tests → Improve ESLint's detection of head.js files for xpcshell-tests (import-headjs-globals rule)
You need to log in before you can comment on or make changes to this bug.