forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
n/shebang has wrong entry for report node #85
Comments
yes, it's not a good UX to highlight the entire file. are you willing to submit a PR? :) |
Sorry, I don't have time. |
scagood
added a commit
to scagood/eslint-plugin-n
that referenced
this issue
Feb 6, 2024
aladdin-add
pushed a commit
that referenced
this issue
Feb 7, 2024
* feat: Add shebangs to all ignored executable files * chore: Add names to shebang tests * fix: Ignore shebangs for all files not published * feat(shebang): Add "ignoreUnpublished" option * chore: Actually ignore test fixtures * chore: Remove import-maps module disable * feat(shebang): Add "additionalExecutables" option * docs(shebang): Add two new options to docs * chore(shebang): Only report the first line #85
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The bug is here:
https://github.com/eslint-community/eslint-plugin-n/blob/master/lib/rules/shebang.js#L164
Instead of selecting
node
, we need to select only the first line of the file.In other words, when in VSCode:
The text was updated successfully, but these errors were encountered: