Skip to content
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

Enable shebang rule for other files #54

Closed
jordanbtucker opened this issue Sep 30, 2022 · 0 comments · Fixed by #172
Closed

Enable shebang rule for other files #54

jordanbtucker opened this issue Sep 30, 2022 · 0 comments · Fixed by #172

Comments

@jordanbtucker
Copy link

jordanbtucker commented Sep 30, 2022

Currently the shebang rule only ensures that the file referenced by the bin field in package.json has a shebang. However, there are times when you want other files to be run as scripts, say in a scripts directory in your project.

I recommend adding an option to ensure that all files matched by a glob pattern also require a shebang. This would also ensure that those files don't have any other shebang related issues like BOM or non-LF line breaks.

@scagood scagood linked a pull request Feb 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant