-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JSCS support #436
Add JSCS support #436
Conversation
Yes, see jscs-dev/node-jscs#89 (comment) |
OK, I updated the patch, please check the rules and ping me :) |
/cc @connor |
"disallowMixedSpacesAndTabs": true, | ||
"disallowMultipleLineStrings": true, | ||
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], | ||
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add !
perhaps?
@cvrebert: I added both changes, they make sense. |
"requireRightStickedOperators": ["!"], | ||
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], | ||
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], | ||
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also add the additional comparison operators here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol just added them, was about to push it :P
👍 |
Backported from Bootstrap, adapted for Ratchet.
Also remove the duplicate ones from .jshintrc.
Close #280.
/CC @cvrebert
Not sure how to make JSCS happy with the unary add. Any ideas?