Conversation
grunt/.jshintrc
Outdated
There was a problem hiding this comment.
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:
camelcaseto JSCSrequireCamelCaseOrUpperCaseIdentifierstrailingto JSCSdisallowTrailingWhitespacelaxbreakto JSCS"requireOperatorBeforeLineBreak": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],immedto JSCSrequireParenthesesAroundIIFE