Closed mcmire closed 6 years ago
Okay -- turns out this is my fault! I am a little new to TypeScript and I didn't realize that you have to name a file with *.jsx
to tell TS that it contains JSX. I thought I was going crazy! Sorry about the false alarm :)
Okay -- turns out this is my fault! I am a little new to TypeScript and I didn't realize that you have to name a file with
*.jsx
to tell TS that it contains JSX. I thought I was going crazy! Sorry about the false alarm :)
I'm new and this helped me as well. Thanks!
Me too, heh, thanks 🌝
Me too. Thanks!
Hey there! I'm getting weird warnings when trying to lint a file with JSX in it.
For example, take this file:
When using this
tslint.json
:I get the following output
The first error is expected, that's fine. (And you could say the last error is expected too.) But the other errors shouldn't be happening in my opinion. It's like TSLint doesn't know how to read JSX files effectively. I don't know if there's something in the TSLint docs I missed or whatever, but it seems really weird.
I'm using: