Error message about invalid config file does not mention which config file is invalid #8963
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
core
Relates to ESLint's core APIs and features
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
N/A
Please show your full configuration:
(see below)
What did you do? Please include the actual source code causing the issue.
My config file looks like this:
foo.yml
looks like this:bar.yml
, an invalid config file, looks like this:I have an
index.js
file that looks like this:I tried to lint
index.js
:node_modules/.bin/eslint index.js
What did you expect to happen?
I expected to get an error about the invalid config file, and I expected the error message to mention that the invalid config file is
bar.yml
.What actually happened? Please include the actual, raw output from ESLint.
A config validation error was thrown, and the following output was produced:
The message does not mention
bar.yml
(although did does mention that the invalid config was referenced from.eslintrc.yml
). This is probably because we used to assume that all config-loading errors were related to not being able to find the file, so it didn't make sense to repeat the filename before.Also, the error message is printed twice. That part is probably a separate issue.
The text was updated successfully, but these errors were encountered: