Skip to content

Commit 2a8ecb3

Browse files
committed
chore: fix lint deprecation lint errors
1 parent 698663d commit 2a8ecb3

File tree

16 files changed

+30
-28
lines changed

16 files changed

+30
-28
lines changed

packages/react-components/react-aria/library/src/button/useARIAButtonShorthand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type { ARIAButtonProps, ARIAButtonType } from './types';
1616
*/
1717
// eslint-disable-next-line @typescript-eslint/no-deprecated, @typescript-eslint/no-explicit-any
1818
export const useARIAButtonShorthand: ResolveShorthandFunction<any> = ((value, options) => {
19-
// eslint-disable-next-line@typescript-eslint/no-deprecated
19+
// eslint-disable-next-line @typescript-eslint/no-deprecated
2020
const shorthand = resolveShorthand(value, options);
2121
const shorthandARIAButton = useARIAButtonProps<ARIAButtonType, ARIAButtonProps>(
2222
shorthand?.as ?? 'button',

packages/react-components/react-drawer/library/src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleStat
3939
// but there's no way to retrieve the element type of a slot from the slot definition
4040
// right now without using SLOT_ELEMENT_TYPE_SYMBOL
4141
// TODO: create a method to retrieve the element type of a slot
42-
// eslint-disable-next-line deprecation/deprecation
42+
// eslint-disable-next-line @typescript-eslint/no-deprecated
4343
const { heading: root = {}, action, components } = state;
4444

4545
useDialogTitleStyles_unstable({

packages/react-components/react-jsx-runtime/src/interop.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe('resolveShorthand with assertSlots', () => {
171171
const TestComponent = (props: TestComponentProps) => {
172172
const higherOrderState = useHigherOrderStateHook(props);
173173
const state: TestComponentState = {
174-
// eslint-disable-next-line deprecation/deprecation
174+
// eslint-disable-next-line @typescript-eslint/no-deprecated
175175
components: { ...higherOrderState.components, slot: 'span' },
176176
slot: {
177177
...higherOrderState.slot,

packages/react-components/react-menu/library/src/components/MenuItemLink/useMenuItemLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const useMenuItemLink_unstable = (
2727
return {
2828
...baseState,
2929
components: {
30-
// eslint-disable-next-line deprecation/deprecation
30+
// eslint-disable-next-line @typescript-eslint/no-deprecated
3131
...baseState.components,
3232
root: 'a',
3333
},

packages/react-components/react-menu/library/src/components/MenuItemSwitch/useMenuItemSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const useMenuItemSwitch_unstable = (
2929
},
3030
}),
3131
components: {
32-
// eslint-disable-next-line deprecation/deprecation
32+
// eslint-disable-next-line @typescript-eslint/no-deprecated
3333
...baseState.components,
3434
switchIndicator: 'span',
3535
},

packages/react-components/react-menu/library/src/components/MenuItemSwitch/useMenuItemSwitchStyles.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const useMenuItemSwitchStyles_unstable = (state: MenuItemSwitchState): Me
135135
useMenuItemStyles_unstable({
136136
...state,
137137
components: {
138-
// eslint-disable-next-line deprecation/deprecation
138+
// eslint-disable-next-line @typescript-eslint/no-deprecated
139139
...state.components,
140140
checkmark: 'span',
141141
submenuIndicator: 'span',

packages/react-components/react-search/library/src/components/SearchBox/useSearchBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export const useSearchBox_unstable = (props: SearchBoxProps, ref: React.Ref<HTML
111111
const state: SearchBoxState = {
112112
...inputState,
113113
components: {
114-
// eslint-disable-next-line deprecation/deprecation
114+
// eslint-disable-next-line @typescript-eslint/no-deprecated
115115
...inputState.components,
116116
dismiss: 'span',
117117
},

packages/react-components/react-table/library/src/components/DataGridRow/useDataGridRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const useDataGridRow_unstable = (props: DataGridRowProps, ref: React.Ref<
7272
return {
7373
...baseState,
7474
components: {
75-
// eslint-disable-next-line deprecation/deprecation
75+
// eslint-disable-next-line @typescript-eslint/no-deprecated
7676
...baseState.components,
7777
selectionCell: DataGridSelectionCell,
7878
},

packages/react-components/react-table/library/src/components/TableSelectionCell/useTableSelectionCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const useTableSelectionCell_unstable = (
3434
return {
3535
...tableCellState,
3636
components: {
37-
// eslint-disable-next-line deprecation/deprecation
37+
// eslint-disable-next-line @typescript-eslint/no-deprecated
3838
...tableCellState.components,
3939
checkboxIndicator: Checkbox,
4040
radioIndicator: Radio,

packages/react-components/react-tag-picker/library/src/components/TagPickerOption/useTagPickerOption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const useTagPickerOption_unstable = (
1919
const optionState = useOption_unstable(props, ref);
2020
const state: TagPickerOptionState = {
2121
components: {
22-
// eslint-disable-next-line deprecation/deprecation
22+
// eslint-disable-next-line @typescript-eslint/no-deprecated
2323
...optionState.components,
2424
media: 'div',
2525
secondaryContent: 'span',

0 commit comments

Comments
 (0)