@WebStormIDE i think the IDE skips flagging named imports as unused when inside `const {a,b} = require(…);`
Can you please enable coding assistance for Node.js by pressing Alt-Enter on 'ulr' or 'path': that way the imported symbols will be properly resolved and the correct usages will be found.
-
-
that regressed with the latest stable version... ide flips back to ecma 5.1 when opening projects which were previously set to 6
-
The language version and the code completion for Node.js are different settings. We've double-checked WebStorm 2019.1.1 and the IDE sets the language level to ES6 for all new projects as it used to.
- 16 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.