Skip to content

[Lint] Fix findValueNodeOfIdentifier - take into account valueNode can be false #1492

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

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

[Lint] Fix findValueNodeOfIdentifier - take into account that valueNode initial value is false (related to isRequired)

Changelog

[Lint] Fix findValueNodeOfIdentifier - take into account that valueNode initial value is false (related to isRequired)

{
options: ruleOptions,
code: 'import {Picker} from \'module-with-deprecations\'; <Picker t="title" s="subtitle" migrate/>',
errors: [
Copy link
Collaborator

Choose a reason for hiding this comment

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

If that's a valid example why the error? (Same for the next entry)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

10x, copy paste mistake, wonder why it's not failing the tests; removed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not failing the tests because these are valid scenarios and the tests don't need this key...

@M-i-k-e-l M-i-k-e-l requested a review from Inbal-Tish August 25, 2021 15:49
@Inbal-Tish Inbal-Tish merged commit bb27d96 into master Aug 26, 2021
@M-i-k-e-l M-i-k-e-l deleted the lint/fix-find-value-node-related-to-required-prop branch October 4, 2021 08:03
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.

2 participants