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
Port JSCS rules for: requireSpacesInFunction, etc. #6099
Comments
Thank you for this issue. Is space-before-blocks rule not enough? |
Wow.. I thought I had checked all the rules. I guess I hadn’t – I can indeed use that rule for this specific use case. Closing my issue. |
FYI: There is a table to identify gap between JSCS and ESLint: #5856 (comment) |
Thanks so much for feedback and help. Would you also have any idea about the progress of #4680? It’s the last rule for our company’s requirements. There doesn’t seem to be a good way to port the rules for code like this:
|
I'm not sure. |
Yes, that was exactly my concern. If |
When does this rule warn? Please describe and show example code:
The rule allows enforcing or preventing spaces after function parens and before curly bracers. Currently it’s possible to control the space between keyword and parenthesis (
function ()
), but not after keyword+parenthesis. Examples:Is this rule preventing an error or is it stylistic?
Stylistic
Why is this rule a candidate for inclusion instead of creating a custom rule?
Compatibility with JSCS:
Are you willing to create the rule yourself?
The text was updated successfully, but these errors were encountered: