sst / ion

SST v3
https://sst.dev
MIT License
1.88k stars 221 forks source link

Proposal: add prettier-ignore to sst-env.d.ts #521

Open paolostyle opened 3 months ago

paolostyle commented 3 months ago

I'm a new SST user and still trying to figure out how things work, but it seems like sst-env.d.ts is recreated whenever I run sst dev. However, the formatting is off compared to how Prettier is configured in my project. I can see that eslint-disable is already there, so would it be possible to also add /* prettier-ignore */ there so that it won't continuously appear in changed files? Everyone could add that file to .prettierignore but I'd argue the tool is popular enough to warrant this kind of comment.

thdxr commented 3 months ago

would it be better to run prettier on these files when generated?

paolostyle commented 3 months ago

If it used the project settings - for sure, sounds even better to me.