Skip to content

Commit 383a1a3

Browse files
committed
Add JSHint support.
Add package.json with check and lint commands to run jshint using .jshintrc.
1 parent dab02a5 commit 383a1a3

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/npm-debug.log

.jshintrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"bitwise": true,
3+
"browser" : true,
4+
"camelcase": true,
5+
"curly": true,
6+
"eqeqeq": true,
7+
"indent": 4,
8+
"jquery" : true,
9+
"latedef": true,
10+
"maxerr": 50,
11+
"noarg": true,
12+
"node" : true,
13+
"noempty": true,
14+
"plusplus": false,
15+
"regexp": true,
16+
"strict": false,
17+
"trailing": true,
18+
"unused": true
19+
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"scripts": {
3+
"check": "jshint .",
4+
"lint": "jshint ."
5+
}
6+
}

0 commit comments

Comments
 (0)