Skip to content

Commit 2eccbd6

Browse files
committed
use jshint
1 parent e2f27f3 commit 2eccbd6

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

package.json

+25-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,34 @@
88
},
99
"main": "./index.js",
1010
"scripts": {
11-
"test": "node tests/test.js"
11+
"test": "node tests/test.js && jshint *.js"
1212
},
1313
"dependencies": {},
14-
"devDependencies": {},
14+
"devDependencies": {
15+
"jshint": "2"
16+
},
1517
"optionalDependencies": {},
1618
"engines": {
1719
"node": "*"
1820
},
19-
"license": "BSD-like"
20-
}
21+
"license": "BSD-like",
22+
"jshintConfig": {
23+
"eqeqeq": true,
24+
"freeze": true,
25+
"latedef": "nofunc",
26+
"noarg": true,
27+
"nonbsp": true,
28+
"quotmark": "double",
29+
"undef": true,
30+
"unused": true,
31+
"trailing": true,
32+
"eqnull": true,
33+
"proto": true,
34+
"smarttabs": true,
35+
"node": true,
36+
"globals": {
37+
"describe": true,
38+
"it": true
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)