Georgii Dolzhykov

Results 297 comments of Georgii Dolzhykov

https://github.com/prettier/prettier/blob/main/CONTRIBUTING.md#tests

Can be reproduced on the playground with `--embedded-language-formatting off`: **Prettier 2.7.1** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAeAJgSwG4D4A6UAFMMEkgAQCGNtd99AdAEatvsceNg+9--9G6YSNFixFAL6SAlIVQB6LHkIgANCAgAHGJmgBnZKCoAnExADuABVMJDKKgBsLVAJ6GNzE1TABrODAAylQAtnAAMphQcMgAZk76cJ7efgGBWj5RAObIMCYArkkgcCHMcMLl4VRQWflUWXAAYhAmIVQwujXImrGx6iAAFjAhjgDqA5jw+hlgcIF2kziTrt1g+h4gUYkmMFbeWW1xCUUAVvoAHoHZjnAAivkQ8EeOiRoZJtvd1bWOpv1aJiiMFGmHQMAGyAAHAAGN7mRKjbxaboAuDbbAxDQARwe8D22nsICo+gAtNFyuV+iY4DjMNS9vVDkh4i8iokQphcgU2dc7riYszjhoYFRmCCwRCkAAmYXeTCObIAYQgISZxX0AFZ+vlEgAVUX2FmvEDYQoASSg6AQQTAgJ0AEFLYEYK4bs9EtIgA) ```sh --parser angular --embedded-language-formatting off ``` **Input:** ```html ({{:: aaaaaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbb.cccccccccccccccccccc.dddddddddddddddddddd }}) ``` **Output:** ```html ({{:: aaaaaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbb.cccccccccccccccccccc.dddddddddddddddddddd }})...

It's the `trim` module used by remark that causes that. Patching that module to use the native `trim` method fixes this issue.

Yes, I just edited that module directly in node_modules and the issue was gone

This is still a bug though, and it should be fixed by updating remark

@phaux To solve this, I'd recommend running `organize-imports-cli` before Prettier as a pre-commit hook (e.g. using `lint-staged`).

How exactly does what I wrote prevent you all from running Prettier on save?

Ah, I see now. You don't realize that I was answering to a specific comment (https://github.com/prettier/prettier/issues/5995#issuecomment-557749716). If the problem is "organize imports and Prettier are fighting each other", then the...

The message contains the file names. What else do you need to run Prettier on those files? `¯\_(ツ)_/¯`