News for hackers. Stuff that matters.
Re:How I made a website with Svelte by sergiotapia on Saturday December 28, 2019 @12:35PM (#21900251)
Tried Svelte and it seemed really concise and fun to work on, however I really miss being able to format on save with Prettier in React.

Is there an auto formatter that makes my code shift around and have one-true-style? This is a most for any long lived project as it avoid all bikeshedding discussions about style. We use Prettier for JS, and mix format for Elixir, at work.

Re:How I made a website with Svelte by pakpoi on Saturday December 28, 2019 @01:08PM (#21900519)
There is a plugin for prettier[1] and for eslint[2]. Both work reasonably well. I hear there is good support for VSCode, but I haven't tried.

[1] https://github.com/UnwrittenFun/prettier-plugin-svelte [2] https://github.com/sveltejs/eslint-plugin-svelte3

Re:How I made a website with Svelte by daliusd on Saturday December 28, 2019 @03:02PM (#21901356)
Prettier works with Svelte as well. Here are some hints how to use that with Vim https://blog.ffff.lt/posts/vim-and-svelte/