Skip to content

Commit c92bc05

Browse files
committedSep 28, 2013
Linting stuff.
1 parent 79b8aae commit c92bc05

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed
 

‎.jshintrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"node": true,
3+
"esnext": true,
4+
"bitwise": true,
5+
"camelcase": true,
6+
"curly": true,
7+
"eqeqeq": true,
8+
"immed": true,
9+
"indent": 4,
10+
"latedef": true,
11+
"newcap": false,
12+
"noarg": true,
13+
"quotmark": "single",
14+
"undef": true,
15+
"unused": "vars",
16+
"strict": true,
17+
"trailing": true,
18+
"noarg": true,
19+
"nonew": true,
20+
"maxlen": 110,
21+
"white": true
22+
}

‎package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"main": "./lib/main",
1212
"scripts": {
13-
"test": "nodeunit tests/"
13+
"test": "nodeunit tests/",
14+
"lint": "jshint -c .jshintrc lib/* tests/*"
1415
},
1516
"licenses": [
1617
{
@@ -22,6 +23,7 @@
2223
"contextify": ">=0.1.6"
2324
},
2425
"devDependencies": {
25-
"nodeunit": "*"
26+
"nodeunit": "*",
27+
"jshint": "2.1.11"
2628
}
2729
}

0 commit comments

Comments
 (0)
Please sign in to comment.