Skip to content

Commit 5f7b8c2

Browse files
committed
fix(lint): resolve oxlint violations across packages
1 parent bbb1fd8 commit 5f7b8c2

File tree

70 files changed

+394
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+394
-306
lines changed

apps/tester-core/oxlint.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import baseConfig from '@fluentui-react-native/lint-config-rules';
2+
import { defineConfig } from 'oxlint';
3+
4+
export default defineConfig({
5+
extends: [baseConfig],
6+
rules: {
7+
'@rnx-kit/no-export-all': 'off',
8+
'@rnx-kit/no-foreach-with-captured-variables': 'off',
9+
'react-hooks/exhaustive-deps': 'off',
10+
'typescript/array-type': 'off',
11+
},
12+
});

apps/tester-core/src/TestComponents/Button/ButtonHOCTestSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const CustomButton = Button.customize({ backgroundColor: 'pink' });
1414
const CustomIconButton = Button.customize({ iconColor: 'yellow' });
1515
const ComposedButton = Button.compose({
1616
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
17-
// @ts-ignore Not all slots have to be overridden for compose to work
17+
// @ts-expect-error Not all slots have to be overridden for compose to work
1818
slots: {
1919
content: CustomText,
2020
},

packages/components/Avatar/src/Avatar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function renderAvatar(final: AvatarProps, avatarProps: AvatarProps, Slots: Slots
8787
<Slots.initials accessible={false}>{initials}</Slots.initials>
8888
) : avatarProps.icon ? (
8989
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
90-
// @ts-ignore - TODO, fix typing error
90+
// @ts-expect-error - TODO, fix typing error
9191
<Slots.icon {...icon} accessible={false} />
9292
) : (
9393
svgIconsEnabled && (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './stylingUtils.mobile';
1+
export { getFallbackIconPath, getIconStyles, getRingConfig, getRingSpacing } from './stylingUtils.mobile';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './stylingUtils.mobile';
1+
export { getFallbackIconPath, getIconStyles, getRingConfig, getRingSpacing } from './stylingUtils.mobile';
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
export * from './CounterBadge.types';
2-
export * from './CounterBadge';
1+
export { counterBadgeName } from './CounterBadge.types';
2+
export type {
3+
CounterBadgeInfo,
4+
CounterBadgeProps,
5+
CounterBadgeSlotProps,
6+
CounterBadgeState,
7+
CounterBadgeTokens,
8+
CounterBadgeType,
9+
} from './CounterBadge.types';
10+
export { CounterBadge } from './CounterBadge';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './PresenceBadgeTokens.mobile';
1+
export { defaultPresenceBadgeTokens } from './PresenceBadgeTokens.mobile';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './PresenceBadgeTokens.mobile';
1+
export { defaultPresenceBadgeTokens } from './PresenceBadgeTokens.mobile';
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1-
export * from './PresenceBadge.types';
2-
export * from './PresenceBadge';
1+
export {
2+
PresenceBadgeIcons,
3+
PresenceBadgeStatuses,
4+
presenceBadgeName,
5+
} from './PresenceBadge.types';
6+
export type {
7+
PresenceBadgeIconPath,
8+
PresenceBadgeIconTypes,
9+
PresenceBadgeProps,
10+
PresenceBadgeSlotProps,
11+
PresenceBadgeStatus,
12+
PresenceBadgeTokens,
13+
PresenceBadgeType,
14+
} from './PresenceBadge.types';
15+
export { PresenceBadge } from './PresenceBadge';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './stylingUtils.mobile';
1+
export { getIconPath } from './stylingUtils.mobile';

0 commit comments

Comments
 (0)