Created
June 25, 2014 17:14
-
-
Save jimfleming/fa839432839179b7ad13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/Users/jfleming/Documents/jsfmt/examples/styleGuide.js | |
+++ b/var/folders/xc/lj44vzbd7bgf72wxhktr0f240000gp/T/tmp-66660d8xy3n4.tmp | |
@@ -28,8 +28,8 @@ | |
var anotherFun = function(a, b, c) { | |
// TODO: Should wrap to one line or indent properly | |
return a == "a" || | |
- b == "b" || | |
- c == "c"; | |
+ b == "b" || | |
+ c == "c"; | |
}; | |
var myObj = { | |
@@ -58,7 +58,7 @@ | |
} else if (that) { | |
then(this); | |
- // TODO: This `else` comment should align with the subsequent statement | |
+ // TODO: This `else` comment should align with the subsequent statement | |
} else { | |
console.error("Wat?"); | |
} | |
@@ -94,11 +94,11 @@ | |
// TODO: Indent call args if wrapped | |
callFunc( | |
- 'An arg', | |
- 'Another arg', | |
- [ | |
- 'Some final args' | |
- ] | |
+ 'An arg', | |
+ 'Another arg', | |
+ [ | |
+ 'Some final args' | |
+ ] | |
); | |
// TODO: Indent in-line with `if` or don't wrap object expression inside conditional | |
@@ -110,10 +110,10 @@ | |
// TODO: Should indent to same level as `var` | |
var nestedObjects = [{ | |
- a: true | |
+ a: true | |
}, { | |
- a: false | |
- }]; | |
+ a: false | |
+ }]; | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment