Skip to content

Conversation

@mainframev
Copy link
Contributor

@mainframev mainframev commented Oct 29, 2025

This pull request updates multiple Fluent UI packages by migrating their linting configuration to use the new ESLint flat config format

workspace generator create-package will be updated in a follow-up PR

partially implements #32289

@github-actions
Copy link

github-actions bot commented Oct 29, 2025

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.277 MB
320.774 kB
1.277 MB
320.772 kB
-9 B
-2 B
react-spinbutton
SpinButton
34.371 kB
11.352 kB
34.362 kB
11.35 kB
-9 B
-2 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
510 B
328 B
global-context
createContextSelector
537 B
339 B
keyboard-key
keyboard-key package
3.746 kB
1.928 kB
keyboard-keys
Multiple keyCodes
50 B
70 B
keyboard-keys
Multiple keys
87 B
94 B
keyboard-keys
Single key
44 B
64 B
keyboard-keys
Single keyCode
39 B
59 B
priority-overflow
createOverflowManager
4.457 kB
1.832 kB
react
ActivityItem
71.22 kB
23.347 kB
react
Announced
38.472 kB
13.275 kB
react
Autofill
15.42 kB
4.766 kB
react
Breadcrumb
200.805 kB
59.601 kB
react
Button
194.354 kB
55.886 kB
react
ButtonGrid
179.242 kB
53.891 kB
react
Calendar
121.162 kB
36.83 kB
react
Callout
84.299 kB
27.593 kB
react
Check
53.206 kB
17.835 kB
react
Checkbox
59.978 kB
19.874 kB
react
ChoiceGroup
65.488 kB
21.465 kB
react
ChoiceGroupOption
58.769 kB
19.353 kB
react
Coachmark
92.7 kB
29.305 kB
react
Color
7.789 kB
3.127 kB
react
ColorPicker
134.97 kB
42.125 kB
react
ComboBox
250.687 kB
71.515 kB
react
CommandBar
201.861 kB
59.387 kB
react
ContextualMenu
154.229 kB
47.566 kB
react
DatePicker
183.251 kB
55.892 kB
react
DateTimeUtilities
5.244 kB
1.849 kB
react
DetailsList
229.929 kB
65.81 kB
react
Dialog
210.16 kB
62.358 kB
react
Divider
19.588 kB
6.84 kB
react
DocumentCard
215.843 kB
63.666 kB
react
DragDrop
8.343 kB
2.724 kB
react
DraggableZone
34.28 kB
11.488 kB
react
Dropdown
233.151 kB
67.962 kB
react
ExtendedPicker
96.823 kB
27.866 kB
react
Fabric
41.728 kB
14.343 kB
react
Facepile
209.377 kB
62.375 kB
react
FloatingPicker
240.865 kB
68.222 kB
react
FocusTrapZone
16.99 kB
5.891 kB
react
FocusZone
55.1 kB
17.451 kB
react
Grid
179.242 kB
53.891 kB
react
GroupedList
135.035 kB
40.67 kB
react
GroupedListV2
122.659 kB
37.758 kB
react
HoverCard
96.784 kB
30.688 kB
react
Icon
51.887 kB
17.263 kB
react
Icons
66.339 kB
24.385 kB
react
Image
46.901 kB
15.695 kB
react
Keytip
81.301 kB
26.677 kB
react
KeytipData
14.05 kB
4.583 kB
react
KeytipLayer
103.089 kB
31.9 kB
react
Keytips
105.873 kB
32.904 kB
react
Label
38.324 kB
13.241 kB
react
Layer
48.089 kB
16.348 kB
react
Link
39.665 kB
13.653 kB
react
List
39.346 kB
12.454 kB
react
MarqueeSelection
74.49 kB
22.402 kB
react
MessageBar
189.388 kB
56.33 kB
react
Modal
93.738 kB
30.223 kB
react
Nav
186.825 kB
55.723 kB
react
OverflowSet
33.354 kB
11.282 kB
react
Overlay
40.885 kB
14.077 kB
react
Panel
200.327 kB
59.336 kB
react
Persona
114.591 kB
36.435 kB
react
PersonaCoin
114.591 kB
36.435 kB
react
PersonaPresence
58.076 kB
19.372 kB
react
Pickers
297.91 kB
82.996 kB
react
Pivot
187.734 kB
56.5 kB
react
Popup
12.312 kB
4.197 kB
react
Positioning
22.764 kB
7.683 kB
react
PositioningContainer
73.445 kB
23.685 kB
react
ProgressIndicator
39.477 kB
13.528 kB
react
Rating
82.086 kB
26.09 kB
react
Fluent UI React (entire library)
1.019 MB
283.184 kB
react
ResizeGroup
13.35 kB
4.379 kB
react
ResponsiveMode
8.13 kB
2.966 kB
react
ScrollablePane
55.541 kB
17.718 kB
react
SearchBox
187.63 kB
55.936 kB
react
SelectableOption
724 B
413 B
react
SelectedItemsList
231.35 kB
67.176 kB
react
Selection
42.418 kB
12.26 kB
react
Separator
35.365 kB
12.132 kB
react
Shimmer
49.249 kB
16.258 kB
react
ShimmeredDetailsList
240.71 kB
68.549 kB
react
Slider
57.627 kB
19.198 kB
react
SpinButton
191.297 kB
57.006 kB
react
Spinner
41.759 kB
14.468 kB
react
Stack
42.039 kB
14.389 kB
react
Sticky
32.577 kB
10.488 kB
react
Styling
46.033 kB
15.135 kB
react
SwatchColorPicker
189.637 kB
57.417 kB
react
TeachingBubble
204.648 kB
60.317 kB
react
Text
36.886 kB
12.806 kB
react
TextField
80.798 kB
25.308 kB
react
Theme
43.486 kB
14.168 kB
react
ThemeGenerator
12.384 kB
4.116 kB
react
TimePicker
240.515 kB
69.311 kB
react
Toggle
46.201 kB
15.957 kB
react
Tooltip
87.073 kB
28.151 kB
react
Utilities
82.938 kB
25.15 kB
react
Viewport
23.872 kB
7.642 kB
react
WeeklyDayPicker
101.348 kB
31.644 kB
react
WindowProvider
1.059 kB
541 B
react-accordion
Accordion (including children components)
107.26 kB
32.84 kB
react-aria
ARIA - Default
237 B
181 B
react-avatar
Avatar
48.452 kB
15.431 kB
react-avatar
AvatarGroup
18.243 kB
7.299 kB
react-avatar
AvatarGroupItem
61.704 kB
19.432 kB
react-badge
Badge
24.987 kB
8.153 kB
react-badge
CounterBadge
25.767 kB
8.426 kB
react-badge
PresenceBadge
24.868 kB
9.063 kB
react-breadcrumb
@fluentui/react-breadcrumb - package
114.136 kB
31.456 kB
react-button
Button
36.611 kB
10.409 kB
react-button
CompoundButton
43.012 kB
11.71 kB
react-button
MenuButton
41.551 kB
11.818 kB
react-button
SplitButton
49.613 kB
13.391 kB
react-button
ToggleButton
52.549 kB
12.196 kB
react-calendar-compat
Calendar Compat
149.207 kB
39.833 kB
react-card
Card - All
105.924 kB
29.733 kB
react-card
Card
98.592 kB
27.856 kB
react-card
CardFooter
13.549 kB
5.411 kB
react-card
CardHeader
16.082 kB
6.279 kB
react-card
CardPreview
13.633 kB
5.547 kB
react-charting
AreaChart
299.068 kB
93.296 kB
react-charting
ChartHoverCard
37.196 kB
12.7 kB
react-charting
DeclarativeChart
647.253 kB
182.761 kB
react-charting
DonutChart
194.185 kB
60.837 kB
react-charting
GanttChart
278.557 kB
87.137 kB
react-charting
GaugeChart
194.702 kB
60.476 kB
react-charting
GroupedVerticalBarChart
290.186 kB
90.067 kB
react-charting
HeatMapChart
281.418 kB
87.822 kB
react-charting
HorizontalBarChart
127.238 kB
39.931 kB
react-charting
HorizontalBarChartWithAxis
288.255 kB
89.075 kB
react-charting
Legends
151.235 kB
46.305 kB
react-charting
LineChart
328.596 kB
100.236 kB
react-charting
MultiStackedBarChart
181.411 kB
55.129 kB
react-charting
PieChart
134.239 kB
42.282 kB
react-charting
SankeyChart
149.288 kB
46.653 kB
react-charting
ScatterChart
284.825 kB
89.461 kB
react-charting
Sparkline
87.616 kB
29.671 kB
react-charting
StackedBarChart
175.092 kB
52.716 kB
react-charting
TreeChart
84.809 kB
26.636 kB
react-charting
VerticalBarChart
300.588 kB
91.59 kB
react-charting
VerticalStackedBarChart
296.437 kB
91.129 kB
react-charts
AreaChart
400.9 kB
122.635 kB
react-charts
DeclarativeChart
720.187 kB
207.898 kB
react-charts
DonutChart
296.816 kB
88.681 kB
react-charts
FunnelChart
288.06 kB
85.53 kB
react-charts
GanttChart
382.659 kB
115.766 kB
react-charts
GaugeChart
311.707 kB
92.329 kB
react-charts
GroupedVerticalBarChart
390.436 kB
118.301 kB
react-charts
HeatMapChart
384.612 kB
117.407 kB
react-charts
HorizontalBarChart
294.818 kB
86.718 kB
react-charts
HorizontalBarChartWithAxis
63 B
83 B
react-charts
Legends
233.924 kB
69.091 kB
react-charts
LineChart
410.167 kB
124.012 kB
react-charts
SankeyChart
199.056 kB
61.202 kB
react-charts
ScatterChart
389.956 kB
118.234 kB
react-charts
Sparkline
91.253 kB
28.726 kB
react-charts
VerticalBarChart
425.002 kB
123.361 kB
react-charts
VerticalStackedBarChart
396.788 kB
119.256 kB
react-checkbox
Checkbox
34.315 kB
11.706 kB
react-color-picker
ColorArea
48.331 kB
16.993 kB
react-color-picker
ColorPicker
16.962 kB
6.832 kB
react-color-picker
ColorSlider
40.505 kB
15.041 kB
react-combobox
Combobox (including child components)
105.977 kB
34.465 kB
react-combobox
Dropdown (including child components)
106.601 kB
34.39 kB
react-components
react-components: Button, FluentProvider & webLightTheme
68.702 kB
19.799 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
235.705 kB
68.293 kB
react-components
react-components: FluentProvider & webLightTheme
43.528 kB
14.148 kB
react-datepicker-compat
DatePicker Compat
225.807 kB
63.893 kB
react-dialog
Dialog (including children components)
102.738 kB
30.646 kB
react-divider
Divider
20.524 kB
7.559 kB
react-field
Field
22.595 kB
8.505 kB
react-image
Image
14.371 kB
5.815 kB
react-input
Input
27.039 kB
8.993 kB
react-jsx-runtime
Classic Pragma
1.101 kB
550 B
react-jsx-runtime
JSX Dev Runtime
2.8 kB
1.247 kB
react-jsx-runtime
JSX Runtime
3.154 kB
1.359 kB
react-label
Label
13.697 kB
5.54 kB
react-link
Link
16.926 kB
6.734 kB
react-list
List
87.903 kB
26.08 kB
react-list
ListItem
111.488 kB
32.937 kB
react-menu
Menu (including children components)
164.412 kB
49.793 kB
react-menu
Menu (including selectable components)
167.394 kB
50.381 kB
react-message-bar
MessageBar (all components)
24.057 kB
8.884 kB
react-motion
@fluentui/react-motion - createMotionComponent()
4.109 kB
1.806 kB
react-motion
@fluentui/react-motion - createPresenceComponent()
5.771 kB
2.396 kB
react-motion
@fluentui/react-motion - PresenceGroup
1.727 kB
823 B
react-overflow
hooks only
11.977 kB
4.574 kB
react-persona
Persona
55.343 kB
17.311 kB
react-popover
Popover
131.282 kB
40.84 kB
react-portal
Portal
15.55 kB
5.398 kB
react-portal-compat
PortalCompatProvider
8.386 kB
2.624 kB
react-positioning
usePositioning
28.865 kB
10.146 kB
react-positioning
useSafeZoneArea
12.445 kB
5 kB
react-progress
ProgressBar
16.493 kB
6.507 kB
react-provider
FluentProvider
23.704 kB
8.452 kB
react-radio
Radio
31.698 kB
9.911 kB
react-radio
RadioGroup
14.787 kB
5.992 kB
react-select
Select
26.878 kB
9.735 kB
react-slider
Slider
37.115 kB
12.365 kB
react-spinner
Spinner
24.294 kB
8.104 kB
react-swatch-picker
@fluentui/react-swatch-picker - package
105.063 kB
30.239 kB
react-switch
Switch
34.448 kB
10.922 kB
react-table
DataGrid
160.194 kB
45.261 kB
react-table
Table (Primitives only)
41.882 kB
13.483 kB
react-table
Table as DataGrid
131.409 kB
36.253 kB
react-table
Table (Selection only)
69.797 kB
19.616 kB
react-table
Table (Sort only)
68.44 kB
19.233 kB
react-tag-picker
@fluentui/react-tag-picker - package
187.327 kB
56.145 kB
react-tags
InteractionTag
14.459 kB
5.759 kB
react-tags
Tag
30.314 kB
9.694 kB
react-tags
TagGroup
83.004 kB
24.47 kB
react-teaching-popover
TeachingPopover
101.867 kB
30.488 kB
react-text
Text - Default
16.088 kB
6.258 kB
react-text
Text - Wrappers
19.248 kB
6.592 kB
react-textarea
Textarea
25.421 kB
9.255 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
36.081 kB
7.658 kB
react-theme
Teams: Light theme
20.025 kB
5.723 kB
react-timepicker-compat
TimePicker
108.943 kB
35.995 kB
react-toast
Toast (including Toaster)
103.22 kB
30.88 kB
react-tooltip
Tooltip
57.9 kB
20.014 kB
react-tree
FlatTree
148.292 kB
42.393 kB
react-tree
PersonaFlatTree
149.05 kB
42.521 kB
react-tree
PersonaTree
145.111 kB
41.348 kB
react-tree
Tree
144.361 kB
41.232 kB
react-utilities
SSRProvider
180 B
160 B
🤖 This report was generated against 003fbca97aa7ca34ca343664e81ec7c95b2aeef6

@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch 2 times, most recently from 4716d92 to 5897acd Compare October 31, 2025 00:37
@github-actions
Copy link

Pull request demo site: URL

@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 5897acd to 7d55897 Compare November 3, 2025 13:19
@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 57e4027 to 0971f0d Compare November 4, 2025 20:07
@mainframev mainframev marked this pull request as ready for review November 4, 2025 20:51
@mainframev mainframev requested review from a team and spmonahan as code owners November 4, 2025 20:51
Copy link
Contributor

@dmytrokirpa dmytrokirpa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, but few things need to be clarified/addressed before merge:

  • not all eslint.config.js have rules from .eslintrc.json - is this intentional?
  • I don't get why we need lint script in package.json, couldn't we tweak the nx-executor instead?

@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 0971f0d to 13fbefb Compare November 10, 2025 22:42
@mainframev
Copy link
Contributor Author

mainframev commented Nov 10, 2025

Great job, but few things need to be clarified/addressed before merge:

  • not all eslint.config.js have rules from .eslintrc.json - is this intentional?
  • I don't get why we need lint script in package.json, couldn't we tweak the nx-executor instead?

Since this is temporary, I’m leaning toward keeping the logic in the npm scripts while we migrate all repos to flat ESLint configs and continue using the default target command. Later, we can update the workspace plugin to support only the new format.

I tried updating it now to run different ESLint commands based on a condition, and that works, but it conflicts with the targetDefaults.lint command. Also, not all apps/packages are covered by the workspace plugin yet.

So if I remove the default lint target and rely only on package-level lint scripts, it will work for the v9 packages, but since some packages don’t have their own lint script and there’s no default target anymore - we might lose lint coverage for some packages. 🤔

   "apps/rit-tests-v9/*",
        "apps/rit-tests-v8/*",

        "tools/**/*",
        "scripts/**/*",
        "packages/eslint-plugin/**",

        "packages/tokens/**",
        "packages/react-conformance/**",
        "packages/react-components/**/*",
        "packages/charts/react-charts/**/*",

        "packages/foundation-legacy/**",
        "packages/jest-serializer-merge-styles/**",
        "packages/react/**",
        "packages/react-cards/**",
        "packages/react-hooks/**",
        "packages/react-focus/**",
        "packages/react-examples/**",
        "packages/react-experiments/**",
        "packages/react-window-provider/**",
        "packages/react-icon-provider/**",
        "packages/charts/react-charting/**",
        "packages/utilities/**",
        "packages/react-icons-mdl2/**",
        "packages/react-monaco-editor/**",
        "packages/react-docsite-components/**",
        "packages/react-file-type-icons/**

@dmytrokirpa
Copy link
Contributor

dmytrokirpa commented Nov 11, 2025

Great job, but few things need to be clarified/addressed before merge:

  • not all eslint.config.js have rules from .eslintrc.json - is this intentional?
  • I don't get why we need lint script in package.json, couldn't we tweak the nx-executor instead?

Since this is temporary, I’m leaning toward keeping the logic in the npm scripts while we migrate all repos to flat ESLint configs and continue using the default target command. Later, we can update the workspace plugin to support only the new format.

I tried updating it now to run different ESLint commands based on a condition, and that works, but it conflicts with the targetDefaults.lint command. Also, not all apps/packages are covered by the workspace plugin yet.

So if I remove the default lint target and rely only on package-level lint scripts, it will work for the v9 packages, but since some packages don’t have their own lint script and there’s no default target anymore - we might lose lint coverage for some packages. 🤔

   "apps/rit-tests-v9/*",
        "apps/rit-tests-v8/*",

        "tools/**/*",
        "scripts/**/*",
        "packages/eslint-plugin/**",

        "packages/tokens/**",
        "packages/react-conformance/**",
        "packages/react-components/**/*",
        "packages/charts/react-charts/**/*",

        "packages/foundation-legacy/**",
        "packages/jest-serializer-merge-styles/**",
        "packages/react/**",
        "packages/react-cards/**",
        "packages/react-hooks/**",
        "packages/react-focus/**",
        "packages/react-examples/**",
        "packages/react-experiments/**",
        "packages/react-window-provider/**",
        "packages/react-icon-provider/**",
        "packages/charts/react-charting/**",
        "packages/utilities/**",
        "packages/react-icons-mdl2/**",
        "packages/react-monaco-editor/**",
        "packages/react-docsite-components/**",
        "packages/react-file-type-icons/**

Not sure I understand the issue you're facing, but here is what I meant and it works without any package.json or nx.json changes:

image

@mainframev
Copy link
Contributor Author

Great job, but few things need to be clarified/addressed before merge:

  • not all eslint.config.js have rules from .eslintrc.json - is this intentional?
  • I don't get why we need lint script in package.json, couldn't we tweak the nx-executor instead?

Since this is temporary, I’m leaning toward keeping the logic in the npm scripts while we migrate all repos to flat ESLint configs and continue using the default target command. Later, we can update the workspace plugin to support only the new format.
I tried updating it now to run different ESLint commands based on a condition, and that works, but it conflicts with the targetDefaults.lint command. Also, not all apps/packages are covered by the workspace plugin yet.
So if I remove the default lint target and rely only on package-level lint scripts, it will work for the v9 packages, but since some packages don’t have their own lint script and there’s no default target anymore - we might lose lint coverage for some packages. 🤔

   "apps/rit-tests-v9/*",
        "apps/rit-tests-v8/*",

        "tools/**/*",
        "scripts/**/*",
        "packages/eslint-plugin/**",

        "packages/tokens/**",
        "packages/react-conformance/**",
        "packages/react-components/**/*",
        "packages/charts/react-charts/**/*",

        "packages/foundation-legacy/**",
        "packages/jest-serializer-merge-styles/**",
        "packages/react/**",
        "packages/react-cards/**",
        "packages/react-hooks/**",
        "packages/react-focus/**",
        "packages/react-examples/**",
        "packages/react-experiments/**",
        "packages/react-window-provider/**",
        "packages/react-icon-provider/**",
        "packages/charts/react-charting/**",
        "packages/utilities/**",
        "packages/react-icons-mdl2/**",
        "packages/react-monaco-editor/**",
        "packages/react-docsite-components/**",
        "packages/react-file-type-icons/**

Not sure I understand the issue you're facing, but here is what I meant and it works without any package.json or nx.json changes:

image

I had it done almost in the same way, except it was passed to command, not to option.command and I guess that's why it did not work for me. I will check, thanks

@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 13fbefb to 38e2c60 Compare November 11, 2025 12:27
@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 38e2c60 to 23dacd9 Compare November 11, 2025 12:42
@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 37a6a25 to 6abd22b Compare November 11, 2025 15:44
@mainframev mainframev force-pushed the chore/migrate-to-eslint-flat-configs branch from 8609d48 to f639dca Compare November 11, 2025 17:56
@tudorpopams tudorpopams merged commit e3c76a5 into microsoft:master Nov 12, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants