[code-infra] Enable undefined addition to optional properties
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
- [x] I have followed (at least) the PR section of the contributing guide.
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
Bundle size report
| Bundle | Parsed size | Gzip size |
|---|---|---|
| @base-ui-components/react | 0B(0.00%) | 0B(0.00%) |
Check out the code infra dashboard for more information about this PR.
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.