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

[eslint-plugin] feat: no-deprecated-components rule #5343

Merged
merged 6 commits into from
Jun 6, 2022

Conversation

styu
Copy link
Contributor

@styu styu commented Jun 1, 2022

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Adds an ESLint rule that flags particular deprecated blueprint components and recommends their v2 versions instead

Reviewers should focus on:

What other components am I missing?

Screenshot

@styu styu requested a review from adidahiya June 1, 2022 19:59
@blueprint-bot
Copy link

add more tests

Previews: documentation | landing | table | demo


export class MyClass extends BP.AbstractComponent {
}
class MyClass2 extends BP.AbstractComponent {}
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like two errors should be expected here instead of just one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm.. it passes both if i pass 1 error or 2 errors below 🤔

@styu styu marked this pull request as ready for review June 6, 2022 14:05
@blueprint-bot
Copy link

add more components, PR comments

Previews: documentation | landing | table | demo

@blueprint-bot
Copy link

update docs

Previews: documentation | landing | table | demo

@adidahiya
Copy link
Contributor

thanks @styu!

@adidahiya adidahiya changed the title Add ESLint rule to error on deprecated component usage [eslint-plugin] feat: no-deprecated-components rule Jun 6, 2022
@adidahiya adidahiya merged commit 11fc8e1 into develop Jun 6, 2022
@adidahiya adidahiya deleted the syu/no-deprecated-components-rule branch June 6, 2022 20:09
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.

None yet

3 participants