From bfa7fa8cecae646a3f9c91d13a0ca96bbb6f0c5b Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Tue, 2 Dec 2014 11:38:38 -0500 Subject: [PATCH] adding jshintignore and jshintrc, pre commit hook js lint --- .jshintignore | 1 + .jshintrc | 21 +++++++++++++++++++++ package.json | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 .jshintignore create mode 100644 .jshintrc 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"