Permalink
Browse files

Adding jshint for index.js

  • Loading branch information...
1 parent e51fd64 commit 43243c2401bc26a731c64a0782b90e1d4c26fae7 @jsdevel jsdevel committed Jan 23, 2014
Showing with 27 additions and 2 deletions.
  1. +20 −0 .jshintrc
  2. +2 −0 index.js
  3. +5 −2 package.json
View
@@ -0,0 +1,20 @@
+{
+ "bitwise":false,
+ "boss":true,
+ "expr":true,
+ "camelcase":false,
+ "curly":false,
+ "eqeqeq":true,
+ "freeze":true,
+ "immed":true,
+ "indent":2,
+ "latedef":"nofunc",
+ "laxbreak":true,
+ "laxcomma":true,
+ "newcap":true,
+ "noarg":true,
+ "node":true,
+ "strict": true,
+ "trailing":true,
+ "undef":true
+}
View
@@ -1 +1,3 @@
+"use strict";
+
module.exports = require('./lib/soap');
View
@@ -19,7 +19,9 @@
"lib": "./lib"
},
"scripts": {
- "test": "mocha -R spec -u exports test/*-test.js"
+ "mocha": "mocha -R spec -u exports test/*-test.js",
+ "jshint" : "jshint index.js",
+ "test": "npm run-script jshint && npm run-script mocha"
},
"keywords": [
"soap"
@@ -31,6 +33,7 @@
}
],
"devDependencies": {
- "mocha": "~1.17.0"
+ "mocha": "~1.17.0",
+ "jshint": "~2.4.2"
}
}

0 comments on commit 43243c2

Please sign in to comment.