javascriptresharperresharper-9.0

Disable javascript type coercion warning in Resharper


Since installing ReSharper 9, I noticed that it now highlights parts of javascript code where a type coercion occurs:

'==' tries to coerce values before comparing them which can lead to some unexpected results

Is it possible to disable these warnings? I've had a quick look in Resharper -> Options -> Code Editing -> Javascript, but can't find the option I'm looking for anywhere.


Solution

  • Just found the answer myself:

    Resharper -> Options -> Code Inspection -> Inspection Severity

    In JS tab

    Using of coerced equality operator

    has to be set to

    'Do not show'