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
Configure ignore files, from the prettier config file #13088
Comments
Do you have a use case you would like to write in |
The main use case for me is when I have stylelint, eslint and markdownlint
set upalong with prettier. I can copy and paste out of their json config
files (all use a an array to set ignores). Whereas prettier I can't reuse
the ignore config, unless I create 4x separate ignore files.
…On Sun, 10 Jul 2022, 8:16 am Sosuke Suzuki, ***@***.***> wrote:
Do you have a use case you would like to write in .prettierrc instead of
.prettierignore? At least for me, .prettierignore is enough.
—
Reply to this email directly, view it on GitHub
<#13088 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTWGA3RE4VYFLROU4PH3SDVTLZL7ANCNFSM53EEWUOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I was also looking for this after discovering ESLint's |
I believe this is required to bring prettier's configuration behavior in line with ESLint and StyleLint. |
I like this suggestion by @ivodolenc: #12672 (comment) ( |
This would be super easy for sharing configuration and ignored files. @fisker any plans to implement this? It's not a breaking change and an opt-in feature. |
@kevinwolfcr there exists a work-in-progress PR that aims to do something similar: #12672. #3460 is the main discussion thread for this feature request. That other issue is named a bit differently, but comments suggest to use the same approach as here (search for |
Environments:
Steps to reproduce:
Expected behavior:
.prettierrc.json
{
"ignoreFiles" : [ "/build/**"}
}
Actual behavior:
Its not possible add an ignore config to prettiers config file (based on the docs).
The only ways seems to be to have to use a .prettierignore file.
While this is easy, its one more config file to deal with. EsLint and Sylelint both allow setting ignores in the config file.
The text was updated successfully, but these errors were encountered: