Exclude tools/lint/eslint/eslint-plugin-mozilla/node_modules/ (and/or other node_modules?) directories from rejected words list
Categories
(Developer Infrastructure :: Lint and Formatting, defect, P3)
Tracking
(firefox104 fixed)
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: Gijs, Assigned: standard8)
References
Details
Attachments
(1 file)
Although we can obviously file tickets against upstream repos that we require
in node code, we shouldn't try to lint them...
Comment 1•5 years ago
|
||
The severity field is not set for this bug.
:ahal, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•5 years ago
|
||
I might be mistaken, but I think that's the old location for the node_modules dir and now all the node stuff uses a single root node_modules directory. The root node_modules is already globally excluded from all linters here:
https://searchfox.org/mozilla-central/source/tools/lint/mach_commands.py#34
Mark, do I have it right? If so you can delete that directory and we can resolve this.
Reporter | ||
Comment 3•5 years ago
|
||
It may have been created when I had to run the tests for adding a new linter rule?
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #2)
I might be mistaken, but I think that's the old location for the node_modules dir and now all the node stuff uses a single root node_modules directory. The root node_modules is already globally excluded from all linters here:
https://searchfox.org/mozilla-central/source/tools/lint/mach_commands.py#34Mark, do I have it right? If so you can delete that directory and we can resolve this.
Not this time. When we run the eslint-plugin-mozilla tests, we create the node_modules directory. I believe various other places like browser/components/newtab and one of the devtools directories can also create their own node_modules directories.
Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•