base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

[code-infra] Enable undefined addition to optional properties

Open brijeshb42 opened this issue 1 month ago • 3 comments

Configured a new rule to error only in packages files (no docs or tests). It has autofix to add the | undefined type to the relevant optional types. Currently, it checks for all the optional types and there is not filtering (ie, only properties of exported types, etc). The main change is in the first commit. 2nd commit is the autofix.

Fixes - #1916 PR for the eslint rule - https://github.com/mui/mui-public/pull/909

brijeshb42 avatar Nov 21 '25 12:11 brijeshb42

vite-css-base-ui-example

pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/react@3302
pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/utils@3302

commit: 81fd5f4

pkg-pr-new[bot] avatar Nov 21 '25 12:11 pkg-pr-new[bot]

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

mui-bot avatar Nov 21 '25 12:11 mui-bot

Deploy Preview for base-ui ready!

Name Link
Latest commit 81fd5f4a7b8fc1109134c71a5b8b2295737a4c18
Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6923de8743ffc10008c184be
Deploy Preview https://deploy-preview-3302--base-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 21 '25 12:11 netlify[bot]