Closed
Bug 1990241
Opened 4 months ago
Closed 4 months ago
ESLint config-inspector fails due to double-slash when importing configurations from sub directories.
Categories
(Developer Infrastructure :: Lint and Formatting, task, P3)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox145 fixed)
RESOLVED
FIXED
145 Branch
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file)
I was just trying to run the ESLint configuration inspector on firefox-main, and got the following error:
ℹ Starting ESLint config inspector at http://localhost:7777
ℹ Reading ESLint config from /Users/mark/dev/firefox/eslint.config.mjs
Failed to load `eslint.config.js`.
Note that `@eslint/config-inspector` only works with the flat config format:
https://eslint.org/docs/latest/use/configure/configuration-files-new
Error: Module not found in bundle: ./accessible/tests/browser//.eslintrc.mjs
at file:///Users/mark/dev/firefox/eslint.config.bundled_nsbpdoy6wg.mjs:6:9
at convertConfigurationFile (file:///Users/mark/dev/firefox/eslint.config.bundled_nsbpdoy6wg.mjs:7047:23)
at file:///Users/mark/dev/firefox/eslint.config.bundled_nsbpdoy6wg.mjs:7070:12
It doesn't like the double-backslash in the module name.
| Assignee | ||
Comment 1•4 months ago
|
||
Pushed by mbanner@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/7dfb55f48802
https://hg.mozilla.org/integration/autoland/rev/9e1e9c0ba8b6
Avoid double-slashes when importing modules into the ESLint configuration to fix the configuration inspector. r=frontend-codestyle-reviewers,Gijs
Comment 3•4 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
status-firefox145:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•