Closed as not planned
Description
Parsing a file with hashbang/shebang (#!
in the first line) like
#!/usr/bin/env node
console.info('hello world');
results in a parser error with this parser:
Error while parsing /file.js
Line 1, column 2: Unexpected character '!'
`parseForESLint` from parser `/file.js` is invalid and will just be ignored
eslint's own parser handles this by ignoring files starting with hashbang:
Also, FWIW, there is a stage 3 ECMAScript proposal to make hashbangs part of the language.
Metadata
Metadata
Assignees
Labels
No labels