Skip to content

issue with typed configs from typescript-eslint & eslint9 --fix #658

@aaarichter

Description

@aaarichter

What version of eslint are you using?
eslint 9.2.0

What version of prettier are you using?
prettier 3.5.2

What version of eslint-plugin-prettier are you using?
5.1.3

Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)
see flat config setup in https://github.com/aaarichter/eslint-prettier-plugin-issue/blob/main/eslint.config.js

What source code are you linting?
https://github.com/aaarichter/eslint-prettier-plugin-issue/blob/main/src/ts-test/normal-ts.ts

What did you expect to happen?

The plugin should work with the typed configs from typescript-eslint - eg. recommendedTypeChecked. When using the recommended one, the issue does not occur.

What actually happened?
When running eslint . --fix initially, there seems to be some issue with the eslint typescript parser, which produces the output shown in the screenshot below. Eslint & prettier fixing still applies, but the output by eslint is very confusing.

The issue does not occur when either switch to the typescript-eslint recommended config, or remove the eslint-plugin-prettier, or use only the eslint . command

Screenshot 2024-05-15 at 10 28 53

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions