Permalink
Browse files

Updated bundled jslint

  • Loading branch information...
magnars committed Feb 11, 2012
1 parent 9b30c19 commit 4bed9095d678db885c55f2722170337db2d49f85
Showing with 1,920 additions and 2,297 deletions.
  1. +3 −2 autolint.js
  2. +36 −19 lib/default-configuration.js
  3. +1,881 −2,276 vendor/jslint.js
View
@@ -6,9 +6,10 @@ module.exports = {
"linterOptions": {
"node": true,
"indent": 2,
- "onevar": false,
- "nomen": false,
"maxlen": 120,
+ "vars": true,
+ "nomen": true,
+ "sloppy": true,
"predef": [
"assert",
"refute"
@@ -1,22 +1,39 @@
module.exports = {
- "paths": ["**/*.js"],
- "linter": "jslint",
- "linterOptions": {
- "bitwise": true,
- "continue": false,
- "evil": false,
- "eqeqeq": true,
- "forin": false,
- "indent": 4,
- "immed": true,
- "maxlen": 80,
- "newcap": true,
- "nomen": true,
- "plusplus": true,
- "regexp": true,
- "sub": false,
- "undef": true,
- "onevar": true,
- "white": true
+ paths: ["**/*.js"],
+ linter: "jslint",
+ linterOptions: {
+ "indent": 4, // the indentation factor
+ "maxlen": 80, // the maximum length of a source line
+ "maxerr": 50, // the maximum number of errors to report per file
+ "anon": false, // true, if the space may be omitted in anonymous function declarations
+ "bitwise": false, // true, if bitwise operators should be allowed
+ "browser": false, // true, if the standard browser globals should be predefined
+ "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
+ "devel": false, // true, if logging should be allowed (console, alert, etc.)
+ "eqeq": false, // 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
+ "newcap": false, // true, if constructor names capitalization is ignored
+ "node": false, // true, if Node.js globals should be predefined
+ "nomen": false, // true, if names may have dangling _
+ "on": false, // true, if HTML event handlers should be allowed
+ "passfail": false, // true, if the scan should stop on first error
+ "plusplus": false, // 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
+ "rhino": false, // true, if the Rhino environment globals should be predefined
+ "undef": false, // true, if variables can be declared out of order
+ "unparam": false, // true, if unused parameters should be tolerated
+ "sloppy": false, // true, if the 'use strict'; pragma is optional
+ "sub": false, // true, if all forms of subscript notation are tolerated
+ "vars": false, // true, if multiple var statements per function should be allowed
+ "white": false, // true, if sloppy whitespace is tolerated
+ "widget": false, // true if the Yahoo Widgets globals should be predefined
+ "windows": false // true, if MS Windows-specific globals should be predefined
}
};
Oops, something went wrong.

0 comments on commit 4bed909

Please sign in to comment.