Exclude certain warnings

gsrojas
2006-11-10
2013-05-28
  • gsrojas
    gsrojas
    2006-11-10

    Is there a way to exclude certain warnings?  This one in particular:

    lint warning: comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)

     
    • Martin Harper
      Martin Harper
      2006-11-21

      Yes. Edit your jse.conf file (which will probably be located in the same folder as jsl.exe). Look through the list of warnings and change the pluses to minuses for warnings you don't want. Eg:

      -comparison_type_conv         # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)

      As it happens, this is one of the warnings I've disabled in my own use of javascript lint.