diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000000000..24ffae674 --- /dev/null +++ b/.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 +} \ No newline at end of file diff --git a/index.js b/index.js index a30383e0e..a1f02521a 100644 --- a/index.js +++ b/index.js @@ -1 +1,3 @@ +"use strict"; + module.exports = require('./lib/soap'); diff --git a/package.json b/package.json index ef9f54508..c53469644 100644 --- a/package.json +++ b/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" } }