-
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: Remove deprecated format-js
command
#40512
Conversation
Size Change: 0 B Total Size: 1.23 MB ℹ️ View Unchanged
|
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.
Some more occurrences to remove:
Line 258 in 47a5359
"format-js": "wp-scripts format-js", |
"format:js": "wp-scripts format-js", |
* src/index.js – for our JavaScript application | ||
* style.css – for the minimal stylesheet | ||
* package.json – for the build process | ||
- my-first-gutenberg-app.php – to create a new admin page |
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 have Prettier integrated with my IDE and this is why these changes got included. It's also surprising because all Markdown files were formatted with Prettier a few months ago...
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.
Yeah, that's kinda weird 🤔 I hope that we don't end up accidentally using different configs for prettier/markdown in our scripts and in our editor configs.
Anyway, it's just whitespace 😬 Even if this wasn't the format we want, it wouldn't be the end of the world.
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.
LGTM! Thanks @gziolo!
What?
format-js
command from@wordpress/scripts
got deprecated and replaced withformat
in #30240. It's about time to remove it completely as it's been almost a year since it happened. It was undocumented all that time so the old projects would already notice the warning.Why?
It's no longer used.
How?
Removes the code.