X-lab2017 / open-leaderboard

OpenLeaderboard
https://open-leaderboard.x-lab.info
21 stars 23 forks source link

feat: enable prettier to keep code formatted in same rulse #61

Closed wj23027 closed 1 year ago

wj23027 commented 1 year ago

Brief Information

Related issues:

Details

tyn1998 commented 1 year ago

Hi @wj23027, I pulled your code and had a test. More specificly, I ran npm install then npm run prettier. Then one file was changed:

image

I thought this might be the reason for the error you just mentioned in 229? The error may not be concerned with the quotation but capitalization.

Could you run npm run prettier again in your machine? What will be the result?

wj23027 commented 1 year ago

You’re right!After running npm run prettieragain, the case of the text has changed.

tyn1998 commented 1 year ago

Just commit and push, I'll approve your PR then :)