-
Notifications
You must be signed in to change notification settings - Fork 47k
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
[flow] make Flow suppressions explicit on the error #26487
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 |
---|---|---|
|
@@ -80,7 +80,6 @@ beforeEach(() => { | |
} | ||
|
||
const originalConsoleError = console.error; | ||
// $FlowFixMe | ||
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. Is there a flowconfig to fail on unused suppressions? Would be nice to continuously remove unused suppressions instead of having to remove them manually. 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. Two things here:
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.
Right. Might have similar issues with eslint-disable directives |
||
console.error = (...args) => { | ||
const firstArg = args[0]; | ||
if ( | ||
|
@@ -111,7 +110,6 @@ beforeEach(() => { | |
originalConsoleError.apply(console, args); | ||
}; | ||
const originalConsoleWarn = console.warn; | ||
// $FlowFixMe | ||
console.warn = (...args) => { | ||
if (shouldIgnoreConsoleErrorOrWarn(args)) { | ||
// Allows testing how DevTools behaves when it encounters console.warn without cluttering the test output. | ||
|
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.
And we should probably also start failing lint on unused suppressions because that is unneeded as of #26479