We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-unused-vars
export default function foo(a) { assert(a > 0); // do something without a. }
I want to prevent marking references inside of assert() as used.
assert()
The text was updated successfully, but these errors were encountered:
And if statements for assertion are the same.
if
if (foo > 0) { // don't mark `foo` as used assert(bar > 0); // don't mark `bar` as used }
Sorry, something went wrong.
@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 expect and should)
expect
should
chore(CI): simplify testing strategy (mysticatea#1)
23f619e
mysticatea
No branches or pull requests
I want to prevent marking references inside of
assert()
as used.The text was updated successfully, but these errors were encountered: