-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
space-before-function-paren #12234
Comments
@aochsner thank you for opening this issue. The functionality for formatting is provided by TS Server. I will migrate this feature request to their repo. |
Hi team, I met the same problem, this made me so sad, I have to format my code in command line tools since the build-in formatter will change |
So I have gotten around this issue a little bit by turning on: in my settings. |
@aochsner yeah, you approach works fine for me, thanks. |
PRs welcomed. |
Happy to take a stab... can you point me in the right direction? |
The formatting logic resides in Also see our CONTRIBUTING.md. |
Adding option InsertSpaceBeforeFunctionParenthesis Should be optional Typically used to support http://eslint.org/docs/rules/space-before-function-paren Fixes microsoft#12234
Okay. I added a couple more test cases for InsertSpaceBeforeFunctionParenthesis. Found InsertSpaceAfterFunctionKeywordForAnonymousFuctions to cover that case. Added InsertSpaceAfterConstructor to handle that case. That should cover the main cases that http://eslint.org/docs/rules/space-before-function-paren enforces. Let me know what else should be done. Thanks! |
thanks @aochsner! |
From @aochsner on November 11, 2016 22:19
We use space-before-function-paren in our eslint rules for readability. I'd like an option to format to this behavior
Steps to Reproduce:
function foo () { }
function foo() { }
with no mechanism to overrideCopied from original issue: microsoft/vscode#15386
The text was updated successfully, but these errors were encountered: