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

Use the same eslint config as API #5

Merged
merged 5 commits into from
Jun 21, 2024
Merged

Use the same eslint config as API #5

merged 5 commits into from
Jun 21, 2024

Conversation

jmoseley
Copy link
Contributor

Copy link
Member

@EvanBoyle EvanBoyle left a comment

Choose a reason for hiding this comment

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

Fix also runs formatting? Or just fixes warnings?

Can we run the formatter in CI and then run a git command to fail the workflow if the branch is dirty?

@jmoseley
Copy link
Contributor Author

jmoseley commented Jun 20, 2024

To be able to get that behaviour, they recommend using prettier. I can get that hooked up here and in the API.

@EvanBoyle
Copy link
Member

I do think having a minimal set of shared formatting rules enforced in CI is a good idea. I don't really care what the formatting is, I'd just like for it to be minimally opinionated and automatically enforced. mainly just want PRs to be only related to the core logic that is changing and to not have to include formatting changes, which having some CI automation should enforce.

@jmoseley
Copy link
Contributor Author

I totally agree. I'm personally a fan of prettier, and it integrates smoothly with vscode.

@jmoseley
Copy link
Contributor Author

@EvanBoyle what do you think of that?

@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will prompt devs to install the plugin.

@EvanBoyle
Copy link
Member

@EvanBoyle what do you think of that?

🚢

@jmoseley jmoseley merged commit f5a9dda into main Jun 21, 2024
2 checks passed
@jmoseley jmoseley deleted the jeremy/lint branch June 21, 2024 03:33
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.

2 participants