prettier-plugin-solidity
prettier-plugin-solidity copied to clipboard
Issue with comment inside property chain
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.
I believe this should be formatted as
// CONFIG
game.config.resolveWindow = 1000;
config.defaultDelay = 0;
Will give this a look.
Agree, that's what prettier does for the same code in javascript.