DEV Community

Discussion on: Supercharge Your Svelte: Top Tips for Clean Code

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

A warning here: Your proposed file arrangement contradicts that of SvelteKit, and I would say that people will prefer SvelteKit's.

It seems that you might be talking about non-SvelteKit Svelte projects, maybe like the ones we can create using npm create vite@latest. If that's the case, I think you should be explicit about it. Still, it wouldn't hurt if you followed SvelteKit's file arrangement and use the lib folder as a starting point. This way the experience is more familiar.

Just my $0.02. Cheers.

Collapse
 
uncle_ben profile image
Ben ltaif

Hello ,
I'm delighted to read your comment
Indeed, I'm talking about Svelte, not SvelteKit. Thank you for your comment, I'll take it into account and don't hesitate if you have any other comments.
Have a nice day!