eslint-mdx icon indicating copy to clipboard operation
eslint-mdx copied to clipboard

`prettier/prettier` reports, but cannot be fixed automatically

Open JounQin opened this issue 1 year ago • 0 comments
trafficstars

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

JounQin avatar Dec 11 '23 13:12 JounQin