Pana / nrm

NPM registry manager, fast switch between different registries: npm, cnpm, nj, taobao
MIT License
2.82k stars 253 forks source link

[Style] How to format code #189

Open chouchouji opened 4 hours ago

chouchouji commented 4 hours ago

Question

I found that I can't format code when I am working for #188. I try to format code(my default formatter is prettier), one of the results is that single quotes are turned into double quotes. So, I want to know the way of formating code. Thanks !

Link

https://github.com/user-attachments/assets/76440088-54e6-4cdb-9ddb-77d91edeab07

iosh commented 3 hours ago

I thinks this project is lack configuration for code format, I suggest that #188 only format the modified code, and then we can ad a format configuration for the project ,and format all code.

chouchouji commented 3 hours ago

I thinks this project is lack configuration for code format, I suggest that #188 only format the modified code, and then we can ad a format configuration for the project ,and format all code.

Thanks for your reply. I only format the modified code like other for that pr. What format configuration do you want to add? Prettier?

iosh commented 2 hours ago

Prettier is OK, Do you want PR for this ?

chouchouji commented 2 hours ago

Prettier is OK, Do you want PR for this ?

Yes, I will submit a pr today.