Skip to content

Commit

Permalink
Update jshintrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Nov 2, 2016
1 parent c9c2df0 commit 91808ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@
// read, albeit a bit less exciting)
"laxcomma": false,

// Do NOT allow avant garde use of commas in conditional statements.
// (this prevents accidentally writing code like:
// ```
// if (!_.contains(['+ci', '-ci', '∆ci', '+ce', '-ce', '∆ce']), change.verb) {...}
// ```
// See the problem in that code? Neither did we-- that's the problem!)
"nocomma": true,

// Strictly enforce the consistent use of single quotes.
// (this is a convention that was established primarily to make it easier
// to grep [or FIND+REPLACE in Sublime] particular string literals in
Expand Down

0 comments on commit 91808ce

Please sign in to comment.