How to exclude JS files from typeaware linting? #19972
Unanswered
s-h-a-d-o-w
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Why do you want to disable type aware linting on JS files? This below is kinda the best way, although, we don't support wildcards, so you'd have to manually specify every rule
|
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my opinion, running typeaware linting on JS files should be opt-in or maybe follow
checkJsintsconfig.jsonin the first place.But as things are at the moment, I tried the following two things - neither worked.
Excluding the typescript plugin
Wildcard rules (I guess oxlint doesn't actually support wildcards for rules in general?)
UPDATE:
I thought of a workaround but it unfortunately doesn't work with the vscode extension.
Which is to create a TS specific config that extends a base config that's set up for JS. One ignores all TS files, the other all JS files and they are run separately.
Beta Was this translation helpful? Give feedback.
All reactions