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

JSON errors in Syntastic #128

Closed
mmwtsn opened this issue May 7, 2015 · 1 comment

Comments

@mmwtsn
Copy link

commented May 7, 2015

Syntastic is showing errors from Standard in various valid JSON files. When the same files are checked using the standard executable no errors are returned.

For example, this repository's package.json file is returning the following:

{
  "name": "standard",
  //
}
// package.json|2 col 9 warning| Unexpected token : (undefined)

With arrays, double quotes are flagged:

[
  "string"
]
// ./array.json|2 col 4 warning| Strings must use singlequote. (quotes)

Any ideas?

@mmwtsn

This comment has been minimized.

Copy link
Author

commented May 7, 2015

Got it. JSON files were being detected as JavaScript files.

If anyone comes across this you can check by opening a JSON file and running :set filetype?. The response should be filetype=json.

@mmwtsn mmwtsn closed this May 7, 2015

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

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.