question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Space before function arguments (space-after-function) (space-after-named-function)

See original GitHub issue

There should be flag to force a space before the function arguments like this:

function foo (bar, baz) {
    // …
}

maybe: {"space_before_arguments": true}

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:13
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

13reactions
zekidacommented, Mar 17, 2017

+1 i do really hope this gets some more attention as ‘javascript standard style’ is getting more popular.

8reactions
lironesscommented, Mar 12, 2017

--space-after-named-function is a good name

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code - space before function parentheses - Stack Overflow
In VS Code open File -> Preferences -> Settings; Add to your JSON config: "javascript.format.insertSpaceBeforeFunctionParenthesis": true.
Read more >
space-after-function-name - ESLint - Pluggable JavaScript Linter
This rule aims to enforce a consistent spacing after function names. It takes one argument. If it is "always" then all function names...
Read more >
js-beautify | Yarn - Package Manager
... doesn't work with anon async functions (#1034); Space before function arguments (space-after-function) (space-after-named-function) (#608) ...
Read more >
website/node_modules/js-beautify/CHANGELOG.md - Rdrr.io
... doesn't work with anon async functions (#1034); Space before function arguments (space-after-function) (space-after-named-function) (#608) ...
Read more >
Prettier Function Parenthesis Spacing - Opinionated is Key
Before ESLint + Prettier const myFunc = function() { //... } // After formatting const myFunc ... Space After Function – Prettier 2.0....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found