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

fix!: configuration comments with just severity should retain options #17945

Merged
merged 2 commits into from Jan 3, 2024

Conversation

mdjermanovic
Copy link
Member

@mdjermanovic mdjermanovic commented Jan 2, 2024

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[x] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

Fixes #17381

What changes did you make? (Give an overview)

Updated Linter to align the behavior of /* eslint */ rule configuration comments with the way rule configs are merged in the config array. In particular, a configuration comment with only severity should retain options from the config.

Is there anything you'd like reviewers to focus on?

I updated the v9 migration guide, but this should be also described somewhere in the documentation. However, the part that explains how rule configs are merged doesn't seem to exist in the new docs for flat config. I'll open a separate issue for this.

@mdjermanovic mdjermanovic requested a review from a team as a code owner January 2, 2024 23:47
@eslint-github-bot eslint-github-bot bot added breaking This change is backwards-incompatible bug ESLint is working incorrectly labels Jan 2, 2024
Copy link

netlify bot commented Jan 2, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 00d6b6f
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/6594a13b96f8fa000810ce48
😎 Deploy Preview https://deploy-preview-17945--docs-eslint.netlify.app/use/migrate-to-9.0.0
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdjermanovic mdjermanovic added core Relates to ESLint's core APIs and features accepted There is consensus among the team that this change meets the criteria for inclusion labels Jan 2, 2024
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

I'll leave it open for others to review

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM.

@nzakas nzakas merged commit 51f8bc8 into main Jan 3, 2024
17 checks passed
@nzakas nzakas deleted the issue17381 branch January 3, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion breaking This change is backwards-incompatible bug ESLint is working incorrectly core Relates to ESLint's core APIs and features
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Bug: Comment directives with just severity overrides options
3 participants