Disabling Built-in Lib Types in JavaScript with jsconfig.json
Hi,
I want to disable all built-in lib types for my JavaScript project. I assumed that setting the "noLib" flag in a jsconfig.json file would work the same way as in a tsconfig.json file.
What confuses me is that when I set "noLib" in a TypeScript project via tsconfig.json, WebStorm correctly recognizes that I don't want any lib.d.ts declaration files included in my syntax checking and disables them accordingly. However, this behavior does not seem to apply when setting "noLib" in jsconfig.json.
Is this a bug, or am I misconfiguring something?
Thanks,
- Christoph
Please sign in to leave a comment.
The IDE only uses
jsconfig.jsonto resolve path aliases. The library settings defined in it are not respected.If you miss this feature, please feel free to create a new feature request here: https://youtrack.jetbrains.com/issues/WEB. We’ll see if it can be implemented.