microsoft / vscode-jshint

VSCode extension to integrate jshint into VSCode
https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint
MIT License
72 stars 48 forks source link

how to this...? #51

Closed BVJeon closed 6 years ago

BVJeon commented 6 years ago

OMG... Help me please.

I use React-Native with JSHint But! See error. I did Google search. Through the setup, the grammar of es was also applied. But there is an error.

Issues found : https://github.com/Microsoft/vscode-jshint/issues/29

2018-02-07 6 48 32 2018-02-07 6 50 38 2018-02-07 6 50 59

RMacfarlane commented 6 years ago

JSHint can't parse JSX syntax, but the extension is running JSHint on the entire file, so it is erroring on the JSX syntax. This is a bug that isn't easy to fix, but as a workaround for now you could use /* jshint ignore:start */ and */ jshint ignore:end */ above and below the render method.

type Props = {}; looks like Typescript to me, should this be a .tsx file?

BVJeon commented 6 years ago

This file is React-Native example file and "*.js/javascriptreact".

I see. I will use /* jshint ignore:start */ and */ jshint ignore:end */ above and below the render method.

type Props = {}; Let's find another solution to this.

Thank you so much for answering. :) Have a nice day~~~

BVJeon commented 6 years ago

And although there is still a bug(*JSX Parsing bug) left, I will close this issue.