Skip to content

Commit 1a3a17a

Browse files
controversialljharb
authored andcommitted
[Fix] require-default-props: fix config schema
1 parent 31282dd commit 1a3a17a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
55

66
## Unreleased
77

8+
### Fixed
9+
* [`require-default-props`]: fix config schema ([#3605][] @controversial)
10+
11+
[#3605]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3605
12+
813
## [7.33.0] - 2023.07.19
914

1015
### Added

lib/rules/require-default-props.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ module.exports = {
4141
type: 'boolean',
4242
},
4343
classes: {
44-
allow: {
45-
enum: ['defaultProps', 'ignore'],
46-
},
44+
enum: ['defaultProps', 'ignore'],
4745
},
4846
functions: {
49-
allow: {
50-
enum: ['defaultArguments', 'defaultProps', 'ignore'],
51-
},
47+
enum: ['defaultArguments', 'defaultProps', 'ignore'],
5248
},
5349
/**
5450
* @deprecated

0 commit comments

Comments
 (0)