Created
October 1, 2014 18:39
-
-
Save markelog/bf9059f816d366c552c8 to your computer and use it in GitHub Desktop.
new approach to jscs config
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
{ | |
codeBlocks: { | |
curlyBraces: { | |
operators: true || [], | |
expect: [ "return", "break" ] | |
}, | |
newlineBefore: { | |
statements: true, | |
expect: [ "for..of", "for" ] | |
} | |
}, | |
binaryOperators: { | |
spacesAround: [ | |
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", | |
"&=", "|=", "^=", "+=", | |
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&", | |
"|", "^", "&&", "||", "===", "==", ">=", | |
"<=", "<", ">", "!=", "!==" | |
], | |
noSpacesAround: [ ",", ":" ], | |
}, | |
// or | |
binaryOperators: { | |
spacesAround: true || { | |
value: [] || true, | |
except: [] | |
}, | |
noSpacesAround true || { | |
value: [] || true, | |
except: [] | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment