-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
New Rule: no-unused-vars
#1
Comments
And if (foo > 0) { // don't mark `foo` as used
assert(bar > 0); // don't mark `bar` as used
} |
@mysticatea don't allow assert as the only value inside an if/alternative body. |
While you can of course add rules as you wish, you might want to consider https://github.com/onechiporenko/eslint-plugin-mocha-cleanup/ as a home for such a rule, as it already has rules regarding assertions. (https://github.com/ihordiachenko/eslint-plugin-chai-friendly and https://github.com/Turbo87/eslint-plugin-chai-expect might perhaps be open to it, but they are currently confined to |
I want to prevent marking references inside of
assert()
as used.The text was updated successfully, but these errors were encountered: