-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Allow shebang in any file #336
Comments
There is an option in the rule for exactly this, it's called |
Thanks! I assumed that empty array in the example is an array of glob patterns, so I expressed my intention "any" as |
there are 2 options:
|
Neither of those work for me. I have scripts that are meant to be invoked by my node scripts, but would not usually be desirable to invoke from an interactive shell. |
Rule details
I'd like to configure the shebang rule to do all of its regular checks, but not complain "This file needs no hashbang."
What type of rule is this?
Suggests an alternate way of doing something
Example code
Participation
Additional comments
Also the message "This file needs no hashbang." should be a bit more helpful, rather than just patronizing. When I first got the error, my first thought was, "Of course it needs one, how else would my shell know how to run it?" So maybe let's change it to something like "This file contains a hashbang but is not listed as a
bin
entry in package.json."The text was updated successfully, but these errors were encountered: