How can linter distinguish constants from vars
There are various "Inspections" that complain about aspects of code style. There's one for expected syntax of variables, which by default expects an initial lower-case letter. That's good, but since Javascript doesn't have constants, a typical convention is to declare a constant as an all upper-case var. Is there any way for WebStorm to understand that, or am I just going to have to turn off the "Local variable naming convention" inspection?
请先登录再写评论。
I can only suggest supressing this inspection for constants by adding '//noinspection LocalVariableNamingConventionJS' comments