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

IgnorePatterns Support (like ESLint 7.x) #10086

Closed
xboy2012 opened this issue Jan 19, 2021 · 1 comment
Closed

IgnorePatterns Support (like ESLint 7.x) #10086

xboy2012 opened this issue Jan 19, 2021 · 1 comment
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue

Comments

@xboy2012
Copy link

Currently there's no support to specify ignores in .prettierrc/.prettierrc.js/etc

Therefore, we must write all ignores in .prettierignore, hard coded.

Could prettier have similar IgnorePatterns support like in ESLint 7.x

https://eslint.org/docs/user-guide/configuring#ignorepatterns-in-config-files

That'll be very usefull when using .prettierrc.js to dynamicly decide what files to ignore.

Environments:

  • Prettier Version: 2.2.1
  • Running Prettier via:
  • Runtime:
  • Operating System:

Steps to reproduce:

Expected behavior:

Actual behavior:

@xboy2012
Copy link
Author

xboy2012 commented Jan 19, 2021

duplicate #4708

@thorn0 thorn0 added the type:duplicate Issues that are a duplicate of a previous issue label Jan 19, 2021
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Apr 20, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue
Projects
None yet
Development

No branches or pull requests

2 participants