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

Add action to lint JS files using lint-js script #71

Merged
merged 6 commits into from
Dec 23, 2021

Conversation

mitogh
Copy link
Member

@mitogh mitogh commented Dec 23, 2021

Fixes #62

Adds an action to lint JS files only using wp-scripts.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

@mitogh Great work! Only left a few small comments that should be quick to resolve.

- trunk
# Only run if JS/JSON/Lint/NVM files changed.
paths:
- '.github/workflows/js-css-lint-test.yml'
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be adjusted to the file name here js-lint.yml.

- '.github/workflows/js-css-lint-test.yml'
- '**.js'
- '**.json'
- '**.scss'
Copy link
Member

Choose a reason for hiding this comment

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

Probably not necessary to include .scss files here since this is exclusively for JS linting?

- trunk
# Only run if JS/JSON/Lint/NVM files changed.
paths:
- '.github/workflows/js-css-lint-test.yml'
Copy link
Member

Choose a reason for hiding this comment

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

See above.

- '.github/workflows/js-css-lint-test.yml'
- '**.js'
- '**.json'
- '**.scss'
Copy link
Member

Choose a reason for hiding this comment

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

See above.

"resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.2.1-beta-1.tgz",
"integrity": "sha512-+JHkqs9LC/JPp51yy1hzs3lQ7qeuWCwOcSzpQNeeY/G7oSpnF61vxt7hRh87zNRTr6ob2ndy0W8rVzhgrcA+Gw==",
"dev": true
},
Copy link
Member

Choose a reason for hiding this comment

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

This seems like an unrelated, system-specific update? Can you revert that?

@mitogh mitogh requested a review from felixarntz December 23, 2021 15:36
@felixarntz felixarntz added [Type] Enhancement A suggestion for improvement of an existing feature Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release labels Dec 23, 2021
Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Great!

@felixarntz felixarntz merged commit ddc9f94 into WordPress:trunk Dec 23, 2021
@mitogh mitogh deleted the ticket/62-gh-action-lint-js branch December 23, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement GitHub action to lint JS
2 participants