WebStorm Auto import - "require" instead of "import from"
Please make sure that Node.js Core library is enabled for your project (Preferences | Languages & Frameworks | Node.js and NPM, Node.js Core library).
See Missing require() statement inspection (Preferences | Editor | InspectionsJavaScript | Node.js) description:
Checks that all modules are referenced through "require()".
Suggests inserting the "require()" call.
Works only in files in the scope of "Node.js Core" JavaScript library.