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

chore: use wordpress eslint plugin #128

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

dustin-jw
Copy link
Contributor

Description

Closes #127

To Validate

  1. Make sure all PR Checks have passed
  2. Pull down this branch
  3. Run npm ci
  4. Run npm run generate:custom-blocks-plugin, then npm run generate:custom-block to create a test block that we can check our linting rules against
  5. Run npm run lint:js and confirm that it runs successfully (it should report an error if your view.js has a console.log statement)
  6. Delete type definitions or otherwise make changes to the generated JS files that should cause linting errors
  7. Confirm that npm run lint:js reports the expected errors

- install wordpress eslint plugin
- use recommended WP rules (minus formatting)
- include type definitions in generator
@dustin-jw dustin-jw force-pushed the chore--wordpress-eslint-plugin branch from dc71c03 to 9407056 Compare October 31, 2023 20:29
@dustin-jw dustin-jw merged commit 9407056 into main Oct 31, 2023
@dustin-jw dustin-jw deleted the chore--wordpress-eslint-plugin branch October 31, 2023 20:30
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.

Extend eslint with @wordpress/eslint-plugin rules
2 participants