typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
393 stars 74 forks source link

build: enable Prettier formatting #209

Open arturovt opened 2 months ago

arturovt commented 2 months ago

This commit enables Prettier formatting to maintain a consistent code style across the entire codebase. It's now a community standard and easy to use with tools like Husky, which set up Git hooks to run formatting before actions such as git commit.

There are no functional changes in this commit, only stylish updates to the formatting.

I enabled single quotes because they are widely used and even recommended by large technology companies. For example, you can find a link to Google's JavaScript style guide at https://google.github.io/styleguide/jsguide.html#features-strings-use-single-quotes