Skip to content

Commit

Permalink
[Fix] jsx-props-no-spreading: add explicitSpread option to schema
Browse files Browse the repository at this point in the history
Fixes #3799
  • Loading branch information
ljharb committed Sep 11, 2024
1 parent f435df9 commit ed64b24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
### Fixed
* [`function-component-definition`], [`boolean-prop-naming`], [`jsx-first-prop-new-line`], [`jsx-props-no-multi-spaces`], `propTypes`: use type args ([#3629][] @HenryBrown0)
* JSX pragma: fail gracefully ([#3632][] @ljharb)
* [`jsx-props-no-spreading`]: add `explicitSpread` option to schema ([#3799][] @ljharb)

### Changed
* [Tests] add @typescript-eslint/parser v6 ([#3629][] @HenryBrown0)
Expand All @@ -21,6 +22,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
* [types] add jsdoc type annotations ([#3731][] @y-hsgw)
* [Tests] `button-has-type`: add test case with spread ([#3731][] @y-hsgw)

[#3799]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3799
[#3632]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3632

[#3812]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3812
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/jsx-props-no-spreading.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ module.exports = {
custom: {
enum: [OPTIONS.enforce, OPTIONS.ignore],
},
explicitSpread: {
enum: [OPTIONS.enforce, OPTIONS.ignore],
},
exceptions: {
type: 'array',
items: {
Expand Down

0 comments on commit ed64b24

Please sign in to comment.