Skip to content

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

Merged
dkotter merged 3 commits intodevelopfrom
fix/eslint
Oct 18, 2023
Merged

Install a different version of eslint-plugin-prettier only in our eslint Action#25
dkotter merged 3 commits intodevelopfrom
fix/eslint

Conversation

@dkotter
Copy link
Copy Markdown
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 a team, dsawardekar and jeffpaul as code owners October 18, 2023 19:41
Copy link
Copy Markdown
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
@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