Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding jshint for index.js

  • Loading branch information...
commit 43243c2401bc26a731c64a0782b90e1d4c26fae7 1 parent e51fd64
@jsdevel jsdevel authored
Showing with 27 additions and 2 deletions.
  1. +20 −0 .jshintrc
  2. +2 −0  index.js
  3. +5 −2 package.json
View
20 .jshintrc
@@ -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
2  index.js
@@ -1 +1,3 @@
+"use strict";
+
module.exports = require('./lib/soap');
View
7 package.json
@@ -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"
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.