-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: (eslintignore breaks when cwd is using forward slash on windows) #17042
Comments
Hi @noe132! Thanks for the detailed description. I was able to reproduce this. The problem seems to be that I think the easiest solution would be to update the |
That seems reasonable, though I'm curious if this is also an issue for |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
@mdjermanovic following up here, do you think this is also an issue for |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
@mdjermanovic waiting for your response on this. Thanks. |
Maybe there is more to test, but so far I could not reproduce the issue described here with the flat config. |
I didn't manage to find any observable problems either, but it might be good to do |
Marking this as accepted :) |
I can work on this. |
Environment
Node version: 19.7.0
npm version: 9.5.0
Local ESLint version: 8.37.0
Global ESLint version: N/A
Operating System: windows 10 x64
What parser are you using?
Default (Espree)
What did you do?
When passing cwd option to eslint with a path with forward slash on windows (
C:/path/to/project
), eslintignore breaks and errors were reported from ignored files.folder structure:
src/1.js
src/dist/2.js
.eslintignore
lint.js
.eslintrc.js
result
What did you expect to happen?
eslintignore working as expected
What actually happened?
linting ignored files
Participation
Additional comments
Where I get this problem? Here.
I'm using vite-plugin-checker on my project. It pass a
root
param recieved fromvite
to eslintcwd
option which happens to be a path with forward slash on windows.The text was updated successfully, but these errors were encountered: