Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
JounQin opened this issue Dec 11, 2023 · 0 comments
Open
4 tasks done

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

JounQin opened this issue Dec 11, 2023 · 0 comments
Assignees
Labels
🐛 type/bug This is a problem 🙆 yes/confirmed This is confirmed and ready to be worked on

Comments

@JounQin
Copy link
Member

JounQin commented Dec 11, 2023

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 JounQin added the 🐛 type/bug This is a problem label Dec 11, 2023
@JounQin JounQin self-assigned this Dec 11, 2023
@JounQin JounQin added the 🙆 yes/confirmed This is confirmed and ready to be worked on label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 type/bug This is a problem 🙆 yes/confirmed This is confirmed and ready to be worked on
Development

No branches or pull requests

1 participant