Skip to content

[Bug]: EsLint not formatting the .vue files. #162

Description

@lohchab

Demo URL

No response

What happened?

The EsLint should properly format and fix all the code in opened .vue files but its not working but If I manually execute the eslint from command line it works but not inside the Visual Studio Code.

Eslint Debug Output
image

image

Reproduction steps

1. Use latest version of Visual Studio Code.
2. Install everything using pnpm install and run pnpm dev it will work fine.
3. Now open the project root directory in the Visual Studio Code, install all recommended extensions including Volar, Eslint and open any .vue file present in the .demo or .app folder. Make some changes that are not compliant with the EsLint Vue rules and eslint will not format anything or give any errors/problems.
...

Relevant log output

This is the error Visual Studio Code reports in the Notification.

Extension 'ESLint' is configured as formatter but it cannot format 'Vue'-files

What browsers are you seeing the problem on?

Other

What is your operating system?

Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions