Hi Ovilia, I think it’s a good idea to use auto formatting tools which can prevent whitespace changes/quote changes in PRs.
I would suggest approach a which makes source code immediately benefit from auto formatting. And it should not really spoil git-blame if it happens in only one commit and with clear commit message, especially when the community is broadly familiar with conventional commit message. Readers would go git-blame and find "this line was updated by the commit style: format code with prettier" and realize they should go for previous commits. Doma > 在 2022年6月6日,15:21,Ovilia <oviliazh...@gmail.com> 写道: > > Hi, > > I would like to know if you think using auto-formatting tools like prettier > is a good idea. > The pros are pretty clear: It helps formatting the code in a uniformed > style without our consideration. > > But for the current code that doesn't follow the style rules, we can choose > a. Fix all the code styles once in a single PR > b. Fix the code styles in a file when it is changed in a future PR > > If we choose plan a, the last change of most lines would be this PR and > lose the help of "git blame". > If we choose plan b, for many times the project would have different styles > over different files and many of future PRs will have styling changings > which make the PR a little harder to review. > > So I would like to know if you think the help from auto-formatting tools is > worth the price and which plan we should take for historical styling > problems. > > Thanks > > *Ovilia* > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org