ESLint 6.0.0-alpha.1 no longer passes the filename to processors #11725
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
Projects
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
./node_modules/.bin/eslint .
What did you expect to happen?
Output similar to:
What actually happened? Please include the actual, raw output from ESLint.
The error is because we're assuming that filename is a defined string.
According to the documentation page,
filename
should be passed as the second argument.This worked in ESlint 5.16.0, and I couldn't see any breaking changes mentioned for it.
We need the filename as we use it to avoid processing various different files according to their path, as well as a few other checks.
Are you willing to submit a pull request to fix this bug?
Not at the moment.
The text was updated successfully, but these errors were encountered: