-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update for eslint v8 #29
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,10 @@ export default createRule({ | |
messages: { | ||
noSkip: "Do not use the `.skip` hook." | ||
}, | ||
type: "suggestion", | ||
type: "problem", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A suggestion needs to also provide a suggestion array - at least if I understood the docs correctly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not run into this error about suggestions when I worked on the update to |
||
docs: { | ||
description: | ||
"Don't allow `test.skip` or `fixture.skip` to be added to the repository", | ||
category: "Best Practices", | ||
recommended: "warn" | ||
}, | ||
schema: [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for the e2e test - jest objectContaining will return an any. I did not find a way around it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the example.serial-test.ts changes in commit [7840c91] of the release/v2.0 branch, I used a type-cast since that is the only way to override
jest
's poor decision to explicitly returnany
rather than a generic.https://github.com/testcafe-community/eslint-plugin-testcafe-community/blob/release/v2.0/tests/example.serial-test.ts