JetBrains WebStorm complains about the lines like data.config_desc("optionName") = "description":
Is there a way to write this code in a different way that is syntactically correct from the JavaScript perspective?
JetBrains WebStorm complains about the lines like data.config_desc("optionName") = "description":
Is there a way to write this code in a different way that is syntactically correct from the JavaScript perspective?
It probably doesn't make sense to run a JavaScript analyser against JScript.
Yes, it is true.
I was just wondering if there is a way to keep the code compatible with JavaScript.
For example, in all of my scripts, these are the only line of code that is not valid JavaScript.
The code analysis is useful. For example, it also sometimes detects the input arguments' types like this:
![]()
However, if it is not possible to make this code compatible, it is fine. I can just ignore these errors.
You should be able to use data.config_desc.maxTabLabelLength as well, which presumably wouldn't trigger the warning.
There's also the new style of script configuration which is simpler to use (doesn't require separate maps for descriptions etc).