Browse Source

adding jshintignore and jshintrc, pre commit hook js lint

pull/49/head
Harish Krishna 10 years ago
parent
commit
bfa7fa8cec
  1. 1
      .jshintignore
  2. 21
      .jshintrc
  3. 2
      package.json

1
.jshintignore

@ -0,0 +1 @@
node_modules

21
.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
}

2
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"

Loading…
Cancel
Save