Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 noChildrenProp doesn't check method name #3618

Closed
1 task done
MichaReiser opened this issue Nov 9, 2022 · 0 comments · Fixed by #3619
Closed
1 task done

🐛 noChildrenProp doesn't check method name #3618

MichaReiser opened this issue Nov 9, 2022 · 0 comments · Fixed by #3619
Assignees
Labels
A-Linter Area: linter L-JavaScript Langauge: JavaScript S-Bug: confirmed Status: report has been confirmed as a valid bug
Milestone

Comments

@MichaReiser
Copy link
Contributor

Environment information

Rome v10

What happened?

Rome incorrectly flags the passing of children in:

import React from 'react';

React.ddddd('div', {
  children: <Test />
})

Expected result

Rome should only flag the use of children for React.createElement

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@MichaReiser MichaReiser added S-Bug: confirmed Status: report has been confirmed as a valid bug A-Linter Area: linter L-JavaScript Langauge: JavaScript labels Nov 9, 2022
@MichaReiser MichaReiser self-assigned this Nov 9, 2022
@leops leops added this to the 10.0.1 milestone Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Linter Area: linter L-JavaScript Langauge: JavaScript S-Bug: confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants