Expand my Community achievements bar.

JSLint

Avatar

Level 7

I've used the JSLint Macro created a while back and posted here JavaScript Lint check in Designer to ensure my JavaScript has in a consistent state. However, I've noticed that JSLint never reports issues on my script variables, (rather it complains ONLY about event scripts). Most of my code is in script objects. Is there a way to fix this?

1 Reply

Avatar

Level 7

Well I think I've isolated the issue, but I'm not sure of the solution. It appears that use of C style comments, i.e. /* Comment */ causes all lines following it to be ignored during JSLint. Since all my script variables started with these comments, they were not checked.