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: |
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.
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.
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.
Description
Follow-up to #30240 (comment).
Curiously, this causes a number of files in theEdit: Forgot to add a root-levele2e-testspackage 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?