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

Adding a pull request action to lint files. #219

Merged
merged 17 commits into from
May 11, 2022

Conversation

ryanwelcher
Copy link
Contributor

Part of #172, this PR introduces a pull request action to lint all files.

@ryanwelcher ryanwelcher requested a review from gziolo May 11, 2022 14:26
Comment on lines +22 to 23
"eslint-plugin-prettier": "^4.0.0",
"prettier": "npm:wp-prettier@2.2.1-beta-1"
Copy link
Member

@gziolo gziolo May 11, 2022

Choose a reason for hiding this comment

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

It's super annoying we need to add them explicitly 😞

I had to do the same trick in my personal projects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, maybe this is just part of the best practice until we can use the standard prettier 😞

Copy link
Member

Choose a reason for hiding this comment

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

maybe we should also allow * for prettier when configuring it as a peer dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like this - "prettier": "npm:wp-prettier@*"?

Copy link
Member

Choose a reason for hiding this comment

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

Not here, in Gutenberg if that’s possible.

@ryanwelcher ryanwelcher mentioned this pull request May 11, 2022
5 tasks
@@ -0,0 +1,28 @@
name: Static Linting

on: [pull_request]
Copy link
Member

Choose a reason for hiding this comment

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

Should it also trigger when merged to the main branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not a bad idea, I'll add it before merging. Thanks!

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Looks great and everything passes. Let’s investigate Node.js 18 separately.

@ryanwelcher ryanwelcher merged commit 8e20a00 into trunk May 11, 2022
@ryanwelcher ryanwelcher deleted the try/static-linting-action branch May 11, 2022 18:40
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