Skip to content
New issue

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

Issue with comment inside property chain #644

Open
fvictorio opened this issue Feb 10, 2022 · 2 comments
Open

Issue with comment inside property chain #644

fvictorio opened this issue Feb 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@fvictorio
Copy link
Member

As reported by @wighawag:

This

game.
// CONFIG
config.resolveWindow = 1000;
config.defaultDelay = 0;

gets re-written as:

game.config.resolveWindow = 1000;
// CONFIG
config.defaultDelay = 0;

This seems like a PITA to fix, and I'm not even sure what the "correct" result should be.

@Janther
Copy link
Contributor

Janther commented Jul 14, 2022

I believe this should be formatted as

// CONFIG
game.config.resolveWindow = 1000;
config.defaultDelay = 0;

Will give this a look.

@fvictorio
Copy link
Member Author

fvictorio commented Jul 15, 2022

Agree, that's what prettier does for the same code in javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants