diff --git a/CHANGELOG.md b/CHANGELOG.md index 818b33cc0e..d8b95aa600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## Unreleased +### Fixed +* [`require-default-props`]: fix config schema ([#3605][] @controversial) + +[#3605]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3605 + ## [7.33.0] - 2023.07.19 ### Added diff --git a/lib/rules/require-default-props.js b/lib/rules/require-default-props.js index 3976e9d833..c1b83bcff0 100644 --- a/lib/rules/require-default-props.js +++ b/lib/rules/require-default-props.js @@ -41,14 +41,10 @@ module.exports = { type: 'boolean', }, classes: { - allow: { - enum: ['defaultProps', 'ignore'], - }, + enum: ['defaultProps', 'ignore'], }, functions: { - allow: { - enum: ['defaultArguments', 'defaultProps', 'ignore'], - }, + enum: ['defaultArguments', 'defaultProps', 'ignore'], }, /** * @deprecated