Permalink
Browse files

Add nocomma: true to project jshintrc.

  • Loading branch information...
1 parent 9c9561e commit c3d52fba323f3eef415265ed2c7582f5fa1e591b @mikermcneil mikermcneil committed Oct 15, 2016
Showing with 8 additions and 0 deletions.
  1. +8 −0 .jshintrc
View
@@ -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

1 comment on commit c3d52fb

@mikermcneil
Member

If you happen to be using Sublime Text 2, see also https://gist.github.com/mikermcneil/ecab44d2dcee1351024d94821d65cbe4

Please sign in to comment.