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

Allow shebangs (#!/usr/bin/env node) #871

Closed
ghost opened this issue Apr 29, 2017 · 2 comments

Comments

@ghost
Copy link

commented Apr 29, 2017

When I put in my shebang for node (#!/usr/bin/env node) standard gave me this warning 'Expected space or tab after '///' in comment. Could you allow shebangs on the first line. I will have to use // eslint-disable-line to fix this temporarily.

EDIT: I can't find any way of disabling this warning, could someone explain how

@ghost

This comment has been minimized.

Copy link
Author

commented Apr 29, 2017

Tried again and worked perfectly, so I'm closing this issue

@ghost ghost closed this Apr 29, 2017

@chinedufn

This comment has been minimized.

Copy link

commented Sep 9, 2017

In case someone else runs into this:

This linting error happens if your file ONLY contains the following

Does not work

#!/usr/bin/env node

Once you add code the errors goes away

Works

#!/usr/bin/env node

console.log('I have added code and everything works now')

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
1 participant
You can’t perform that action at this time.