melonJS icon indicating copy to clipboard operation
melonJS copied to clipboard

Fixing lint warnings and errors

Open nvlbg opened this issue 13 years ago • 2 comments

I guess it's good to have an issue for that to discuss what lint options we should be using. This problem is tightly related with what style of writing we should all strive for. What I suggest is creating a "Style guide" wiki page and referencing to it in the README or somewhere else for people who want to contribute.

What I would suggest is using strict mode. Currently, it is set to false, but I can only see advantages from using it. Here's more about strict mode - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode

nvlbg avatar Aug 30 '13 13:08 nvlbg

P.S.: I started removing warnings and I'm pretty much done. Near the end a problem occurred. It seems that SublimeLinter uses a newer version of jshint than grunt. So I started investigating. It seems that there is a lot newer version of grunt-contrib-jshint (0.6.4 is latest while we're using 0.4.3). So, is there a reason for that?

nvlbg avatar Aug 30 '13 16:08 nvlbg

closing this one as it's 99,9% done, remaining one are a bit tricky are need more attention.

thank you again @nvlbg !

obiot avatar Sep 25 '13 05:09 obiot