diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/.jshintignore @@ -0,0 +1 @@ +node_modules diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 00000000..eabec8cd --- /dev/null +++ b/.jshintrc @@ -0,0 +1,21 @@ +{ + "node": true, + "curly": true, + "eqeqeq": true, + "freeze": true, + "immed": true, + "indent": 2, + "latedef": false, + "newcap": true, + "noarg": true, + "noempty": true, + "nonbsp": true, + "nonew": true, + "plusplus": false, + "quotmark": "single", + "undef": true, + "unused": false, + "maxparams": 4, + "maxdepth": 4, + "maxlen": 140 +} diff --git a/package.json b/package.json index 6ef30cc1..46c326df 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,8 @@ }, "devDependencies": { "ciao": "^0.3.4", + "jshint": "^2.5.6", + "precommit-hook": "^1.0.7", "tape": "^2.13.4", "tap-spec": "^0.2.0", "nsp": "^0.3.0"