-
Notifications
You must be signed in to change notification settings - Fork 22
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
no-loose-assertions
and many other rules don't work in arrow functions
#213
Comments
no-loose-assertions
doesn't work in arrow functionsno-loose-assertions
& no-assert-ok
don't work in arrow functions
edg2s
added a commit
to edg2s/eslint-plugin-qunit
that referenced
this issue
Nov 2, 2021
Both of these rules use utils.createAssertionCheck, which only checks for non-arrow functions. Fixes qunitjs#213
edg2s
added a commit
to edg2s/eslint-plugin-qunit
that referenced
this issue
Nov 2, 2021
no-loose-assertions
& no-assert-ok
don't work in arrow functionsno-loose-assertions
and many other rules don't work in arrow functions
The full list of affected rules:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Config
Code
The above should trigger a
no-loose-assertions
error, but it doesn't unless the arrow function is converted to a real function.The text was updated successfully, but these errors were encountered: