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

More tests #95

Merged
merged 5 commits into from
Aug 23, 2022
Merged

More tests #95

merged 5 commits into from
Aug 23, 2022

Conversation

mskelton
Copy link
Member

Adds more tests, specifically around property access allowing the plugin to detect the following patterns:

page["$eval"]() // no-eval
test.describe[`only`]() // no-focused-test

While not common, it makes the plugin rules more complete and allows fewer false positives. Inspired from the Jest plugin which checks the same patterns. Since most of this is in the AST helpers, it doesn't increase overhead when writing rules.

@mskelton mskelton merged commit 3a92710 into main Aug 23, 2022
@mskelton mskelton deleted the more-tests branch August 23, 2022 20:08
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