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?
Open PhpStorm Settings -> Languages & Framework -> Javascript and in "JavaScript language version" dropdown select EcmaScript 5
in Settings , find Inspections tab . Then find the one denoted in picture below (which is "'var' used instead of 'let' or 'const'", and change the severity to no highlighting.
The squiggling line disappears after you apply this new setting.
When using multiple versions of JavaScript language in your project, you can also set specific JavaScript language version for each directory (e.g. when you're using ECMAScript 5.1 in views in <script>
tag, but assets are written in ECMAScript 6+)...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With