We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Private fields in JS classes use # as part of the identifier name. When beautifying the initial declaration, this library puts it on the wrong line.
#
The code looked like this before beautification:
class X { #__private = null; }
The code should have looked like this after beautification:
The code actually looked like this after beautification:
class X { # __private = null; }
OS: Windows Language: Python
Example:
{ "indent_size": 4, "indent_char": " ", "indent_level": 0, "indent_with_tabs": false, "preserve_newlines": true, "max_preserve_newlines": 2, "jslint_happy": false, "space_after_anon_function": false, "brace_style": "collapse,preserve-inline", "keep_array_indentation": false, "keep_function_indentation": false, "space_before_conditional": true, "break_chained_methods": false, "eval_code": false, "unescape_strings": false, "wrap_line_length": 0 }
The text was updated successfully, but these errors were encountered:
So what's the solution for this?
Sorry, something went wrong.
PR #1735 fixed it and it is released.
Successfully merging a pull request may close this issue.
Description
Private fields in JS classes use
#
as part of the identifier name. When beautifying the initial declaration, this library puts it on the wrong line.Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Environment
OS: Windows
Language: Python
Settings
Example:
The text was updated successfully, but these errors were encountered: