fisker Cheung
179943ccba
Update @babel/parser to v7.6.3 ( #6386 )
...
* fix flow_function_parentheses
* fix directives
* fix classes
* fix flow_method
* fix `do`
* fix `decorators`
* fix `comments_closure_typecast`
* fix `comments`
* fix `flow_internal_slot`
* fix `flow_comments`
* fix `flow_type_declarations`
* fix `flow_type_spread`
* fix `functional_composition`
* fix `multiparser_js_css`
* fix `no-semi`
* fix `objects`
* fix `template`
* fix `yield`
* update `flow_method` snap
* fix `empty_paren_comment`
* fix `mdx`
* fix `object_property_comment`
* Update `@babel/parser`
* Update @babel/parser to v7.6.2
* Update yarn.lock
* fix `nullish_coalescing` test
* fix `flow_class_field` test
* fix snapshot
* @babel/parser v7.6.3
* fix tests
* update snap
2019-10-09 14:52:11 +03:00
Jaiden Gerig
0799280429
Fixed unstable comment between function declaration and block statement ( #5250 )
2018-11-01 21:55:33 +02:00
Lucas Azzola
23f7e92162
Handle comments between function name and open paren ( #2979 )
2017-10-06 20:07:58 +11:00
Christopher Chedeau
c63e21b52b
Do not put parens for single argument with end of line comment ( #1518 )
...
Fixes #1517
2017-05-05 21:44:42 -07:00
Christopher Chedeau
042e603a6e
Fix arrow function parenthesis with comments in flow ( #1339 )
...
`leadingComment` and `trailingComment` are babylon-specific, we should use `comments` which is what prettier adds.
Fixes #1335
2017-04-19 10:43:31 -07:00
Davy Duperron
b32ace8934
Fix function declaration params comments ( #802 )
...
* Add new handleFunctionDeclarationComments function.
* Add dangling comments printing for function params.
* Add new test case.
* Update tests.
* Refactor handleFunctionDeclarationComments to only addDanglingComment when no params.
* Remove unecessary helper function, only attach dangling comments when no params.
* Reset flow tests, no more regression.
2017-02-24 07:26:30 -08:00