clutchski / coffeelint

Lint your CoffeeScript.
http://www.coffeelint.org
Other
1.17k stars 172 forks source link

JSON parser croaks on utf-8 BOM #654

Open johndeighan opened 3 years ago

johndeighan commented 3 years ago

I created a custom JSON config file, then I modified one of the keys. coffeelint croaked on the first character in the file, which turned out to be a UTF-8 BOM (byte order mark), which my editor automatically created. When I turned that off in my editor, things worked fine but I think that your JSON parser should ignore any BOM that might be present.

UziTech commented 3 years ago

Development for coffeelint is on a new repo https://github.com/coffeelint/coffeelint

And v3 was released as @coffeelint/cli

If you could add an issue in that repo we could look into it.