Skip to content

Commit 4b4c35c

Browse files
author
mhfrantz
committed
Add lint support.
1 parent 70257ee commit 4b4c35c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: .jshintrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// .jshintrc
2+
// Global configuration defaults for the jshint tool.
3+
{
4+
"node": true,
5+
"globalstrict": false,
6+
"indent": 2,
7+
"expr": true,
8+
"globals": {
9+
"expect": true,
10+
"describe": true,
11+
"it": true,
12+
"xit": true,
13+
"before": true,
14+
"after": true
15+
}
16+
}

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"test": "test"
88
},
99
"scripts": {
10+
"lint": "jshint lib test",
1011
"test": "mocha"
1112
},
1213
"repository": {
@@ -30,6 +31,7 @@
3031
"homepage": "https://github.com/mhfrantz/gremlin-graphviz",
3132
"devDependencies": {
3233
"gremlin-v3": "0.0.2",
34+
"jshint": "^2.5.10",
3335
"mocha": "^2.0.1"
3436
}
3537
}

0 commit comments

Comments
 (0)