-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Expand directories in CLI #6128
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
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Nice!
.prettierrc{
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
},
{
"files": "*.hehe",
"options": {
"parser": "html"
}
}
]
} |
|
@lydell I'm not sure those were questions but the answers are:
|
|
There's still something missing: match files by their filenames instead of their extensions. Luckily globby has an option for that. I'll see how that goes tomorrow morning. |
|
Memory leak 😔 |
|
Hey! Unfortunately I'm afraid I won't have much resources to spend on this anytime soon 😕 |
|
So I ditched We can continue to support it, but it was easier to drop and I judged this suits better in |
|
@lydell what happens now is:
|
|
@duailibe what is blocker? I think we should use same behavior as in eslint to better DX, i can investigate and put here information about how it is works in eslint |
|
@evilebottnawi not much.. we just need to iron everything out. Also, this is a breaking change, so this will be in Prettier 2.0 |
|
Is there a way support for |
|
/cc @lydell we can't move this to old 2.0, it is very important and it is breaking change, we should do this for |
|
By “stretch” I meant “stretch goals.” If we have time we can do it. (Related: I have a new idea for the CLI/API that I’ll make an issue for soon.) |
|
@lydell unfortunately we cannot stretch this issue because it is really a big change and important, i can take care |
|
Of course we can wait doing this. Time’s up for making a breaking change. We literally can’t push 2.0 any longer into the future because supporting old Node.js undermines the whole project. So we can’t have 2.0 depend on this feature, because it is not super easy to do. But if you manage to do it before January that would of course be super awesome! |
|
@lydell it is easy, i will send a PR at end of month ⭐ |
|
Can we release this in 2.0? postpone to 3.0? |
|
@sosukesuzuki Yes we can, need continue work 😄 You can be champion |
|
@evilebottnawi Okay, I'll work on this. |
|
/cc @fisker Can you help with this? I think we need open a new PR, graceful for help |
|
@evilebottnawi It seems I don't have too much time in next few days, and this seems a little tricky, may need more time. Are we going to ship in v2? |
|
@fisker yes, because it is will big breaking change and the next major version ( |
|
@evilebottnawi I'm sorry but I'm not be able to work on this, my wife is having a baby. Someone please take over. |
|
Superseded by #7660 |
Support folders in Prettier CLI, e.g.
prettier --write .works@kachkaev with the update of globby we were using, if
nodeModulesDirdoesn't exist, it crashes. Can you check if my update to the plugin resolution makes sense?TODO:
Closes #6085