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

Do not strip BOM when linting code from the CLI #2486

Open
jugglinmike opened this issue Jun 25, 2015 · 0 comments
Open

Do not strip BOM when linting code from the CLI #2486

jugglinmike opened this issue Jun 25, 2015 · 0 comments

Comments

@jugglinmike
Copy link
Member

The CLI currently strips the byte-order mark from input files, a behavior which is not shared by the Node.js API. This inconsistency led to a fair amount of confusion about JSHint's treatment of BOM characters. Update the CLI to keep the BOM intact. This behavior is more consistent, and users who understand the risk and wish to ignore it may do so by disabling warning W100.

If anyone knows a compelling case to automatically strip the BOM (since none was provided when the behavior was first introduced), please share it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant