Permalink
Browse files

Replace jslint by jshint.

  • Loading branch information...
1 parent f139c61 commit 233596626287d9a588442eb3cb0564d509a16904 @MathieuTurcotte committed Jun 27, 2012
Showing with 150 additions and 10 deletions.
  1. +148 −0 .jshintrc
  2. +0 −2 lib/all.js
  3. +0 −2 lib/any.js
  4. +0 −2 lib/multiple.js
  5. +0 −2 lib/waitfn.js
  6. +2 −2 package.json
View
@@ -0,0 +1,148 @@
+// Based on jshint defaults: http://goo.gl/OpjUs
+
+{
+ // If the scan should stop on first error.
+ "passfail": false,
+ // Maximum errors before stopping.
+ "maxerr": 50,
+
+
+ // Predefined globals
+
+ // If the standard browser globals should be predefined.
+ "browser": false,
+ // If the Node.js environment globals should be predefined.
+ "node": true,
+ // If the Rhino environment globals should be predefined.
+ "rhino": false,
+ // If CouchDB globals should be predefined.
+ "couch": false,
+ // If the Windows Scripting Host environment globals should be predefined.
+ "wsh": false,
+
+ // If jQuery globals should be predefined.
+ "jquery": false,
+ // If Prototype and Scriptaculous globals should be predefined.
+ "prototypejs": false,
+ // If MooTools globals should be predefined.
+ "mootools": false,
+ // If Dojo Toolkit globals should be predefined.
+ "dojo": false,
+
+ // Custom predefined globals.
+ "predef": [],
+
+
+ // Development
+
+ // If debugger statements should be allowed.
+ "debug": false,
+ // If logging globals should be predefined (console, alert, etc.).
+ "devel": false,
+
+
+ // ECMAScript 5
+
+ // If ES5 syntax should be allowed.
+ "es5": false,
+ // Require the "use strict"; pragma.
+ "strict": false,
+ // If global "use strict"; should be allowed (also enables strict).
+ "globalstrict": false,
+
+
+ // The Good Parts
+
+ // If automatic semicolon insertion should be tolerated.
+ "asi": false,
+ // If line breaks should not be checked, e.g. `return [\n] x`.
+ "laxbreak": false,
+ // If bitwise operators (&, |, ^, etc.) should not be allowed.
+ "bitwise": false,
+ // If assignments inside if, for and while should be allowed. Usually
+ // conditions and loops are for comparison, not assignments.
+ "boss": true,
+ // If curly braces around all blocks should be required.
+ "curly": true,
+ // If === should be required.
+ "eqeqeq": false,
+ // If == null comparisons should be tolerated.
+ "eqnull": false,
+ // If eval should be allowed.
+ "evil": true,
+ // If ExpressionStatement should be allowed as Programs.
+ "expr": false,
+ // If `for in` loops must filter with `hasOwnPrototype`.
+ "forin": false,
+ // If immediate invocations must be wrapped in parens, e.g.
+ // `( function(){}() );`.
+ "immed": false,
+ // If use before define should not be tolerated.
+ "latedef": false,
+ // If functions should be allowed to be defined within loops.
+ "loopfunc": false,
+ // If arguments.caller and arguments.callee should be disallowed.
+ "noarg": false,
+ // If the . should not be allowed in regexp literals.
+ "regexp": false,
+ // If unescaped first/last dash (-) inside brackets should be tolerated.
+ "regexdash": false,
+ // If script-targeted URLs should be tolerated.
+ "scripturl": false,
+ // If variable shadowing should be tolerated.
+ "shadow": false,
+ // If `new function () { ... };` and `new Object;` should be tolerated.
+ "supernew": false,
+ // If variables should be declared before used.
+ "undef": false,
+ // If `this` inside a non-constructor function is valid.
+ "validthis": false,
+ // If smarttabs should be tolerated
+ // (http://www.emacswiki.org/emacs/SmartTabs).
+ "smarttabs": false,
+ // If the `__proto__` property should be allowed.
+ "proto": false,
+ // If one case switch statements should be allowed.
+ "onecase": false,
+ // If non-standard (but widely adopted) globals should be predefined.
+ "nonstandard": false,
+ // Allow multiline strings.
+ "multistr": false,
+ // If line breaks should not be checked around commas.
+ "laxcomma": false,
+ // If semicolons may be ommitted for the trailing statements inside of a
+ // one-line blocks.
+ "lastsemic": false,
+ // If the `__iterator__` property should be allowed.
+ "iterator": false,
+ // If only function scope should be used for scope tests.
+ "funcscope": false,
+ // If es.next specific syntax should be allowed.
+ "esnext": false,
+
+
+ // Style preferences
+
+ // If constructor names must be capitalized.
+ "newcap": true,
+ // If empty blocks should be disallowed.
+ "noempty": false,
+ // If using `new` for side-effects should be disallowed.
+ "nonew": false,
+ // If names should be checked for leading or trailing underscores
+ // (object._attribute would be disallowed).
+ "nomen": false,
+ // If only one var statement per function should be allowed.
+ "onevar": false,
+ // If increment and decrement (`++` and `--`) should not be allowed.
+ "plusplus": false,
+ // If all forms of subscript notation are tolerated.
+ "sub": true,
+ // If trailing whitespace rules apply.
+ "trailing": true,
+ // If strict whitespace rules apply.
+ "white": false,
+ // Specify indentation.
+ "indent": 4
+}
+
View
@@ -3,8 +3,6 @@
* Licensed under the MIT license.
*/
-'use strict';
-
var util = require('util'),
events = require('events');
View
@@ -3,8 +3,6 @@
* Licensed under the MIT license.
*/
-'use strict';
-
var util = require('util'),
events = require('events');
View
@@ -3,8 +3,6 @@
* Licensed under the MIT license.
*/
-'use strict';
-
var util = require('util'),
events = require('events');
View
@@ -3,8 +3,6 @@
* Licensed under the MIT license.
*/
-'use strict';
-
var WaitForMultiple = require('./multiple');
function parseTimeoutAndEventName(args) {
View
@@ -7,15 +7,15 @@
"devDependencies": {
"nodeunit": "0.7",
"sinon": "1.3",
- "jslint": "0.1"
+ "jshint": "0.7"
},
"repository": {
"type": "git",
"url": "https://github.com/MathieuTurcotte/node-wait.git"
},
"scripts": {
"prepublish": "node_modules/nodeunit/bin/nodeunit tests/",
- "pretest": "node node_modules/jslint/bin/jslint.js --white lib/*.js",
+ "pretest": "node_modules/jshint/bin/hint lib/*",
"test": "node_modules/nodeunit/bin/nodeunit tests/"
}
}

0 comments on commit 2335966

Please sign in to comment.