-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Space after function keyword in anonymous functions #3847
Copy link
Copy link
Closed
Labels
lang:flowIssues affecting Flow-specific constructs (not general JS issues)Issues affecting Flow-specific constructs (not general JS issues)lang:javascriptIssues affecting JSIssues affecting JSlang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Milestone
Metadata
Metadata
Assignees
Labels
lang:flowIssues affecting Flow-specific constructs (not general JS issues)Issues affecting Flow-specific constructs (not general JS issues)lang:javascriptIssues affecting JSIssues affecting JSlang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
NOTE: This issue is raised due to confusion in #1139.
This issue is only about anonymous functions:
(Prettier currently does not put a space there.)
The key argument is:
Consistency: This means that there's always a space after the
functionkeyword.