You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Using eslint flat config as provided in the docs (e.g. import prettier from 'eslint-config-prettier/recommended'
// src/foo.ts (normal prettierrc should apply)console.log('Hello world. I am letting you know that this is a very long line, really exceeding the 80 chars and this should be wrapped by prettier');
// subfolder/bar.ts (overrides should apply)console.log('Hello world. I am letting you know that this is a very long line, really exceeding the 80 chars but this should not be wrapped by prettier');
What did you expect to happen?
When I run prettier -w on the codebase, I see the overrides applied, e.g. the src/foo.ts is wrapped whereas the subfolder/bar.ts is written in one long line.
What actually happened?
When I run eslint --fix, I see the lines wrapped in both files. Additionally, VSCode shows an linting error in both files (while it should only show an error for the src/foo.ts.
The text was updated successfully, but these errors were encountered:
I'm seeing a similar issue in my project where prettier.format is invoked and passed the .prettierrc object for it's second parameter, but it's ignoring overrides specified in the object. The overrides work properly via the CLI, but not via the API. I assume the flaw is with prettier rather than eslint-plugin-prettier.
What version of
eslint
are you using?8.57.0
What version of
prettier
are you using?3.2.5
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)Using eslint flat config as provided in the docs (e.g.
import prettier from 'eslint-config-prettier/recommended'
What source code are you linting?
What did you expect to happen?
When I run prettier -w on the codebase, I see the overrides applied, e.g. the src/foo.ts is wrapped whereas the subfolder/bar.ts is written in one long line.
What actually happened?
When I run eslint --fix, I see the lines wrapped in both files. Additionally, VSCode shows an linting error in both files (while it should only show an error for the src/foo.ts.
The text was updated successfully, but these errors were encountered: