Open rhuanbarreto opened 2 months ago
@rhuanbarreto The next version of moon will try and preserve the indentation, so will probably help a lot in this scenario.
Ok try 1.27!
Still not working fully. For some parts it worked.
After prettier:
do the files formatting get changed every time you run a task? it should only happen if we determine the content needs to change.
Only if you change the file.
Is your feature request related to a problem? Please describe.
When you run
moon ci
, it automatically runsmoon sync projects
for you so the tsconfig and package json files are in sync. The problem is that doing this will make linters like prettier fail due to formatting changes.Describe the solution you'd like
I would like to have a config in toolchain.yaml that allows me to run a post-sync task that would format the files automatically.
Describe alternatives you've considered
For now CI/Checks would fail and you would need to fix it manually.