Closed brgrz closed 3 years ago
@brgrz You can run your formatter to adjust for your semicolon preference no?
If I'm not missing something VS Code only gives option to insert semicolons in JS projects with TS installed and in actual TS projects. Routify template is neither..
A .prettierrc
file with
{
"semi": true
}
will add the semis for you. I'm pretty sure other formatters will too if you don't like prettier.
😉
thanks
You're actually right I don't use Prettier but Beautify which doesn't have the option to manipulate semis :)
So I guess I'm off to svelte template and use the method of adding Routify to existing app, then?
If you just want a blank starter, you can delete the example folder and you'd only need to add a few semis to App, Layout, and Fallback files.
Not counting the example folder, it seems only _fallback.svelte
and index.svelte
are missing semis.
I used the auth template, there are a bit more of them.
@brgrz You could always add the missing semi-colons and then make a pr
@ghostdevv that probably wouldn't get merged. I really dislike semi-colons. 😅
I think the best option is to run a CLI formatter after cloning the template.
@jakobrosenberg that's fair enough, there really isn't a need for them in most of it. That is a good idea (the cli formatter)
I'm sure there's a one-liner somewhere along the (madeup) lines of npx prettier --semi false src/**
.
Something like this maybe? idk https://www.npmjs.com/package/pretty-quick (npx don't work for me with this)
My eyes hurt due to all the missing semicolons. What's the guidance on this?