Open
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
eslint-plugin-mdx
Link to runnable example
No response
Steps to reproduce
import { Baz } from './Fixture'
export const foo = {
hi: `Fudge ${Baz.displayName || 'Baz'}`,
authors: [
'fred',
'sally'
]
}
export const hello = 'hello'
# Hello, world!
I'm an awesome paragraph.
{ /* I'm a comment */ }
<Foo bg="red">
<Bar>hi </Bar>
{ hello }
{ /* another comment */}
</Foo>
```
test codeblock
```
```js
module.exports = 'test'
```
```sh
npm i -g foo
```
| Test | Table |
| :--- | :---- |
| Col1 | Col2 |
export default ({children }) => < div>{ children}</div>
Expected behavior
Format with eslint-plugin-prettier
same as prettier
cli itself
Actual behavior
Incorrect formatting
Runtime
Node v20
Package manager
yarn v1
OS
macOS
Build and bundle tools
Rollup