Skip to content

Commit d48ac28

Browse files
committed
Neutralize react/prop-types
Due to it being in the recommended rules, just removing is not enough here.
1 parent 6e85077 commit d48ac28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

default.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ export const reactConfig = [
243243
"react/prefer-es6-class": "error",
244244
"react/self-closing-comp": "error",
245245
"react/void-dom-elements-no-children": "error",
246+
247+
// Removed in React 19 (https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops).
248+
// But still in the recommended rules (https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.37.5/docs/rules/prop-types.md).
249+
"react/prop-types": "off",
246250
},
247251
},
248252
];

0 commit comments

Comments
 (0)