Skip to content

Fix: Fix false negatives and reporting location in require-meta-type rule #155

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 1 commit into from
Jul 7, 2021

Conversation

bmish
Copy link
Member

@bmish bmish commented Jul 6, 2021

  • Fixes false negatives
  • Improves the reporting location

create(context) {}
};
`,
errors: [{ messageId: 'unexpected', type: 'Identifier' }],
Copy link
Member Author

Choose a reason for hiding this comment

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

This test case was valid before (false negative).

create(context) {}
};
`,
errors: [{ messageId: 'unexpected', type: 'Identifier' }],
Copy link
Member Author

Choose a reason for hiding this comment

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

This test case was valid before (false negative).

@bmish bmish force-pushed the require-meta-type-fixes branch from 91b39c7 to e55981d Compare July 6, 2021 23:00
@bmish bmish changed the title Fix: Improve static analysis in require-meta-type rule Fix: Fix false negatives and reporting location in require-meta-type rule Jul 6, 2021
Copy link
Contributor

@aladdin-add aladdin-add 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! 💯

@aladdin-add aladdin-add merged commit 7c0d1d0 into eslint-community:master Jul 7, 2021
@bmish
Copy link
Member Author

bmish commented Jul 7, 2021

@aladdin-add thanks! Several other rules have the same problems so I'll be submitting more PRs in the next few days.

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