PhpStorm 2021.1 Help

Code Inspection: JavaScript general errors

This inspection reports basic syntax issues and inconsistencies with language specification. Examples are invalid usages of keywords, incompatible numeric format usage or multiple parameters to getters/setters.
Generally, such errors must always be reported and shouldn't be disabled. But in some cases, like issues due to dynamic nature of JavaScript, usage of not yet supported language features, or bugs in IDE's checker, it may be handy to disable reporting these very basic errors.

Suppress an inspection in the editor

  1. Position the caret at the highlighted line and press Alt+Enter or click the Intention action icon.

  2. Click the arrow next to the inspection you want to suppress and select the necessary suppress action.

Last modified: 08 March 2021