Skip to content

Commit b3fe91a

Browse files
antonisclaude
andcommitted
fix(core): Migrate remaining eslint-disable comments and fix glob pattern
- Convert 3 stale eslint-disable comments for no-unnecessary-type-assertion to oxlint-disable format (touchevents.tsx, nativelinkederrors.ts) - Fix override glob "*.tsx" → "**/*.tsx" for consistency with other overrides Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1a51e28 commit b3fe91a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/core/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
}
115115
},
116116
{
117-
"files": ["*.tsx"],
117+
"files": ["**/*.tsx"],
118118
"rules": {
119119
"jsdoc/require-jsdoc": "off"
120120
}

packages/core/src/js/integrations/nativelinkederrors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function walkErrorTree(
101101
} else if (isInstanceOf(linkedError, Error)) {
102102
exception = exceptionFromError(parser, error[key]);
103103
} else if (isPlainObject(linkedError)) {
104-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
104+
// oxlint-disable-next-line typescript-eslint(no-unnecessary-type-assertion)
105105
const plainError = linkedError as Record<string, unknown>;
106106
exception = {
107107
type: typeof plainError.name === 'string' ? plainError.name : undefined,

packages/core/src/js/touchevents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ function getLabelValue(props: Record<string, unknown>, labelKey: string | undefi
313313
? props[SENTRY_LABEL_PROP_KEY]
314314
// For some reason type narrowing doesn't work as expected with indexing when checking it all in one go in
315315
// the "check-label" if sentence, so we have to assign it to a variable here first
316-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
316+
// oxlint-disable-next-line typescript-eslint(no-unnecessary-type-assertion)
317317
: typeof labelKey === 'string' && typeof props[labelKey] == 'string' && (props[labelKey] as string).length > 0
318-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
318+
// oxlint-disable-next-line typescript-eslint(no-unnecessary-type-assertion)
319319
? (props[labelKey] as string)
320320
: undefined;
321321
}

0 commit comments

Comments
 (0)