Skip to content

Instantly share code, notes, and snippets.

@jimfleming
Created June 25, 2014 17:14
Show Gist options
  • Save jimfleming/fa839432839179b7ad13 to your computer and use it in GitHub Desktop.
Save jimfleming/fa839432839179b7ad13 to your computer and use it in GitHub Desktop.
--- 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