Skip to content

prettier/prettier reports, but cannot be fixed automatically #491

Open
@JounQin

Description

@JounQin

Initial checklist

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions