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
Bug: shebang code #220
Labels
Comments
Thanks for the report! sounds good to opt-in 👍 . |
scagood
added a commit
to scagood/eslint-plugin-n
that referenced
this issue
May 13, 2024
aladdin-add
pushed a commit
that referenced
this issue
May 14, 2024
* test: Rename shebang tests to be more verbose * chore: Prepare for #220 by making shebang checks more verbose * feat(hashbang): Add support to map extensions to executables * chore: remove "\b" in char group * docs(hashbang): Add docs for "executableMap"
scagood
added a commit
to scagood/eslint-plugin-n
that referenced
this issue
May 14, 2024
scagood
added a commit
to scagood/eslint-plugin-n
that referenced
this issue
May 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Node version: 20.10.0
npm version: 10.2.3
ESLint version: 8.55.0
eslint-plugin-n version: 16.3.1
Operating System: Linux, ubuntu 22.0
What rule do you want to report?
hashbang
Link to Minimal Reproducible Example
https://eslint-online-playground.netlify.app/#eNp1kb1uwzAMhF9FVYcs/tlddOvepehSZZAlInBrUSolBSkCv3spK0HjAB0MWLzjhyN5lpFMDyftwgzdZ5SDNB5jElo8i924e1Iom9VjnO1S0R8f+hypHyfsAY8ixRa9BUUKy8fuDuI8YSLDPI/ccVYohJJwSoA2KjmID36tpoHAeOe4DlbJhl1hzocJB+w3yr6pjKApAr2GNHHKQlrZK904/Q4UWSh1JWedICaGXh3RZzLw9hOgGpy3eeb/oi8XPnFly/3OnjnX0ESeak7r81i692u7woUnD9p86UPZ4+3cFo4vEMogaKY7et3CP4Gr2NaNtHdj3abmW2yofKtq/jvcpaHkXH4BFLii/A==
What did you expect to happen?
both
shebang
andn/hashbang
suppose that the only valid bang syntax is#!/usr/bin/env node
, but we may need to use another valid one such as#!/usr/bin/env ts-node
.bug:
reporting
#!/usr/bin/env ts-node
as invalid shebang is a mistakesuggestions:
['ts-node']
.ts
, it ists-node
by default{ js: 'node', ts: 'ts-node' }
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: