-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Add proseWrap: never option to prettier md parsing #22688
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
But lint
check is failing. You should run prettier (i.e. yarn run format
) and include changed files in this PR to make it pass.
Oh, thanks ! I'll update it in a bit. |
I ran |
@kartik918 Mind resolving conflicts? Also, you should probably merge master and run As for linting in CI - it runs the following commands:
Currently, it fails on |
Thanks for getting back on this, I did everything and have ran the tests locally successfully. They should be all good now. |
Did you run |
Okay I did everything including Screenshots:
Sorry for the wall of commits haha, please squash and merge if the tests go green some day. |
More Screenshots for other tests,
This is a weird error since gatsby-core-utils should be visible to babel-preset-gatsby. |
Still getting this error after fixing referencing
|
Fixed it, getting a new error. Isn't related to linting though " |
Considering the core change here is a one-liner, can I suggest you submit a new PR based on the current master? Just the two commits; prettier bump and the commit with all the prettier-changed changes. The change set and commits are getting a little unwieldy. The change to gatsby/.prettierrc affects 226 files locally for me. Only I spot checked most changes and they look okay. Two things jumped out to me: Code example that seems to get malformed: diff --git a/docs/tutorial/writing-documentation-with-docz.md b/docs/tutorial/writing-documentation-with-docz.md
index 5546e1300..535ae15b4 100644
--- a/docs/tutorial/writing-documentation-with-docz.md
+++ b/docs/tutorial/writing-documentation-with-docz.md
@@ -123,10 +123,7 @@ name: Button
menu: Components
---
-// highlight-start
-import { Playground, Props } from "docz"
-import { Button } from "./button"
-// highlight-end
+// highlight-start import { Playground, Props } from "docz" import { Button } from "./button" // highlight-end That seems weird, a specific markdown format that's not taken into account by Prettier? Another one that I'm not 100% sure about, but might be fine (there's a few of these), is diff --git a/docs/docs/starters.md b/docs/docs/starters.md
index a9402f1ce..19e551b9e 100644
--- a/docs/docs/starters.md
+++ b/docs/docs/starters.md
@@ -63,7 +63,7 @@ gatsby new blog ./Code/my-local-starter
Official starters are maintained by Gatsby.
| Starter | Demo/Docs | Use case | Features |
-| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------ | ---------------------------- |
+| --- | --- | --- | --- |
| [gatsby-starter-default](https://github.com/gatsbyjs/gatsby-starter-default) | [Demo](https://gatsby-starter-default-demo.netlify.com/) | Appropriate for most use cases | General Gatsby site |
| [gatsby-starter-blog](https://github.com/gatsbyjs/gatsby-starter-blog) | [Demo](https://gatsby-starter-blog-demo.netlify.com/) | Create a basic blog | Blog post pages and listings |
| [gatsby-starter-hello-world](https://github.com/gatsbyjs/gatsby-starter-hello-world) | [Demo](https://gatsby-starter-hello-world-demo.netlify.com/) | Learn Gatsby | Gatsby bare essentials | |
@pvdz did you run tests after the formatting? If all the checks come back green, let me know and I'll open a new PR for it. Thanks for reviewing this! |
I did not run all tests (plus, the only files changed were .md files so I'm not sure any test is even affected by it, apart from linting). I ran Note that there's some internal discussion around using a different formatter for the docs so I'm going to hold off on this PR/change for a bit until that discussion resolves. cc @tesseralis |
Oh I see this issue was already referenced by that issue :p |
I'll still open a new PR with a cleaner commit history since it doesn't seem like |
Fixes #21707