Commit d29de5f
Disable react/prop-types project-wide; drop dead PropTypes from TogglePanel
React 19 removed runtime propTypes validation. The rule still ships
in plugin:react/recommended (jsx-eslint/eslint-plugin-react#3753
tracks removing it) but no longer reflects this codebase's reality.
- .eslintrc: set react/prop-types: 0 with rationale pointing at the
upstream issue.
- ServerComponentsPage / LiveActivity / CommentsFeed: drop the per-file
`/* eslint-disable react/prop-types */` workarounds from 7b9093e;
the rule is now off everywhere.
- TogglePanel: drop the prop-types import and the `TogglePanel.propTypes`
declaration we introduced; React 19 doesn't validate them.
Existing components elsewhere with their own PropTypes are unaffected —
the rule only ever required declarations, never validated; disabling
just stops the requirement.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7b9093e commit d29de5f
5 files changed
Lines changed: 5 additions & 12 deletions
File tree
- client/app/bundles/server-components
- components
- ror_components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 34 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
0 commit comments