Closed
Bug 1578194
Opened 6 years ago
Closed 6 years ago
Having node_modules installed in a sub-directory can cause failures in ESLint
Categories
(Developer Infrastructure :: Lint and Formatting, task, P1)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox71 fixed)
RESOLVED
FIXED
mozilla71
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file)
STR
$ cd tools/lint/eslint/eslint-plugin-mozilla
$ npm install
$ cd ../../../../
$ ./mach eslint tools
Expected Results
- No errors
Actual Results
An error occurred running eslint. Please check the following error messages:
Oops! Something went wrong! :(
ESLint: 6.2.2.
ESLint couldn't find the config "@ljharb" to extend from. Please check that the name of the config is correct.
The config "@ljharb" was referenced from the config file in "/Users/mark/dev/gecko/tools/lint/eslint/eslint-plugin-mozilla/node_modules/define-properties/.eslintrc".
I think this is due to the Eslint 6 upgrade. The config files now have stricter matching to .eslintignore
and our node_modules exclusion is **/node_modules/**/*.*
which doesn't catch dot files.
Assignee | ||
Comment 1•6 years ago
|
||
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6a6153cb19e9
ESLint's ignore should properly ignore dot files in node_modules as well. r=mossop
![]() |
||
Comment 3•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox71:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•