Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixed the schema of jsx-no-constructed-context-values.js#3766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
noshiro-pf wants to merge2 commits intojsx-eslint:master
base:master
Choose a base branch
Loading
fromnoshiro-pf:patch-1

Conversation

noshiro-pf
Copy link

The schema forjsx-no-constructed-context-values did not seem to satisfy eslint'sRule.RuleMetaData["schema"] type, so I fixed it.

exportnamespaceRule{interfaceRuleMetaData{...schema?:JSONSchema4|JSONSchema4[]|undefined;...}

@@ -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 }],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

i understand that this is incorrect and should be removed.

however, must it be? I'm asking specifically if the schema change causes this to fail. if that's the case for end users, then the schema change is breaking.

@ljharbljharbforce-pushed themaster branch 2 times, most recently from380e32c to51d342bCompareJuly 4, 2024 15:25
@ljharbljharb marked this pull request as draftJuly 16, 2024 18:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ljharbljharbljharb left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@noshiro-pf@ljharb

[8]ページ先頭

©2009-2025 Movatter.jp