Skip to content

Commit

Permalink
Revert cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danreeves committed Sep 17, 2024
1 parent 18a2d38 commit 399954f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/rules/no-unstable-nested-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function Component() {
"off" | "warn" | "error",
{
"allowAsProps": true | false,
"customValidators": [] /* optional array of validators used for propTypes validation */
"propNamePattern": string
}
]
Expand Down
6 changes: 6 additions & 0 deletions lib/rules/no-unstable-nested-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ module.exports = {
schema: [{
type: 'object',
properties: {
customValidators: {
type: 'array',
items: {
type: 'string',
},
},
allowAsProps: {
type: 'boolean',
},
Expand Down

0 comments on commit 399954f

Please sign in to comment.