Commit b7ea65d
committed
Migrate to ESLint 10
## Summary
This PR prepares the codebase for ESLint 10 migration.
## Changes
### Package Updates
- Update `eslint` from 9.39.2 to ^10.0.2
- Update `@mui/internal-code-infra` to ^0.0.3 (requires publishing the updated code-infra package first)
### pnpm Configuration
- Add `packageExtensions` to override peer dependencies for ESLint plugins not yet officially supporting ESLint 10:
- eslint-plugin-react
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-react-hooks
## Prerequisites
This migration depends on publishing the updated `@mui/internal-code-infra` package (v0.0.3) from mui-public which contains:
- ESLint 10 compatibility fixes using `@eslint/compat`
- Updated peer dependencies
- Disabled new ESLint 10 rules initially
## Breaking Changes in ESLint 10
- Node.js < v20.19 is no longer supported
- New config lookup algorithm (starts from file directory)
- JSX references are now tracked
- `eslint-env` comments are reported as errors1 parent 8ccf4ea commit b7ea65d
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
160 | 184 | | |
161 | 185 | | |
162 | 186 | | |
| |||
0 commit comments