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

chore(lint): unite eslint rules #2691

Merged
merged 4 commits into from
Oct 8, 2024
Merged

chore(lint): unite eslint rules #2691

merged 4 commits into from
Oct 8, 2024

Conversation

fshovchko
Copy link
Contributor

Closes #2689
Even though original thought was to have only a single rule for each version, but it turned out to be incorrect from user's perspective. Pretty much we have 3 different rule cases:

  • Deprecated paths (not auto fixable)
  • Deprecated methods (auto fixable)
  • Deprecated alias (auto fixable)
    If we combine all of them into one, there might be a case where the user has only path error. Since we declare our new combined rule as auto fixable, it will misinform user about us automatically fixing his problem. Which is false information.

That's why it was decided to only combine alias rules into one + refactor other rules to accept array of rule cases

@fshovchko fshovchko added the needs review The PR is waiting for review label Sep 30, 2024
@fshovchko fshovchko requested a review from a team September 30, 2024 19:45
@fshovchko fshovchko self-assigned this Sep 30, 2024
Copy link

codeclimate bot commented Sep 30, 2024

Code Climate has analyzed commit f05e7ca and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 65.3% (0.0% change).

View more on Code Climate.

Copy link
Collaborator

@ala-n ala-n left a comment

Choose a reason for hiding this comment

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

Please rebase the changes from the main-beta branch or branch mentioned in the ticket.
The code here looks to be outdated and not compatible with ESLint 9

@fshovchko fshovchko changed the base branch from main to main-beta October 2, 2024 07:20
@fshovchko fshovchko closed this Oct 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2024
@fshovchko fshovchko reopened this Oct 2, 2024
@fshovchko fshovchko requested review from ala-n, a team, dshovchko and NastaLeo and removed request for a team October 2, 2024 08:50
eslint-plugin/README.md Outdated Show resolved Hide resolved
eslint-plugin/README.md Outdated Show resolved Hide resolved
eslint-plugin/README.md Outdated Show resolved Hide resolved
eslint-plugin/README.md Outdated Show resolved Hide resolved
eslint-plugin/src/core/deprecated-alias.ts Outdated Show resolved Hide resolved
eslint-plugin/src/rules/4/deprecated.class-methods.ts Outdated Show resolved Hide resolved
@fshovchko fshovchko requested a review from ala-n October 2, 2024 16:00
@ala-n ala-n merged commit 08e4ba6 into main-beta Oct 8, 2024
7 checks passed
@ala-n ala-n deleted the chore/unite-eslint-rules branch October 8, 2024 21:57
@ala-n
Copy link
Collaborator

ala-n commented Oct 21, 2024

🎉 This PR is included in version 5.0.0-beta.37 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs review The PR is waiting for review released on @beta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🔧 eslint-plugin]: get rid from multiple granular rules in ESLint plugin
4 participants