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!: default for enforceForClassMembers in no-useless-computed-key #18054

Merged
merged 4 commits into from Feb 2, 2024

Conversation

fasttime
Copy link
Member

Prerequisites checklist

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

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

Fixes #18042

What changes did you make? (Give an overview)

This PR changes the default value of the enforceForClassMembers option in the no-useless-computed-key rule to true.

Since this is a breaking change in v9, I've updated the migration guide.

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

@eslint-github-bot eslint-github-bot bot added breaking This change is backwards-incompatible feature This change adds a new feature to ESLint labels Jan 30, 2024
Copy link

netlify bot commented Jan 30, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 50263bb
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/65bbd237ac48c50008dec725
😎 Deploy Preview https://deploy-preview-18054--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.

@fasttime fasttime added rule Relates to ESLint's core rules accepted There is consensus among the team that this change meets the criteria for inclusion labels Jan 30, 2024
@fasttime fasttime marked this pull request as ready for review January 30, 2024 21:01
@fasttime fasttime requested a review from a team as a code owner January 30, 2024 21:01
@Tanujkanti4441
Copy link
Contributor

Tanujkanti4441 commented Jan 31, 2024

Can you also add To address section in the migration guide to tell the user how previous behavior can be retained?

@Tanujkanti4441
Copy link
Contributor

issue #12048 is also about no-useless-computed-key rule, how about cover it too in this PR, if @mdjermanovic confirms that the behavior of the rule is correct.

@mdjermanovic
Copy link
Member

issue #12048 is also about no-useless-computed-key rule, how about cover it too in this PR, if @mdjermanovic confirms that the behavior of the rule is correct.

I think it should be a separate PR as it isn't related to this option.

@nzakas
Copy link
Member

nzakas commented Jan 31, 2024

Folks: please remember to move PRs through the triage board:
https://eslint.org/docs/latest/maintain/manage-issues#when-an-issue-or-pull-request-is-opened

fasttime and others added 2 commits January 31, 2024 20:50
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
@mdjermanovic
Copy link
Member

There are merge conflicts in the migration guide now.

Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM when merge conflicts are fixed.

@fasttime
Copy link
Member Author

fasttime commented Feb 1, 2024

The merge conflicts are fixed.

Copy link
Member

@mdjermanovic mdjermanovic 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!

@mdjermanovic mdjermanovic merged commit 3c4d51d into main Feb 2, 2024
18 checks passed
@mdjermanovic mdjermanovic deleted the fix-18042 branch February 2, 2024 00:24
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 feature This change adds a new feature to ESLint rule Relates to ESLint's core rules
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Rule Change: Change default for no-useless-computed-key's enforceForClassMembers option to true
4 participants