lib/generators/jslint/update_config/templates/jslint.yml in jslint-1.0.5 vs lib/generators/jslint/update_config/templates/jslint.yml in jslint-1.1.0

- old
+ new

@@ -1,44 +1,44 @@ jslint: options: - passfail: false # Stop on first error - white: true # Strict white space - browser: true # Assume browser - devel: true # Allow console, alert, ... - widget: true # Assume Yahoo! widget - windows: true # Assume windows - safe: true # Safe subset - adsafe: true # Ad safe - - debug: true # Tolerate debugger statements - evil: true # Tolerate eval - laxbreak: true # Tolerate sloppy line breaking - forin: true # Tolerate unfiltered for in - sub: true # Tolerate inefficient subscripting - css: true # Tolerate CSS workarounds - cap: true # Tolerate HTML case - on: true # Tolerate HTML event handlers - fragment: true # Tolerate HTML fragments - es5: true # Tolerate ES5 syntax - - onevar: true # Allow one var statement per function - undef: true # Disallow undefined variables - nomem: true # Disallow dangling _ in identifiers + 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 != - plusplus: true # Disallow ++ and -- - bitwise: true # Disallow bitwise operators - regexp: true # Disallow insecure . and [^...] in /RegExp/ - newcap: true # Require Initial Caps for constructors - immed: true # Require parens around immediate invocations - strict: true # Require "use strict"; + 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 - indent: 2 # Strict white space indentation - maxlen: 120 # Maximum line length - maxerr: 50 # Maximum number of errors - predefined: # list of predefined elements, comma separated - - "$, $$, $w, $h, $r, $a, $f, prototype, object, effect, event, element, class, form, hash, ajax, try" + # prototypes - "$, $$, $w, $h, $r, $a, $f, prototype, object, effect, event, element, class, form, hash, ajax, try" + # jquery - "$, jQuery" scan: include: - 'public/javascripts/**/*.js'