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

CI: Fail on ESLint warnings #1840

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Aug 28, 2024

Description of proposed changes

Configure ESLint to fail on any number of warnings. This better surfaces warnings on PR checks.

I considered putting this in the ESLint config file (.eslintrc.yaml), however it cannot be configured there and there are no plans to support that behavior¹.

¹ eslint/eslint#16804 (comment)

Related issue(s)

Closes #1839

Checklist

@victorlin victorlin self-assigned this Aug 28, 2024
@victorlin victorlin changed the title Fail on ESLint warnings CI: Fail on ESLint warnings Aug 28, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-ci-fa-pkcxs4 August 28, 2024 20:51 Inactive
@victorlin victorlin marked this pull request as ready for review August 28, 2024 20:53
package.json Outdated Show resolved Hide resolved
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

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

I'd suggest waiting for #1838 to be merged before this one

Configure ESLint to fail on any number of warnings. This better surfaces
warnings on PR checks.

I considered putting this in the ESLint config file (.eslintrc.yaml),
however it cannot be configured there and there are no plans to support
that behavior¹.

¹ eslint/eslint#16804 (comment)
@victorlin victorlin force-pushed the victorlin/ci-fail-on-lint-warnings branch from add2778 to 81bee2f Compare August 28, 2024 21:19
@victorlin victorlin temporarily deployed to auspice-victorlin-ci-fa-pkcxs4 August 28, 2024 21:19 Inactive
@victorlin victorlin merged commit a045771 into master Aug 28, 2024
22 of 26 checks passed
@victorlin victorlin deleted the victorlin/ci-fail-on-lint-warnings branch August 28, 2024 22:23
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.

CI: Should warnings should cause the lint job to fail?
4 participants