-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(lint): Rule adjustments and fix warnings #19612
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
Changes from all commits
f5135e7
a722d54
b1d889a
cef9a25
03031d0
41b258d
ab2b8d2
355ad20
7cf7e2c
d840f01
74d86ff
b8f68dd
903df65
fe828c5
1e954ab
e953478
d3c7bad
96a4f31
52179c4
3fcaf65
dbf0ee5
e3b9475
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 |
|---|---|---|
|
|
@@ -102,7 +102,7 @@ async function run() { | |
| }, | ||
| ], | ||
| }); | ||
| } catch (error) { | ||
| } catch { | ||
| // Expected error | ||
| } | ||
| }); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -573,7 +573,6 @@ type StartEventName = | |
| | 'loadEvent'; | ||
|
|
||
| type EndEventName = | ||
| | 'connectEnd' | ||
|
Member
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. m: Why did we remove
Member
Author
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. It shows up again in line 581, so its literally duplicated 😆 It's just outside the diff window |
||
| | 'domainLookupStart' | ||
| | 'domainLookupEnd' | ||
| | 'unloadEventEnd' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,10 +85,6 @@ function log(...args: Parameters<typeof console.log>): void { | |
| _maybeLog('log', ...args); | ||
| } | ||
|
|
||
| function info(...args: Parameters<typeof console.info>): void { | ||
| _maybeLog('info', ...args); | ||
| } | ||
|
Comment on lines
-88
to
-90
Member
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. m: Was
Member
Author
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. Weirdly not, because it was never exported unlike it's friends, so no module had a way of using it. Happy to put it back and slap an ignore on it.
Member
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. If it's unused let's remove it :) I was just surprised |
||
|
|
||
| function warn(...args: Parameters<typeof console.warn>): void { | ||
| _maybeLog('warn', ...args); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -95,6 +95,7 @@ export function prepareEvent( | |||||||||
| ]; | ||||||||||
|
|
||||||||||
| // Skip event processors for internal exceptions to prevent recursion | ||||||||||
| // oxlint-disable-next-line typescript/prefer-optional-chain | ||||||||||
| const isInternalException = hint.data && (hint.data as { __sentry__: boolean }).__sentry__ === true; | ||||||||||
|
Comment on lines
+98
to
99
Member
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. super-l: since we're type-casting anyway already, we could simpify this to
Suggested change
which might cut down bundle size ever so slightly? Again, feel free to disregard
Member
Author
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. This rule is a bit buggy it threw me off, yep I can do this! |
||||||||||
| const result = isInternalException | ||||||||||
| ? resolvedSyncPromise(prepared) | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.