Skip to content

Commit

Permalink
fix schema and test
Browse files Browse the repository at this point in the history
  • Loading branch information
noshiro-pf committed Jun 12, 2024
1 parent 9a0317d commit 81e21f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/jsx-no-constructed-context-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module.exports = {
url: docsUrl('jsx-no-constructed-context-values'),
},
messages,
schema: undefined,
schema: [],
},

// eslint-disable-next-line arrow-body-style
Expand Down
1 change: 0 additions & 1 deletion tests/lib/rules/jsx-no-constructed-context-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ ruleTester.run('react-no-constructed-context-values', rule, {
},
{
code: 'function Component() { const foo = useMemo(() => { return {} }, []); return (<Context.Provider value={foo}></Context.Provider>)}',
options: [{ allowArrowFunctions: true }],
},
{
code: `
Expand Down

0 comments on commit 81e21f3

Please sign in to comment.