phpstormjslint

How to fix this warning 'var' used instead of 'let' or 'const' JsLint in phpStrom?


I want to fix this in the code file not in jslint setting options. The JS file is in PHP project. How can I remove the warning from here?


Solution

  • Open PhpStorm Settings -> Languages & Framework -> Javascript and in "JavaScript language version" dropdown select EcmaScript 5