Closed pmcelhaney closed 8 years ago
Given a function declaration:
function foo() { return 'bar'; }
I want to add a space between the function name and the parentheses.
function foo () { return 'bar'; }
Is there a configuration that would allow me to do that now? Here's what I've tried:
"esformatter": { "whitespace": { "before": { "ParameterList": 1 } } }
If the code doesn't support such a setting now, any ideas on how to add it? I poked around the code and it looks like it may have something to do with FunctionDeclaration.js, Params.js, or both.
Or how would I go about writing a plugin?
the setting that you are looking for is whiteSpace.after.FunctionName = 1
whiteSpace.after.FunctionName = 1
Given a function declaration:
I want to add a space between the function name and the parentheses.
Is there a configuration that would allow me to do that now? Here's what I've tried:
If the code doesn't support such a setting now, any ideas on how to add it? I poked around the code and it looks like it may have something to do with FunctionDeclaration.js, Params.js, or both.