vscode-eslint: After upgrade to version 3.x, json files are broken

It works well in 2.4.4, but after I upgrade to the latest 3.x.x, it seems that it will lint all .json as js/ts file In 2.4.4: image In 3.0.8 and 3.0.10: image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

So this issue comes from eslint self but not the extension? One thing I couldn’t understand, why after I downgrade the extension, it worked. And eslint’s version is hard coding (in package.json), so eslint version and configs are all the same. The only difference between these are the extension’s version. This seems strange. 🤔

I was able to reproduce, however the same errors seem to be reported on the command line as well (see screen shot).

Image

So there seems to be a more general problem with the setup since this happens independent of the ESLint extension.

I’m using a payed Vue template, so I can’t push all of them. I will try to provide a demo later.