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

[Fix]: detect missing keys in return statement with ternary operator#3928

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

Open
hyeonbinHur wants to merge1 commit intojsx-eslint:master
base:master
Choose a base branch
Loading
fromhyeonbinHur:issue3925

Conversation

hyeonbinHur
Copy link

@hyeonbinHur
Copy link
Author

Invalid Test Cases (4)

CaseScenarioAST Patterns Covered
1: Basic Patternreturn + ternary in map with ArrowFunction• ArrowFunction + BlockStatement + ReturnStatement
• ConditionalExpression with JSX elements
• Missing key detection in ternary branches
2: Function Expressionreturn + ternary in map with regular function• FunctionExpression + BlockStatement + ReturnStatement
• ConditionalExpression handling across function types
• Same logic applies to function() syntax
3: Array.from Methodreturn + ternary in Array.from iteration• Array.from + checkFunctionsBlockStatement call
• ConditionalExpression in different iteration contexts
• Multiple iteration method support
4: Fragment Contextreturn + ternary within Fragment (Original Issue)• Fragment + map + return + ternary pattern
• Real-world user scenario reproduction
• Issue#3925 exact replication

Valid Test Cases (1)

CaseScenarioCorresponding Invalid Case
1: Proper Keysreturn + ternary with correct key propsInvalid 1

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[Bug]: react/jsx-key rule is not applied when using return statement and ternary operator in iterator
1 participant
@hyeonbinHur

[8]ページ先頭

©2009-2025 Movatter.jp