Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
Add an option to disable TypeScript validation for VS Code extension.
Background & Motivation
Currently, Astro VS Code extension reports TypeScript problems in
*.astro
files. But some TypeScript validation rules are not applicable for JavaScript code. It's good for JavaScript coders to have an option to disable TypeScript validation so that they don't have to ignore false-positive problems show in VS Code.Although there is a workaround:
// @ts-nocheck
, it's unrealistic and bad-looking to have// @ts-nocheck
in all*.astro
files contain JavaScript code.There was a discussion about this: withastro/language-tools#604.
Goals
Example
N/A
Beta Was this translation helpful? Give feedback.
All reactions