PhpStorm 2020.1 Help

Code Inspection: Missing require() statement

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.

When using libraries that define their own global symbols outside their visible JavaScript code (e.g. describe() in Mocha ),
it is recommended that you add the corresponding TypeScript type definition file as a JavaScript library in Preferences | Languages & Frameworks | JavaScript | Libraries.

Last modified: 26 May 2020