-
Notifications
You must be signed in to change notification settings - Fork 4.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
Scripts: Add .prettierignore
, use in format
script
#30844
Conversation
Size Change: 0 B Total Size: 1.47 MB ℹ️ View Unchanged
|
985fe03
to
d4afc4d
Compare
It used this file before https://github.com/WordPress/gutenberg/blob/trunk/.eslintignore. |
Ah thanks, seems like I didn't check for the obvious 😅 I guess I'll have to add a root-level |
It would be great to add a small note in the README file that Prettier is used internally and the list of ignored files can be modified by using https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#format Plus a short note in the CHANGELOG for New Features: https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md#new-features |
This reverts commit d4afc4d.
10a6e42
to
47688d6
Compare
🎉 |
build-module | ||
build-types | ||
packages/block-serialization-spec-parser/parser.js | ||
packages/e2e-tests/plugins |
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.
Do you know why this was necessary? There's JavaScript there that seems like it should be formatted. I'll create a PR to remove this and see what happens.
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.
There are some test plugins with JS code that not necessarily are compatible with the linting rules established for Gutenberg plugin. Feel free to fix it.
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.
I'm trying in #62572.
Description
Follow-up to #30240 (comment).
Curiously, this causes a number of files in theEdit: Forgot to add a root-levele2e-tests
package to be formatted slightly differently than before. We'll need to find out why that is.prettierignore.
Thanks @gziolo for pointing that out!How has this been tested?