-
-
Notifications
You must be signed in to change notification settings - Fork 205
Description
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
