antfu / eslint-config

Anthony's ESLint config preset
https://eslint-config.antfu.me/
MIT License
3.41k stars 400 forks source link

Failed to format vue file. #488

Closed coderwyd closed 1 month ago

coderwyd commented 1 month ago

Describe the bug

Automatic repair using eslint in vscode failed. image image

Reproduction

https://github.com/coderwyd/eslint-vue-format-repo

Eslint Version

"eslint": "^9.3.0",
"eslint-plugin-format": "^0.1.1",
"@antfu/eslint-config": "^2.19.0",
"@unocss/eslint-plugin": "^0.60.3",
"vue": "^3.4.27",

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
    Memory: 3.30 GB / 15.72 GB
  Binaries:
    Node: 20.13.1 - ~\AppData\Local\Volta\tools\image\node\20.13.1\node.EXE
    npm: 10.5.2 - ~\AppData\Local\Volta\tools\image\node\20.13.1\npm.CMD
    pnpm: 9.1.2 - ~\AppData\Local\Volta\tools\image\pnpm\9.1.2\bin\pnpm.CMD
    bun: 1.1.0 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.3527

Used Package Manager

pnpm

Validations

Contributions

antfu commented 1 month ago

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.

Why reproduction is required

coderwyd commented 1 month ago

Sorry, I overlooked this. I've added minimal reproductions.

lwm98 commented 1 month ago

eslint config 那里要显示开启vue文件format(css如需也要),具体readme文件中有readme

Eden-Sun commented 1 month ago

It works well if removing the tab

截圖 2024-05-29 上午9 31 12 截圖 2024-05-29 上午9 32 36
coderwyd commented 1 month ago

Damn, I didn't notice the label and when I took it off I realized he worked just fine, thank you!