Skip to content

Commit bd221b2

Browse files
Copilothotlong
andcommitted
Fix ESLint errors: Replace @ts-ignore with @ts-expect-error
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a2bd8a3 commit bd221b2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cli/src/utils/app-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ import {
622622
} from '@object-ui/components';
623623
624624
const DynamicIcon = ({ name, className }) => {
625-
// @ts-ignore
625+
// @ts-expect-error - Dynamic icon lookup from Lucide icons
626626
const Icon = LucideIcons[name];
627627
if (!Icon) return null;
628628
return <Icon className={className} />;

packages/plugin-form/src/ObjectForm.msw.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { setupServer } from 'msw/node';
77
import { http, HttpResponse } from 'msw';
88
import { registerAllFields } from '@object-ui/fields';
99
import React from 'react';
10-
// @ts-ignore - Import from examples
10+
// @ts-expect-error - Import from examples
1111
import { ContactObject } from '../../../examples/crm/src/objects/contact.object';
1212

1313
// Register widget renderers

packages/plugin-grid/src/ObjectGrid.msw.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { setupServer } from 'msw/node';
77
import { http, HttpResponse } from 'msw';
88
import { registerAllFields } from '@object-ui/fields';
99
import React from 'react';
10-
// @ts-ignore - Import from examples
10+
// @ts-expect-error - Import from examples
1111
import { ContactObject } from '../../../examples/crm/src/objects/contact.object';
1212

1313
registerAllFields();

packages/plugin-timeline/src/ObjectTimeline.msw.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('ObjectTimeline with MSW', () => {
6060

6161
render(
6262
<ObjectTimeline
63-
// @ts-ignore
63+
// @ts-expect-error - Schema type mismatch for testing purposes
6464
schema={schema}
6565
dataSource={adapter}
6666
/>

0 commit comments

Comments
 (0)