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
What happened?
Typescript files are not parsed correctly by the extension and I get the following error: Parsing error: Unexpected token :ts-standard.
constthisIsJustATest=(arg: string): boolean=>{if(arg==="This is a test"){returntrue}returnfalse}exportdefaultthisIsJustATest
I have set the extension to "standard.engine": "ts-standard",.
The issue seems to lie in the extension as from command line I cannot see any problem:
$ ./node_modules/.bin/ts-standard --fix src/utils/is-test.ts
✨ Done in 5.40s.
What did you expect to happen?
No error should happen because of typescript syntax.
Are you willing to submit a pull request to fix this bug?
If I understand where the problem lies, I'd be happy to contribute to a fix. I wonder if the setting of the engine is actually being respected, as I've seen similar errors happening with ESLint when not properly configured for supporting typescript.
The text was updated successfully, but these errors were encountered:
What version of this package are you using?
2.1.0
"ts-standard": "^11.0.0"
"typescript": "4.4.4"
What operating system, Node.js, and npm version?
12.4
v12.22.8
1.22.11
(not using npm)What happened?
Typescript files are not parsed correctly by the extension and I get the following error:
Parsing error: Unexpected token :ts-standard
.I have set the extension to
"standard.engine": "ts-standard",
.The issue seems to lie in the extension as from command line I cannot see any problem:
What did you expect to happen?
No error should happen because of typescript syntax.
Are you willing to submit a pull request to fix this bug?
If I understand where the problem lies, I'd be happy to contribute to a fix. I wonder if the setting of the engine is actually being respected, as I've seen similar errors happening with ESLint when not properly configured for supporting typescript.
The text was updated successfully, but these errors were encountered: