Skip to content

Commit d3ac623

Browse files
committed
Build Tools: Configure prettier properly.
Allows tools like prettier or VSCode to auto-format JS files propertly. It pulls the prettier config that is used in the Gutenberg repository. Props gziolo. Fixes #60316. git-svn-id: https://develop.svn.wordpress.org/trunk@57330 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ba42713 commit d3ac623

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Import the default config file and expose it in the project root.
2+
// Useful for editor integrations.
3+
module.exports = require( '@wordpress/prettier-config' );

package-lock.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@wordpress/dependency-extraction-webpack-plugin": "4.25.13",
3232
"@wordpress/e2e-test-utils": "10.13.13",
3333
"@wordpress/e2e-test-utils-playwright": "0.10.13",
34+
"@wordpress/prettier-config": "2.25.13",
3435
"@wordpress/scripts": "26.13.13",
3536
"autoprefixer": "10.4.16",
3637
"chalk": "5.3.0",

0 commit comments

Comments
 (0)