From c452c1bb126049d728c941516e1600fd80147b23 Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 30 Dec 2024 12:38:12 +0100 Subject: [PATCH 1/6] chore(eslint-plugin): remove archived deprecated plugin --- package.json | 1 - packages/eslint-plugin/package.json | 1 - packages/eslint-plugin/src/configs/core.js | 18 +++--------------- syncpack.config.js | 1 - yarn.lock | 11 +---------- 5 files changed, 4 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index c50f53823e2ddb..83258b429d9b2a 100644 --- a/package.json +++ b/package.json @@ -231,7 +231,6 @@ "eslint-config-airbnb": "18.2.1", "eslint-config-prettier": "8.3.0", "eslint-import-resolver-typescript": "3.6.1", - "eslint-plugin-deprecation": "3.0.0", "eslint-plugin-es": "4.1.0", "eslint-plugin-import": "2.29.1", "eslint-plugin-jest": "28.8.0", diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 797cd8dce675b5..87282caa800235 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -19,7 +19,6 @@ "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^8.3.0", "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-deprecation": "^3.0.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jest": "^28.6.0", "eslint-plugin-jsdoc": "^48.7.0", diff --git a/packages/eslint-plugin/src/configs/core.js b/packages/eslint-plugin/src/configs/core.js index 72bbfac84c0783..579e58a56ceb6a 100644 --- a/packages/eslint-plugin/src/configs/core.js +++ b/packages/eslint-plugin/src/configs/core.js @@ -14,16 +14,7 @@ const config = { 'prettier', ], parser: '@typescript-eslint/parser', - plugins: [ - 'import', - '@fluentui', - '@rnx-kit', - '@typescript-eslint', - 'deprecation', - 'jest', - 'jsdoc', - ...__internal.plugins, - ], + plugins: ['import', '@fluentui', '@rnx-kit', '@typescript-eslint', 'jest', 'jsdoc', ...__internal.plugins], settings: { 'import/resolver': { // @see https://github.com/alexgorbatchev/eslint-import-resolver-typescript#configuration @@ -245,10 +236,7 @@ const config = { /** @type {import("eslint").Linter.RulesRecord} */ const typeAwareRules = { - /** - * plugin: https://github.com/gund/eslint-plugin-deprecation - */ - 'deprecation/deprecation': 'error', + '@typescript-eslint/no-deprecated': 'error', }; /** @@ -318,7 +306,7 @@ const getOverrides = () => [ { files: 'src/**/*.deprecated.test.{ts,tsx}', rules: { - 'deprecation/deprecation': 'off', // the purpose of these tests + '@typescript-eslint/no-deprecated ': 'off', // the purpose of these tests }, }, { diff --git a/syncpack.config.js b/syncpack.config.js index 4618b062fcb92e..0e3e0b1fcdc4a4 100644 --- a/syncpack.config.js +++ b/syncpack.config.js @@ -47,7 +47,6 @@ const config = { 'eslint-config-airbnb', 'eslint-config-prettier', 'eslint-import-resolver-typescript', - 'eslint-plugin-deprecation', 'eslint-plugin-import', 'eslint-plugin-jest', 'eslint-plugin-jsx-a11y', diff --git a/yarn.lock b/yarn.lock index 5885094de87ceb..e46928bb61d2a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6188,7 +6188,7 @@ "@typescript-eslint/types" "8.8.1" "@typescript-eslint/typescript-estree" "8.8.1" -"@typescript-eslint/utils@^7.0.0", "@typescript-eslint/utils@^7.9.0": +"@typescript-eslint/utils@^7.9.0": version "7.18.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.18.0.tgz#bca01cde77f95fc6a8d5b0dbcbfb3d6ca4be451f" integrity sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw== @@ -10886,15 +10886,6 @@ eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0: dependencies: debug "^3.2.7" -eslint-plugin-deprecation@3.0.0, eslint-plugin-deprecation@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-3.0.0.tgz#c0b6bce543c2a01f231d39a1c54fdfebf3560d48" - integrity sha512-JuVLdNg/uf0Adjg2tpTyYoYaMbwQNn/c78P1HcccokvhtRphgnRjZDKmhlxbxYptppex03zO76f97DD/yQHv7A== - dependencies: - "@typescript-eslint/utils" "^7.0.0" - ts-api-utils "^1.3.0" - tslib "^2.3.1" - eslint-plugin-es@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz#f0822f0c18a535a97c3e714e89f88586a7641ec9" From ca15b500bb7eeb82242ba933359455336d55734e Mon Sep 17 00:00:00 2001 From: mainframev Date: Mon, 30 Dec 2024 13:35:56 +0100 Subject: [PATCH 2/6] chore: replace old deprecated plugin suppressions --- packages/charts/react-charting/src/Styling.ts | 6 +- .../charts/react-charting/src/Utilities.ts | 14 --- .../components/DonutChart/DonutChart.base.tsx | 1 + .../HorizontalBarChart.base.tsx | 1 + .../MultiStackedBarChart.base.tsx | 1 + .../StackedBarChart/StackedBarChart.base.tsx | 1 + .../VerticalStackedBarChart.base.tsx | 2 +- .../src/utilities/SVGTooltipText.tsx | 2 +- .../codeMods/utilities/helpers/propHelpers.ts | 2 +- packages/eslint-plugin/src/configs/core.js | 5 +- packages/font-icons-mdl2/src/IconNames.ts | 2 +- .../font-icons-mdl2/src/iconNames.test.ts | 2 +- packages/font-icons-mdl2/src/index.ts | 4 +- .../foundation-legacy/src/ThemeProvider.tsx | 2 +- packages/keyboard-key/src/index.ts | 4 +- packages/merge-styles/src/DeepPartial.ts | 2 +- packages/merge-styles/src/IStyleSet.ts | 10 +- packages/merge-styles/src/Stylesheet.ts | 4 +- packages/merge-styles/src/index.ts | 4 +- .../src/components/Accordion/useAccordion.ts | 2 +- .../useAccordionItemContextValues.ts | 2 +- .../useActivedescendant.test.tsx | 4 +- .../react-aria/library/src/button/index.ts | 2 +- .../button/useARIAButtonShorthand.test.tsx | 8 +- .../src/button/useARIAButtonShorthand.ts | 4 +- .../react-aria/library/src/index.ts | 2 +- .../react-avatar/library/src/Avatar.ts | 2 +- .../library/src/components/Avatar/index.ts | 2 +- .../react-avatar/library/src/index.ts | 2 +- .../components/Combobox/renderCombobox.tsx | 4 +- .../components/Dropdown/renderDropdown.tsx | 4 +- .../library/src/contexts/ComboboxContext.ts | 2 +- .../react-combobox/library/src/index.ts | 2 +- .../react-components/src/index.ts | 20 ++-- .../react-components/src/unstable/index.ts | 4 +- .../react-icons-compat/library/src/icon.ts | 2 +- .../src/createElement.test.tsx | 10 +- .../react-jsx-runtime/src/interop.test.tsx | 8 +- .../src/jsx-runtime.test.tsx | 10 +- .../react-menu/library/src/Menu.ts | 2 +- .../react-menu/library/src/MenuList.ts | 2 +- .../library/src/components/Menu/index.ts | 2 +- .../library/src/components/MenuList/index.ts | 2 +- .../library/src/components/index.ts | 2 +- .../react-menu/library/src/index.ts | 4 +- .../components/MessageBar/useMessageBar.ts | 2 +- .../library/src/slots/presenceMotionSlot.tsx | 2 +- .../src/components/Popover/usePopover.ts | 2 +- .../react-positioning/src/usePositioning.ts | 2 +- .../useFluentProviderThemeStyleTag.test.tsx | 2 +- .../react-radio/library/src/contexts/index.ts | 2 +- .../react-radio/library/src/index.ts | 2 +- .../src/preset/manager.ts | 6 +- .../react-switch/library/src/Switch.ts | 2 +- .../library/src/components/Switch/index.ts | 2 +- .../react-switch/library/src/index.ts | 2 +- .../useDataGridHeaderCell.ts | 2 +- .../useTableSelectionCell.tsx | 2 +- .../src/components/Tab/useTabStyles.styles.ts | 2 +- .../react-tabster/src/index.ts | 4 +- .../TreeItem/useTreeItemContextValues.ts | 4 +- .../src/compose/deprecated/getSlots.test.tsx | 26 ++--- .../src/compose/deprecated/getSlots.ts | 10 +- .../compose/deprecated/getSlotsNext.test.tsx | 26 ++--- .../src/compose/deprecated/getSlotsNext.ts | 12 +- .../deprecated/resolveShorthand.test.tsx | 16 +-- .../compose/deprecated/resolveShorthand.ts | 6 +- .../src/compose/getIntrinsicElementProps.ts | 2 +- .../react-utilities/src/compose/index.ts | 10 +- .../src/hooks/useOnClickOutside.ts | 4 +- .../react-utilities/src/index.ts | 14 +-- .../react-utilities/src/ssr/canUseDOM.ts | 2 +- .../src/utils/getNativeElementProps.test.ts | 10 +- .../src/utils/getNativeElementProps.ts | 2 +- .../react-utilities/src/utils/index.ts | 2 +- .../react-conformance/src/isConformant.ts | 2 +- packages/react-date-time/src/Calendar.ts | 6 +- packages/react-date-time/src/DatePicker.ts | 4 +- .../Card/Card.Configure.Example.tsx | 2 +- .../Card/Card.Horizontal.Example.tsx | 2 +- .../Card/Card.Vertical.Example.tsx | 2 +- .../Chiclet/Chiclet.Footer.Example.tsx | 2 +- .../Chiclet/Chiclet.Xsmall.Footer.Example.tsx | 2 +- .../CollapsibleSection.Styled.Example.tsx | 2 +- ...PeopleSuggestions.HeaderFooter.Example.tsx | 2 +- .../Slider/Slider.Example.tsx | 2 +- .../Slider/Slider.Vertical.Example.tsx | 2 +- .../Theming.Schemes.Custom.Example.tsx | 6 +- .../Theming.Schemes.Variant.Example.tsx | 6 +- .../UnifiedPeoplePicker.WithEdit.Example.tsx | 2 +- .../FocusZone/FocusZone.List.Example.tsx | 2 +- .../react/Layer/Layer.Customized.Example.tsx | 2 +- .../src/react/Modal/Modal.Basic.Example.tsx | 2 +- .../react/Modal/Modal.Modeless.Example.tsx | 2 +- .../Panel.HandleDismissTarget.Example.tsx | 2 +- .../examples/PeoplePickerExampleData.ts | 2 +- .../Pivot/Pivot.OverflowMenu.Example.tsx | 2 +- .../ThemeGenerator/ThemeGenerator.doc.tsx | 2 +- packages/react-experiments/src/Foundation.ts | 4 +- packages/react-experiments/src/Styling.ts | 6 +- packages/react-experiments/src/Utilities.ts | 14 --- .../src/components/BAFAccordion/Accordion.tsx | 2 +- .../CollapsibleSection.state.tsx | 6 +- .../FloatingSuggestions.tsx | 2 +- .../FolderCover/FolderCover.types.ts | 2 +- .../SelectedItemsList/Items/CopyableItem.tsx | 2 +- .../subcomponents/DefaultEditingItem.tsx | 2 +- .../src/components/Sidebar/Sidebar.tsx | 6 +- .../src/components/Slider/Slider.base.tsx | 2 +- .../src/components/Slider/Slider.styles.tsx | 2 +- .../src/components/Slider/Slider.test.tsx | 2 +- .../src/components/Slider/Slider.tsx | 2 +- .../src/components/Slider/Slider.types.ts | 2 +- .../components/TilesList/TilesList.types.ts | 2 +- .../UnifiedPicker/UnifiedPicker.tsx | 8 +- .../src/components/FocusZone/FocusZone.tsx | 46 ++++---- .../react-hooks/src/useConstCallback.test.tsx | 2 +- .../react-hooks/src/useMountSync.test.tsx | 2 +- .../src/utilities/getQueryParam.ts | 2 +- packages/react/src/Icons.ts | 5 +- packages/react/src/Styling.ts | 3 - packages/react/src/Utilities.ts | 14 --- .../components/ActivityItem/ActivityItem.tsx | 6 +- .../src/components/Autofill/Autofill.tsx | 10 +- .../src/components/Button/BaseButton.tsx | 32 +++--- .../react/src/components/Button/Button.tsx | 2 +- .../src/components/Button/Button.types.ts | 4 +- .../src/components/Calendar/Calendar.base.tsx | 4 +- .../Calendar/CalendarDay/CalendarDay.base.tsx | 2 +- .../CalendarMonth/CalendarMonth.base.tsx | 2 +- .../CalendarYear/CalendarYear.base.tsx | 6 +- .../CalendarDayGrid/CalendarGridDayCell.tsx | 10 +- .../Callout/CalloutContent.base.tsx | 2 +- .../src/components/Check/Check.styles.ts | 2 +- .../components/Coachmark/Coachmark.base.tsx | 6 +- .../ColorPicker/ColorPicker.base.tsx | 12 +- .../ColorRectangle/ColorRectangle.base.tsx | 2 +- .../ColorSlider/ColorSlider.base.tsx | 8 +- .../ColorSlider/ColorSlider.styles.ts | 2 +- .../src/components/ComboBox/ComboBox.tsx | 22 ++-- .../components/CommandBar/CommandBar.base.tsx | 4 +- .../ContextualMenu/ContextualMenu.base.tsx | 48 ++++---- .../ContextualMenu.classNames.ts | 6 +- .../ContextualMenu/ContextualMenu.types.ts | 8 +- .../ContextualMenuItem.base.tsx | 4 +- .../ContextualMenuItem.test.tsx | 12 +- .../ContextualMenuItem.types.ts | 2 +- .../ContextualMenuAnchor.test.tsx | 4 +- .../ContextualMenuAnchor.tsx | 2 +- .../ContextualMenuButton.test.tsx | 4 +- .../ContextualMenuButton.tsx | 2 +- .../ContextualMenuItemWrapper.types.ts | 2 +- .../ContextualMenuSplitButton.test.tsx | 4 +- .../ContextualMenuSplitButton.tsx | 10 +- .../src/components/ContextualMenu/index.ts | 3 +- .../components/DatePicker/DatePicker.base.tsx | 2 +- .../DetailsList/DetailsColumn.base.tsx | 4 +- .../DetailsList/DetailsHeader.base.tsx | 12 +- .../DetailsList/DetailsList.base.tsx | 18 +-- .../DetailsList/DetailsRowCheck.tsx | 4 +- .../src/components/Dialog/Dialog.base.tsx | 12 +- .../src/components/Dialog/Dialog.styles.ts | 2 +- .../src/components/Dialog/Dialog.types.ts | 2 +- .../components/Dialog/DialogContent.base.tsx | 4 +- .../Divider/VerticalDivider.base.tsx | 2 +- .../Divider/VerticalDivider.classNames.ts | 2 +- .../Divider/VerticalDivider.styles.ts | 2 +- .../Divider/VerticalDivider.types.ts | 2 +- .../DocumentCard/DocumentCard.base.tsx | 4 +- .../DocumentCard/DocumentCardLogo.styles.ts | 2 +- .../DocumentCard/DocumentCardPreview.base.tsx | 6 +- .../src/components/Dropdown/Dropdown.base.tsx | 20 ++-- .../ExtendedPicker/BaseExtendedPicker.tsx | 2 +- .../src/components/Fabric/Fabric.base.tsx | 2 +- .../src/components/Fabric/Fabric.test.tsx | 2 +- .../src/components/Facepile/Facepile.base.tsx | 2 +- .../FloatingPicker/BaseFloatingPicker.tsx | 2 +- .../PeoplePickerItems/SelectedItemDefault.tsx | 2 +- .../Suggestions/SuggestionsStore.ts | 2 +- .../FocusTrapZone/FocusTrapZone.tsx | 4 +- .../GroupedList/GroupHeader.base.tsx | 6 +- .../GroupedList/GroupSpacer.types.ts | 2 +- .../GroupedList/GroupedList.base.tsx | 2 +- .../GroupedList/GroupedListV2.base.tsx | 3 +- .../HoverCard/ExpandingCard.base.tsx | 2 +- .../components/HoverCard/HoverCard.base.tsx | 6 +- .../HoverCard/PlainCard/PlainCard.base.tsx | 2 +- .../react/src/components/Icon/Icon.base.tsx | 4 +- .../react/src/components/Icon/Icon.styles.ts | 2 +- .../react/src/components/Icon/Icon.types.ts | 2 +- .../src/components/Keytip/Keytip.styles.ts | 4 +- .../react/src/components/Layer/Layer.base.tsx | 6 +- .../react/src/components/Link/Link.test.tsx | 2 +- .../components/MessageBar/MessageBar.base.tsx | 2 +- .../components/MessageBar/MessageBar.types.ts | 2 +- .../react/src/components/Modal/Modal.base.tsx | 18 +-- .../src/components/Modal/Modal.styles.ts | 2 +- .../react/src/components/Nav/Nav.base.tsx | 6 +- .../react/src/components/Panel/Panel.base.tsx | 2 +- .../src/components/Persona/Persona.base.tsx | 8 +- .../Persona/PersonaCoin/PersonaCoin.base.tsx | 10 +- .../src/components/Persona/PersonaConsts.tsx | 4 +- .../Persona/PersonaInitialsColor.ts | 6 +- .../react/src/components/Pivot/Pivot.base.tsx | 4 +- packages/react/src/components/Popup/Popup.tsx | 4 +- .../ProgressIndicator.base.tsx | 4 +- .../src/components/Rating/Rating.base.tsx | 4 +- .../components/SearchBox/SearchBox.base.tsx | 8 +- .../BaseSelectedItemsList.tsx | 2 +- .../SelectedPeopleList/Items/EditingItem.tsx | 2 +- .../ShimmerCircle/ShimmerCircle.base.tsx | 2 +- .../ShimmerCircle/ShimmerCircle.styles.ts | 2 +- .../Shimmer/ShimmerGap/ShimmerGap.base.tsx | 2 +- .../Shimmer/ShimmerGap/ShimmerGap.styles.ts | 2 +- .../Shimmer/ShimmerLine/ShimmerLine.base.tsx | 2 +- .../Shimmer/ShimmerLine/ShimmerLine.styles.ts | 2 +- .../react/src/components/Slider/useSlider.ts | 4 +- .../components/SpinButton/SpinButton.base.tsx | 6 +- .../components/SpinButton/SpinButton.test.tsx | 2 +- .../src/components/Spinner/Spinner.base.tsx | 4 +- .../src/components/Spinner/Spinner.types.ts | 2 +- .../src/components/Stack/Stack.styles.ts | 4 +- .../react/src/components/Stack/Stack.test.tsx | 2 +- packages/react/src/components/Stack/Stack.tsx | 2 +- .../ColorPickerGridCell.base.tsx | 2 +- .../SwatchColorPicker.base.tsx | 10 +- .../TeachingBubble/TeachingBubble.base.tsx | 4 +- .../TeachingBubbleContent.base.tsx | 4 +- .../MaskedTextField/MaskedTextField.tsx | 8 +- .../components/TextField/TextField.base.tsx | 2 +- .../src/components/TimePicker/TimePicker.tsx | 2 +- .../src/components/Toggle/Toggle.base.tsx | 6 +- .../components/Tooltip/TooltipHost.base.tsx | 4 +- .../WeeklyDayPicker/WeeklyDayPicker.base.tsx | 4 +- .../src/components/pickers/BasePicker.tsx | 12 +- .../PeoplePickerItem.types.ts | 2 +- .../PeoplePickerItems/SelectedItemDefault.tsx | 2 +- packages/react/src/index.ts | 103 ++---------------- .../utilities/ButtonGrid/ButtonGrid.base.tsx | 4 +- .../utilities/DraggableZone/DraggableZone.tsx | 2 +- .../ThemeProvider/makeStyles.test.tsx | 10 +- .../src/utilities/ThemeProvider/makeStyles.ts | 4 +- .../ThemeProvider/useThemeProviderClasses.tsx | 2 +- .../contextualMenu/contextualMenuUtility.ts | 2 +- .../decorators/withResponsiveMode.test.tsx | 2 +- .../decorators/withResponsiveMode.tsx | 2 +- .../src/utilities/positioning/positioning.ts | 14 +-- .../positioning/positioning.types.ts | 1 - .../src/utilities/selection/SelectionZone.tsx | 12 +- packages/style-utilities/src/index.ts | 6 +- .../src/styles/CommonStyles.ts | 4 +- .../style-utilities/src/utilities/icons.ts | 2 +- .../theme/src/utilities/makeSemanticColors.ts | 6 +- packages/utilities/src/BaseComponent.test.tsx | 4 +- packages/utilities/src/BaseComponent.ts | 6 +- packages/utilities/src/EventGroup.test.ts | 4 +- packages/utilities/src/EventGroup.ts | 2 +- .../src/customizations/Customizer.test.tsx | 2 +- .../src/customizations/customizable.test.tsx | 2 +- packages/utilities/src/dom.ts | 2 +- packages/utilities/src/dom/canUseDOM.ts | 2 +- packages/utilities/src/dom/raiseClick.ts | 4 +- packages/utilities/src/index.ts | 28 ++--- .../src/initializeFocusRects.test.ts | 2 +- .../utilities/src/initializeFocusRects.ts | 2 +- packages/utilities/src/math.ts | 4 +- packages/utilities/src/styled.test.tsx | 2 +- packages/utilities/src/useFocusRects.ts | 4 +- scripts/executors/src/generate-ui.ts | 2 +- scripts/tasks/src/index.ts | 5 - 270 files changed, 639 insertions(+), 773 deletions(-) diff --git a/packages/charts/react-charting/src/Styling.ts b/packages/charts/react-charting/src/Styling.ts index 31e6ed2005a051..563a5a90452e3b 100644 --- a/packages/charts/react-charting/src/Styling.ts +++ b/packages/charts/react-charting/src/Styling.ts @@ -6,7 +6,7 @@ export { DefaultEffects, DefaultFontStyles, DefaultPalette, - // eslint-disable-next-line deprecation/deprecation + // eslint-disable-next-line @typescript-eslint/no-deprecated EdgeChromiumHighContrastSelector, FontClassNames, FontSizes, @@ -39,11 +39,11 @@ export { createTheme, focusClear, fontFace, - // eslint-disable-next-line deprecation/deprecation + // eslint-disable-next-line @typescript-eslint/no-deprecated getEdgeChromiumNoHighContrastAdjustSelector, getFadedOverflowStyle, getFocusOutlineStyle, - // eslint-disable-next-line deprecation/deprecation + // eslint-disable-next-line @typescript-eslint/no-deprecated getFocusStyle, getGlobalClassNames, getHighContrastNoAdjustStyle, diff --git a/packages/charts/react-charting/src/Utilities.ts b/packages/charts/react-charting/src/Utilities.ts index 0850eaa19b0634..82dae884afcb13 100644 --- a/packages/charts/react-charting/src/Utilities.ts +++ b/packages/charts/react-charting/src/Utilities.ts @@ -1,10 +1,8 @@ export { Async, AutoScroll, - // eslint-disable-next-line deprecation/deprecation BaseComponent, Customizations, - // eslint-disable-next-line deprecation/deprecation Customizer, CustomizerContext, DATA_IS_SCROLLABLE_ATTRIBUTE, @@ -87,7 +85,6 @@ export { getRTL, getRTLSafeKeyCode, getRect, - // eslint-disable-next-line deprecation/deprecation getResourceUrl, getScrollbarWidth, getVirtualParent, @@ -99,11 +96,9 @@ export { hoistStatics, htmlElementProperties, iframeProperties, - // eslint-disable-next-line deprecation/deprecation imageProperties, imgProperties, initializeComponentRef, - // eslint-disable-next-line deprecation/deprecation initializeFocusRects, inputProperties, isControlled, @@ -135,7 +130,6 @@ export { optionProperties, portalContainsElement, precisionRound, - // eslint-disable-next-line deprecation/deprecation raiseClick, removeIndex, replaceElement, @@ -145,15 +139,12 @@ export { safeRequestAnimationFrame, safeSetTimeout, selectProperties, - // eslint-disable-next-line deprecation/deprecation setBaseUrl, setFocusVisibility, - // eslint-disable-next-line deprecation/deprecation setLanguage, setMemoizeWeakMap, setPortalAttribute, setRTL, - // eslint-disable-next-line deprecation/deprecation setSSR, setVirtualParent, setWarningCallback, @@ -184,7 +175,6 @@ export type { ICancelable, IChangeDescription, IChangeEventCallback, - // eslint-disable-next-line deprecation/deprecation IClassNames, IClassNamesFunctionOptions, IComponentAs, @@ -207,7 +197,6 @@ export type { IPerfData, IPerfMeasurement, IPerfSummary, - // eslint-disable-next-line deprecation/deprecation IPoint, IPropsWithStyles, IRectangle, @@ -226,13 +215,10 @@ export type { IStyleFunctionOrObject, IVirtualElement, IWarnControlledUsageParams, - // eslint-disable-next-line deprecation/deprecation Omit, Point, RefObject, - // eslint-disable-next-line deprecation/deprecation Settings, - // eslint-disable-next-line deprecation/deprecation SettingsFunction, StyleFunction, } from '@fluentui/react/lib/Utilities'; diff --git a/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx b/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx index 79c4414e3307ab..5fc0da02192505 100644 --- a/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx +++ b/packages/charts/react-charting/src/components/DonutChart/DonutChart.base.tsx @@ -178,6 +178,7 @@ export class DonutChartBase extends React.Component