IQSS / dataverse-client-javascript

A Dataverse client for JavaScript and TypeScript
MIT License
15 stars 8 forks source link

58 - Automatically reformat code #126

Closed MellyGray closed 6 months ago

MellyGray commented 7 months ago

What this PR does / why we need it:

This PR adds the automatic formatting to the repo using some pre-commit configurations. The pre-commits include:

  1. Running the formatter
  2. Running a typescript check to check the types
  3. Fix all linter errors
  4. Run the tests and check the coverage (95%)

A part from that:

Which issue(s) this PR closes:

Special notes for your reviewer:

There are a lot of changes, but these are just formatting changes so they shouldn't affect the features.

Suggestions on how to test this:

  1. Visual inspection of the code
  2. Make a change to the source code in your local environment and commit the change to check that the pre-commit checks are running as expected
  3. Uncommit the test commit
GPortas commented 6 months ago

@MellyGray Can you please resolve conflicts?

Please, do not prioritize this PR if you have other pending feature-related issues, which should be our focus for the community day.

MellyGray commented 6 months ago

@GPortas merge conflicts resolved

One question, should we merge this PR here to fix the markdown library?

GPortas commented 6 months ago

@MellyGray

Yes, I just accepted and merged the PR. Can you please resolve the conflicts?

MellyGray commented 6 months ago

@GPortas did you ran npm install to install the pre-commit package?

GPortas commented 6 months ago

@MellyGray I missed that step, thanks!