Open davestewart opened 4 months ago
Usually I use const instead of function, but I guess it is personal. I can't promise the code will stay in your style forever (in case I start maintaining again in the future) lol but while you are working, sure, absolutely, go for it. I have no problem. Make as much changes as you want. I welcome every addition.
Totally expected you to say "no way"... so, thanks!
I'll worry about it after the next set of PRs.
Thanks again!
For me the semicolon helps, last time I tried without a few years ago I had many issues. Maybe some were solved, maybe all were solved. Nowadays I just write the code and do command+l to format, prettier auto-adds the semicolon for me, so I almost never have to worry about it. But if you have zero issues, zero bugs, never had a problem, go for it. Vercel doen't use them, shadcn/ui also doesn't, as long as it works fine, feel free.
Hey @bernaferrari,
I wanted to raise this as I've been working a lot with the code, but how would you feel about moving to the Standard coding style?
The major changes / benefits are...
Single rather than double quotes
SHIFT
key)No semicolons:
Also, prefer functions to function expressions:
function
is start of line vs() =>
at end of linelet
,const
,type
,interface
,function
, ...async
is start of line vs middle of lineIf you're warm to the idea, I could set up the linter to
--fix
the existing code so it wouldn't take any time to get going.LMK!