Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add code formatting #13

Merged
merged 6 commits into from Oct 30, 2022
Merged

chore: Add code formatting #13

merged 6 commits into from Oct 30, 2022

Conversation

jbuget
Copy link
Contributor

@jbuget jbuget commented Oct 29, 2022

🔧 Problem

There is no formatting rules clearly defined.
It makes it hard to contribute.
Some code changes can be avoid, making code review easier.

🍰 Solution

Add Prettier and .editorconfig file.

Add 2 npm dev tasks :

  • format:check
  • format:write

Include format:check to CI "Test" job.

🚨 Points of interest

If any, details what are the edge cases, or any additional topics to share about.

🏝️ How to test

Check that the 2 formatting tasks work.
Check that checks are taken into account by GHA.

based on #4 from @flemzord (thanks ❤️ ❤️ ❤️)

@@ -8,7 +8,7 @@ on:
name: Main
jobs:
Test:
name: 'Test'
name: 'Lint & test'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to separate it into 2 different jobs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitated. Ok. I do it.

@jbuget jbuget changed the title Chore add code formatting chore: Add code formatting Oct 30, 2022
}
return proxy.web(req, res, { target });
}
return proxy.web(req, res, { target: upstream });

Check failure

Code scanning / CodeQL

Server-side request forgery

The [URL](1) of this request depends on [a user-provided value](2).
@jbuget jbuget merged commit 7c96cd9 into main Oct 30, 2022
@jbuget jbuget deleted the chore-add-code-formatting branch October 30, 2022 15:29
@jbuget jbuget mentioned this pull request Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants