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

Fix failing eslint tests #407

Merged
merged 11 commits into from
Mar 10, 2023
Merged

Fix failing eslint tests #407

merged 11 commits into from
Mar 10, 2023

Conversation

dkotter
Copy link
Collaborator

@dkotter dkotter commented Mar 10, 2023

Description of the Change

Updates our linting action to run npm run lint:js, which in turn runs wp-scripts lint-js. This ensures we have more accurate linting done in this action.

Also cleaned up a few things in the eslint action like:

  • updating a few actions
  • adding caching
  • only run eslint and phpcs linting when we have files that need it

Finally this PR cleans up all existing eslint errors.

How to test the Change

Verify the eslint action is passing on this PR.

Changelog Entry

Not sure this even needs to go in our changelog

Fixed - resolved some eslint issues

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.

…ew other things in the Action, like updating various Actions and adding in caching
@dkotter dkotter self-assigned this Mar 10, 2023
@dkotter dkotter marked this pull request as ready for review March 10, 2023 21:01
@dkotter dkotter requested review from jeffpaul and a team as code owners March 10, 2023 21:01
@jeffpaul jeffpaul added this to the 1.9.0 milestone Mar 10, 2023
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.

Looks good, thanks for fixing all this up!

@jeffpaul jeffpaul merged commit 01bc73a into develop Mar 10, 2023
@jeffpaul jeffpaul deleted the fix/eslint-fails branch March 10, 2023 21:36
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