Skip to content

Commit

Permalink
Use a jshintrc that makes jshint more compatible with closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wiseman committed Dec 28, 2012
1 parent a64b14d commit 1543017
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ deps: ${MAVELOUS_DEPS_TARGET}

lint:
-gjslint --unix_mode --strict ${JS_SRCS}
-jshint ${JS_SRCS}
-jshint --config=jshintrc ${JS_SRCS}

lintfix:
fixjsstyle --strict ${JS_SRCS}
Expand Down
7 changes: 7 additions & 0 deletions jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// Tolerate all forms of subscript notation besides dot notation
// e.g. `dict['key']` instead of `dict.key`.
"sub": true,
"expr": true
}

0 comments on commit 1543017

Please sign in to comment.