-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Switch to JSCS #12853
Switch to JSCS #12853
Conversation
"node" : true, | ||
"nonbsp" : true, | ||
"strict" : true, | ||
"trailing" : true, |
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.
going away in JSHint 3: jscs-dev/node-jscs#102
@mikesherov: thanks for chiming in. I will replace those with the JSCS counterparts tomorrow. |
Currently, tests fail due to the I also went ahead and used the same target files as JSHint for JSCS to reduce duplication. |
Right. If you don't care about where the operators go, use no rule (which is the equivalent of laxbreak). Glad JSCS was able to provide a bit of extra checking for you :) |
Btw, indentation checks for chained function calls is something we intend on adding the next JSCS. Would you be interested in this check? Just want to gauge priority. |
@mikesherov: thanks for all your feedback! I just kept Improving the checks for chained function calls would be something we could use, but I don't think it's important. I mean, there are so many more important issues on the JSCS issue tracker :) @mdo @cvrebert: Feel free to comment on the PR so that we merge it. |
LGTM. |
Since JSHint plans to remove the style changes come v3, or move them to plugins, and we already use JSCS, I guess it makes sense to use that for the current checks.
Thanks to @mikesherov for working on fixing the issues we had upstream!
/CC @cvrebert @mdo
TODO:
camelcase
to JSCSrequireCamelCaseOrUpperCaseIdentifiers
trailing
to JSCSdisallowTrailingWhitespace
laxbreak
to JSCS"requireOperatorBeforeLineBreak": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
immed
to JSCSrequireParenthesesAroundIIFE