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

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

Open
aaarichter opened this issue May 15, 2024 · 0 comments
Open

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

aaarichter opened this issue May 15, 2024 · 0 comments

Comments

@aaarichter
Copy link

aaarichter commented May 15, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant