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

Install a different version of eslint-plugin-prettier only in our eslint Action #25

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

dkotter
Copy link
Collaborator

@dkotter dkotter commented Oct 18, 2023

Description of the Change

In order to get eslint to run, we had to install a newer version of eslint-plugin-prettier in #20. The only problem here is to make this work, you have to use a force install. I don't mind doing this as part of an Action but realized anyone installing this locally would have to do the same.

This PR fixes this by only installing that dependency in our eslint Action.

How to test the Change

Can see a commit with no JS changes that passed here: https://github.com/10up/block-catalog/pull/25/checks?sha=948cd4fef8f25012bd5f7825434f13d62fc8691b

Can see a commit with an error in a JS file that triggered the check here: https://github.com/10up/block-catalog/pull/25/checks?sha=a5e73388a5330f63032eaf3b62ff245c253dfc7c

Changelog Entry

None needed

Credits

Props @dkotter

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

… us to always do a force install. Instead install this in our eslint action
@dkotter dkotter added this to the 1.5.1 milestone Oct 18, 2023
@dkotter dkotter marked this pull request as ready for review October 18, 2023 19:41
@dkotter dkotter requested review from jeffpaul, dsawardekar and a team as code owners October 18, 2023 19:41
Copy link
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

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

YOLO

@dkotter dkotter merged commit ce518f2 into develop Oct 18, 2023
2 checks passed
@dkotter dkotter deleted the fix/eslint branch October 18, 2023 19:44
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