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

feat: avoid empty config warning #153

Merged
merged 2 commits into from
Feb 12, 2025
Merged

feat: avoid empty config warning #153

merged 2 commits into from
Feb 12, 2025

Conversation

mdjermanovic
Copy link
Member

As of v9.20.0, ESLint emits a warning when the config file exports an empty array.

This PR updates the output to export [{}] instead of [] when the config file is intentionally empty as the result of answers (e.g., eslint/eslint#19044 (comment)) in order to avoid the warning.

Copy link
Member

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM~

@aladdin-add aladdin-add merged commit 2a75349 into main Feb 12, 2025
12 checks passed
@aladdin-add aladdin-add deleted the empty-config branch February 12, 2025 10:03
@github-actions github-actions bot mentioned this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants