Permalink
Browse files

Use .jshintrc, and add lint script.

  • Loading branch information...
1 parent a736a02 commit 9adcb0676b8aeb6647cbcebbfff891cb793bd022 @domenic committed Jun 6, 2012
Showing with 19 additions and 13 deletions.
  1. +16 −0 .jshintrc
  2. +0 −3 lib/Publisher.js
  3. +0 −3 lib/emitter.js
  4. +0 −3 lib/listenerHelpers.js
  5. +0 −3 lib/pubit.js
  6. +3 −1 package.json
View
@@ -0,0 +1,16 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "nonew": true,
+ "trailing": true,
+ "undef": true,
+ "white": true,
+ "es5": true,
+ "strict": true,
+ "node": true,
+ "indent": 4
+}
View
@@ -1,6 +1,3 @@
-/*jshint
- curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, nonew: true, trailing: true,
- undef: true, white: true, es5: true, globalstrict: true, node: true */
"use strict";
var dict = require("dict");
View
@@ -1,6 +1,3 @@
-/*jshint
- curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, nonew: true, trailing: true,
- undef: true, white: true, es5: true, globalstrict: true, node: true */
"use strict";
function isHash(unknown) {
View
@@ -1,6 +1,3 @@
-/*jshint
- curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, nonew: true, trailing: true,
- undef: true, white: true, es5: true, globalstrict: true, node: true */
"use strict";
exports.throttledListener = function (aggregateListener, waitingPeriod, asap) {
View
@@ -1,6 +1,3 @@
-/*jshint
- curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, nonew: true, trailing: true,
- undef: true, white: true, es5: true, globalstrict: true, node: true */
"use strict";
exports.Publisher = require("./Publisher");
View
@@ -22,7 +22,8 @@
},
"main": "./lib/pubit.js",
"scripts": {
- "test": "mocha"
+ "test": "mocha",
+ "lint": "jshint --show-non-errors lib"
},
"engines": {
"node": "*"
@@ -31,6 +32,7 @@
"dict": "1"
},
"devDependencies": {
+ "jshint": ">= 0.7.1",
"coffee-script": ">= 1.3.3",
"mocha": ">= 1.1.0",
"chai": ">= 1.0.4",

0 comments on commit 9adcb06

Please sign in to comment.