lib/generators/jslint/update_config/templates/jslint.yml in jslint-1.1.3 vs lib/generators/jslint/update_config/templates/jslint.yml in jslint-1.2.0

- old
+ new

@@ -1,44 +1,50 @@ jslint: options: - adsafe: false # true, if ADsafe rules should be enforced - bitwise: true # true, if bitwise operators should not be allowed - browser: false # true, if the standard browser globals should be predefined - cap: true # true, if upper case HTML should be allowed - continue: true # true, if the continuation statement should be tolerated - css: true # true, if CSS workarounds should be tolerated - debug: true # true, if debugger statements should be allowed - devel: true # true, if logging should be allowed (console, alert, etc.) - eqeqeq: true # Disallow == and != - es5: true # true, if ES5 syntax should be allowed - evil: true # true, if eval should be allowed - forin: true # true, if for in statements need not filter - fragment: true # true, if HTML fragments should be allowed - indent: 4 # the indentation factor - maxerr: 100 # the maximum number of errors to allow - maxlen: 120 # the maximum length of a source line - newcap: true # true, if constructor names must be capitalized - node: false # true, if Node.js globals should be predefined - nomem: true # true, if names should be checked - on: true # true, if HTML event handlers should be allowed - onevar: true # true, if only one var statement per function should be allowed - passfail: false # true, if the scan should stop on first error - plusplus: true # true, if increment/decrement should not be allowed - regexp: true # true, if the . should not be allowed in regexp literals - rhino: false # true, if the Rhino environment globals should be predefined - undef: true # true, if variables should be declared before used - unparam: true # true, if unused parameters should be tolerated - safe: true # true, if use of some browser features should be restricted - strict: true # true, require the 'use strict'; pragma - sub: true # true, if all forms of subscript notation are tolerated - white: true # true, if strict whitespace rules apply - widget: false # true if the Yahoo Widgets globals should be predefined - windows: false # true, if MS Windows-specific globals should be predefined + anon: false # true, if the space may be omitted in anonymous function declarations + bitwise: false # true, if bitwise operators should be allowed + cap: false # true, if upper case HTML should be allowed + continue: false # true, if the continuation statement should be tolerated + css: false # true, if CSS workarounds should be tolerated + debug: false # true, if debugger statements should be allowed + eqeq: true # true, if == should be allowed + es5: false # true, if ES5 syntax should be allowed + evil: false # true, if eval should be allowed + forin: false # true, if for in statements need not filter + fragment: false # true, if HTML fragments should be allowed + forvar: false # true, if for(var i ....) construction should be allowed + newcap: false # true, if constructor names capitalization is ignored + node: false # true, if Node.js globals should be predefined + nomen: true # true, if names may have dangling _ + on: false # true, if HTML event handlers should be allowed + plusplus: true # true, if increment/decrement should be allowed + properties: false # true, if all property names must be declared with /*properties*/ + regexp: false # true, if the . should be allowed in regexp literals + undef: true # true, if variables can be declared out of order + unparam: false # true, if unused parameters should be tolerated + sloppy: true # true, if the 'use strict'; pragma is optional + stupid: false # true, if really stupid practices are tolerated + sub: false # true, if all forms of subscript notation are tolerated + vars: true # true, if multiple var statements per function should be allowed + white: true # true, if sloppy whitespace is tolerated + maxlen: 150 # the maximum length of a source line + indent: 2 # the indentation factor + maxerr: 50 # the maximum number of errors to allow + passfail: true # true, if the scan should stop on first error + + # following are relevant only if undef = false + browser: false # true, if the standard browser globals should be predefined + rhino: false # true, if the Rhino environment globals should be predefined + windows: false # true, if MS Windows-specific globals should be predefined + widget: false # true if the Yahoo Widgets globals should be predefined + devel: false # true, if logging should be allowed (console, alert, etc.) + predefined: # list of predefined elements, comma separated # prototypes - "$, $$, $w, $h, $r, $a, $f, prototype, object, effect, event, element, class, form, hash, ajax, try" # jquery - "$, jQuery" scan: include: - 'public/javascripts/**/*.js' + - 'app/assets/javascripts/**/*.js'