You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the spec says that the BOM shouldn't be added, I think its fair for a linting tool to complain about it.
Implementations MUST NOT add a byte order mark to the beginning of a
JSON text. In the interests of interoperability, implementations
that parse JSON texts MAY ignore the presence of a byte order mark
rather than treating it as an error.
While the spec allows for parsers to ignore it, I don't think linters should.
I use renovate to upgrade the lock file and it updated
jsonc-parser@^3.0.0
from 3.0.0 to 3.2.0
It looks like it was caused by this:
microsoft/node-jsonc-parser@009d0a6
I guess that eslint-plugin-json should remove a utf8 bom prior to passing it in?
The text was updated successfully, but these errors were encountered: