pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
468 stars 79 forks source link

Format code pre-commit and prettier #124

Closed azmeuk closed 2 years ago

azmeuk commented 2 years ago

As there is no pull-request pending, I think this is the perfect time for this kind of patches. This PR uses prettier to format the js, css, yaml, ts and svelte codes. It adds a npm run prettier target to manually format the code. There is also a github action that checks that the style is correct.

I have no strong ideas on details (how long lines should be, indent with 2 or 4 spaces). I let you decide @pstanoev. What do you think?