-
Notifications
You must be signed in to change notification settings - Fork 2
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
The context.filename
is undefined for inline lint in Cursor IDE
#162
Comments
Hi, thanks for pull request. Why |
Hi @vitonsky. Let me clarify on the following screenshot:
I also updated the PR to not override your default behavior. See the commit 5e4f362fa81134070904b6be95a18857d02fcbdb. |
@david-vaclavek to make changes in code we have to understand the root cause. Could you explain why I can't found information for such ESLint behavior, so it looks the problem related to IDE, not to ESLint plugin. If we can prove otherwise, we should reproduce this problem in tests first and then fix it. This is how we make changes on this project. |
It's likely related to the ESLint version, as we still use v7 in this project. Therefore, I suspect this was v7's way of getting the filename. |
Hello.
The
context.filename
is undefined for inline lint in Cursor IDE. I suppose it's related to the inline file lint in general.My suggested fix is to replace
with
which works perfectly in my case.
The text was updated successfully, but these errors were encountered: