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

style: update @automattic/eslint-plugin-wpvip to 0.8.0 and apply style fixes #1538

Merged
merged 5 commits into from
Nov 1, 2023

Conversation

sjinks
Copy link
Member

@sjinks sjinks commented Nov 1, 2023

Description

  • chore(dev-deps): update @automattic/eslint-plugin-wpvip to 0.8.0
  • style: apply style fixes

Fixes are automated, npx eslint --ext 'js,jsx,ts,tsx' . --fix

Steps to Test

CI should pass.

@sjinks sjinks self-assigned this Nov 1, 2023
Comment on lines -289 to +284
const fileErrors = results.failureDetails?.fileErrors;
if ( !! fileErrors && fileErrors.length > 0 ) {
const fileErrors = results.failureDetails?.fileErrors ?? [];
if ( fileErrors.length > 0 ) {
Copy link
Member Author

Choose a reason for hiding this comment

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

The new ESLint rules converted !! fileErrors into Boolean(fileErrors) and that caused TypeScript to complain.

@sjinks sjinks requested a review from abdullah-kasim November 1, 2023 04:36
Copy link
Contributor

@abdullah-kasim abdullah-kasim left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢

@sjinks sjinks merged commit 55e3570 into trunk Nov 1, 2023
9 checks passed
@sjinks sjinks deleted the update/eslint-config-wpvip branch November 1, 2023 15:01
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