azer/onejs — pull request #22 by mixu (2012-08-17 19:45:01+00:00)
Title: Make jshint complain less

It is inevitable that people will run jshint on the output from onejs.

I went through a bunch of jshint complaints and changed the templates to fix them:

foo.js: line 5, col 21, 'global' is already defined.
foo.js: line 6, col 21, It is not necessary to initialize 'lib' to 'undefined'.
foo.js: line 10, col 272, Line too long.
foo.js: line 28, col 7, Bad line breaking before '&&'.
foo.js: line 29, col 7, Bad line breaking before '&&'.
foo.js: line 30, col 7, Bad line breaking before '&&'.
foo.js: line 31, col 7, Bad line breaking before '&&'.
foo.js: line 32, col 7, Bad line breaking before '&&'.
foo.js: line 35, col 38, Missing semicolon.
foo.js: line 51, col 5, Move the invocation into the parens that contain the function.
foo.js: line 53, col 3, Move the invocation into the parens that contain the function.
foo.js: line 58, col 16, It is not necessary to initialize 'module' to 'undefined'.
foo.js: line 118, col 29, Use '===' to compare with '0'.
foo.js: line 131, col 39, ['main'] is better written in dot notation.
foo.js: line 158, col 3, Move the invocation into the parens that contain the function.
...
foo.js: line 7, col 56, 'require' is not defined.
foo.js: line 8, col 55, 'Buffer' is not defined.
foo.js: line 2058, col 36, 'module' is not defined.
foo.js: line 2059, col 3, 'module' is not defined.
foo.js: line 2060, col 8, 'module' is not defined.