Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
It would be great to have linter rules to avoid common mistakes with using Fluent UI. I'm creating this feature request to also track ideas for linter rules.
https://github.com/microsoft/fluentui/tree/master/packages/eslint-plugin and https://github.com/microsoft/fluentui/tree/master/tools/eslint-rules exist, but both seem to be designed for internal development rather than act as public packages.
Possible rules
Have you discussed this feature with our team
Martin Hochel
Additional context
I've written some linter rules already and would be happy to upstream them.
Validations
Priority
Low
Library
React Components / v9 (@fluentui/react-components)
Describe the feature that you would like added
It would be great to have linter rules to avoid common mistakes with using Fluent UI. I'm creating this feature request to also track ideas for linter rules.
https://github.com/microsoft/fluentui/tree/master/packages/eslint-plugin and https://github.com/microsoft/fluentui/tree/master/tools/eslint-rules exist, but both seem to be designed for internal development rather than act as public packages.
Possible rules
bundleIconinside a React component, move it to the module scope (already written)<Dialog>either wraps<DialogSurface>or aforwardRefcomponent<Tooltip>wraps aforwardRefcomponent and supportsaria-label,onPointerEnter, etc as props. (unless the tooltip is inaccessible){ className: 'foo', children: <Icon /> }) over divs (such as<div className="foo"><Icon /></div>)typographyStylesover fontSize + lineHeight tokensbundleIconare named "*Filled" and "*Regular"disabledanddisabledFocusableHave you discussed this feature with our team
Martin Hochel
Additional context
I've written some linter rules already and would be happy to upstream them.
Validations
Priority
Low