-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eslint-rules): implement no-restricted-globals
type-aware rule
#32862
Merged
Hotell
merged 4 commits into
microsoft:master
from
Hotell:eslint-rules/no-restricted-globals
Oct 3, 2024
Merged
feat(eslint-rules): implement no-restricted-globals
type-aware rule
#32862
Hotell
merged 4 commits into
microsoft:master
from
Hotell:eslint-rules/no-restricted-globals
Oct 3, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hotell
changed the title
Eslint rules/no restricted globals
feat(eslint-rules): implement no-restricted-globals type-aware rule
Sep 18, 2024
🕵 fluentui-web-components-v3 No visual regressions between this PR and main |
🕵 FluentUIV0 No visual regressions between this PR and main |
📊 Bundle size report✅ No changes found |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 630 | 649 | 5000 | |
Button | mount | 305 | 312 | 5000 | |
Field | mount | 1143 | 1101 | 5000 | |
FluentProvider | mount | 692 | 695 | 5000 | |
FluentProviderWithTheme | mount | 83 | 90 | 10 | |
FluentProviderWithTheme | virtual-rerender | 39 | 35 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 83 | 76 | 10 | |
MakeStyles | mount | 873 | 856 | 50000 | |
Persona | mount | 1778 | 1696 | 5000 | |
SpinButton | mount | 1444 | 1394 | 5000 | |
SwatchPicker | mount | 1691 | 1689 | 5000 |
fabricteam
reviewed
Sep 18, 2024
Perf Analysis (
|
Scenario | Current PR Ticks | Baseline Ticks | Ratio | Regression Analysis |
---|---|---|---|---|
AccordionMinimalPerf.default | 85 | 89 | 0.96:1 | analysis |
Perf tests with no regressions
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
TreeWith60ListItems.default | 98 | 81 | 1.21:1 |
AvatarMinimalPerf.default | 119 | 103 | 1.16:1 |
CarouselMinimalPerf.default | 286 | 249 | 1.15:1 |
ImageMinimalPerf.default | 237 | 207 | 1.14:1 |
PortalMinimalPerf.default | 98 | 86 | 1.14:1 |
SkeletonMinimalPerf.default | 219 | 197 | 1.11:1 |
FormMinimalPerf.default | 237 | 219 | 1.08:1 |
DropdownManyItemsPerf.default | 406 | 379 | 1.07:1 |
RefMinimalPerf.default | 116 | 108 | 1.07:1 |
AttachmentMinimalPerf.default | 88 | 83 | 1.06:1 |
ChatWithPopoverPerf.default | 207 | 195 | 1.06:1 |
LayoutMinimalPerf.default | 215 | 202 | 1.06:1 |
LoaderMinimalPerf.default | 193 | 182 | 1.06:1 |
ItemLayoutMinimalPerf.default | 732 | 695 | 1.05:1 |
ListMinimalPerf.default | 325 | 310 | 1.05:1 |
IconMinimalPerf.default | 387 | 368 | 1.05:1 |
TextAreaMinimalPerf.default | 293 | 279 | 1.05:1 |
AttachmentSlotsPerf.default | 662 | 639 | 1.04:1 |
ChatDuplicateMessagesPerf.default | 151 | 146 | 1.03:1 |
HeaderSlotsPerf.default | 481 | 465 | 1.03:1 |
ListNestedPerf.default | 326 | 317 | 1.03:1 |
ProviderMinimalPerf.default | 208 | 201 | 1.03:1 |
SegmentMinimalPerf.default | 198 | 192 | 1.03:1 |
TextMinimalPerf.default | 198 | 193 | 1.03:1 |
ToolbarMinimalPerf.default | 563 | 547 | 1.03:1 |
TooltipMinimalPerf.default | 1307 | 1268 | 1.03:1 |
BoxMinimalPerf.default | 200 | 196 | 1.02:1 |
ButtonOverridesMissPerf.default | 654 | 643 | 1.02:1 |
EmbedMinimalPerf.default | 1883 | 1855 | 1.02:1 |
ProviderMergeThemesPerf.default | 655 | 640 | 1.02:1 |
TreeMinimalPerf.default | 488 | 478 | 1.02:1 |
AnimationMinimalPerf.default | 306 | 302 | 1.01:1 |
DialogMinimalPerf.default | 445 | 439 | 1.01:1 |
FlexMinimalPerf.default | 153 | 151 | 1.01:1 |
InputMinimalPerf.default | 547 | 539 | 1.01:1 |
MenuMinimalPerf.default | 517 | 510 | 1.01:1 |
MenuButtonMinimalPerf.default | 944 | 932 | 1.01:1 |
PopupMinimalPerf.default | 351 | 349 | 1.01:1 |
SliderMinimalPerf.default | 749 | 739 | 1.01:1 |
CheckboxMinimalPerf.default | 1150 | 1150 | 1:1 |
DividerMinimalPerf.default | 214 | 213 | 1:1 |
DropdownMinimalPerf.default | 1417 | 1415 | 1:1 |
LabelMinimalPerf.default | 217 | 216 | 1:1 |
RadioGroupMinimalPerf.default | 256 | 256 | 1:1 |
ReactionMinimalPerf.default | 212 | 212 | 1:1 |
CustomToolbarPrototype.default | 1475 | 1469 | 1:1 |
DatepickerMinimalPerf.default | 3641 | 3684 | 0.99:1 |
ListWith60ListItems.default | 368 | 372 | 0.99:1 |
SplitButtonMinimalPerf.default | 2236 | 2253 | 0.99:1 |
TableManyItemsPerf.default | 1091 | 1107 | 0.99:1 |
VideoMinimalPerf.default | 434 | 439 | 0.99:1 |
ButtonMinimalPerf.default | 86 | 88 | 0.98:1 |
ChatMinimalPerf.default | 434 | 445 | 0.98:1 |
HeaderMinimalPerf.default | 198 | 203 | 0.98:1 |
RosterPerf.default | 1583 | 1608 | 0.98:1 |
CardMinimalPerf.default | 303 | 312 | 0.97:1 |
TableMinimalPerf.default | 226 | 234 | 0.97:1 |
AlertMinimalPerf.default | 157 | 164 | 0.96:1 |
ButtonSlotsPerf.default | 304 | 318 | 0.96:1 |
GridMinimalPerf.default | 185 | 193 | 0.96:1 |
ListCommonPerf.default | 384 | 399 | 0.96:1 |
StatusMinimalPerf.default | 371 | 398 | 0.93:1 |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
BaseButton | mount | 635 | 620 | 5000 | |
Breadcrumb | mount | 1706 | 1725 | 1000 | |
Checkbox | mount | 1707 | 1718 | 5000 | |
CheckboxBase | mount | 1466 | 1490 | 5000 | |
ChoiceGroup | mount | 2947 | 2982 | 5000 | |
ComboBox | mount | 695 | 668 | 1000 | |
CommandBar | mount | 6621 | 6672 | 1000 | |
ContextualMenu | mount | 12711 | 12728 | 1000 | |
DefaultButton | mount | 786 | 792 | 5000 | |
DetailsRow | mount | 2188 | 2229 | 5000 | |
DetailsRowFast | mount | 2236 | 2218 | 5000 | |
DetailsRowNoStyles | mount | 2087 | 2009 | 5000 | |
Dialog | mount | 2801 | 2745 | 1000 | |
DocumentCardTitle | mount | 233 | 231 | 1000 | |
Dropdown | mount | 1997 | 2041 | 5000 | |
FocusTrapZone | mount | 1162 | 1165 | 5000 | |
FocusZone | mount | 1097 | 1092 | 5000 | |
GroupedList | mount | 42347 | 42241 | 2 | |
GroupedList | virtual-rerender | 19960 | 20401 | 2 | |
GroupedList | virtual-rerender-with-unmount | 51947 | 52142 | 2 | |
GroupedListV2 | mount | 230 | 230 | 2 | |
GroupedListV2 | virtual-rerender | 219 | 223 | 2 | |
GroupedListV2 | virtual-rerender-with-unmount | 224 | 230 | 2 | |
IconButton | mount | 1141 | 1144 | 5000 | |
Label | mount | 346 | 346 | 5000 | |
Layer | mount | 2722 | 2686 | 5000 | |
Link | mount | 406 | 399 | 5000 | |
MenuButton | mount | 1013 | 980 | 5000 | |
MessageBar | mount | 21497 | 21404 | 5000 | |
Nav | mount | 2047 | 2081 | 1000 | |
OverflowSet | mount | 802 | 780 | 5000 | |
Panel | mount | 1869 | 1794 | 1000 | |
Persona | mount | 737 | 755 | 1000 | |
Pivot | mount | 914 | 907 | 1000 | |
PrimaryButton | mount | 952 | 934 | 5000 | |
Rating | mount | 4750 | 4714 | 5000 | |
SearchBox | mount | 919 | 927 | 5000 | |
Shimmer | mount | 1930 | 1874 | 5000 | |
Slider | mount | 1303 | 1344 | 5000 | |
SpinButton | mount | 2981 | 2926 | 5000 | |
Spinner | mount | 391 | 379 | 5000 | |
SplitButton | mount | 1886 | 1893 | 5000 | |
Stack | mount | 426 | 429 | 5000 | |
StackWithIntrinsicChildren | mount | 887 | 856 | 5000 | |
StackWithTextChildren | mount | 2748 | 2788 | 5000 | |
SwatchColorPicker | mount | 6317 | 6361 | 5000 | |
TagPicker | mount | 1436 | 1457 | 5000 | |
Text | mount | 392 | 397 | 5000 | |
TextField | mount | 969 | 928 | 5000 | |
ThemeProvider | mount | 860 | 875 | 5000 | |
ThemeProvider | virtual-rerender | 600 | 586 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 1289 | 1296 | 5000 | |
Toggle | mount | 624 | 635 | 5000 | |
buttonNative | mount | 190 | 192 | 5000 |
Hotell
changed the title
feat(eslint-rules): implement no-restricted-globals type-aware rule
feat(eslint-rules): implement Sep 19, 2024
no-restricted-globals
type-aware rule
Hotell
force-pushed
the
eslint-rules/no-restricted-globals
branch
from
September 24, 2024 09:08
86dd65e
to
71dbd55
Compare
Hotell
force-pushed
the
eslint-rules/no-restricted-globals
branch
from
October 1, 2024 15:18
71dbd55
to
5f69005
Compare
github-actions
bot
modified the milestones:
September Project Cycle Q3 2024,
October Project Cycle Q4 2024
Oct 1, 2024
…ad of proto calls, add more jsdoc
Hotell
force-pushed
the
eslint-rules/no-restricted-globals
branch
from
October 1, 2024 15:25
5f69005
to
e2aa93c
Compare
1 task
Hotell
force-pushed
the
eslint-rules/no-restricted-globals
branch
from
October 1, 2024 15:45
e2aa93c
to
5e4fb10
Compare
Hotell
commented
Oct 1, 2024
Hotell
commented
Oct 1, 2024
🕵 fluentuiv8 No visual regressions between this PR and main |
dmytrokirpa
approved these changes
Oct 3, 2024
mltejera
pushed a commit
to mltejera/office-ui-fabric-react
that referenced
this pull request
Oct 3, 2024
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previous Behavior
New Behavior
Before:
After:
Related Issue(s)
no-restricted-globals
eslint rule #31286