-
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
🐛 type/bugThis is a problemThis is a problem🙆 yes/confirmedThis is confirmed and ready to be worked onThis is confirmed and ready to be worked on
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
2.0.5
Link to runnable example
No response
Steps to reproduce
// test.mdx
```jsx
let a = (
<App prop="foo">{'bar'}</App> // ❌ error Curly braces are unnecessary here react/jsx-curly-brace-presence
)
```
<App prop="foo">{'bar'}</App> // 😬 nothing here
and
```jsx
let a = <App prop={'foo'}>bar</App> ❌ error Curly braces are unnecessary here react/jsx-curly-brace-presence
```
<App prop={'foo'}>bar</App> ❌ error Curly braces are unnecessary here react/jsx-curly-brace-presence / error Empty components are self-closing react/self-closing-comp
Expected behavior
should report only react/jsx-curly-brace-presence
errors
Actual behavior
reports react/jsx-curly-brace-presence
and react/self-closing-comp
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
adrienimagine, csantos-nydig and mwojslaw
Metadata
Metadata
Assignees
Labels
🐛 type/bugThis is a problemThis is a problem🙆 yes/confirmedThis is confirmed and ready to be worked onThis is confirmed and ready to be worked on