diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000000..51b8aeb415 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,3 @@ +// Import the default config file and expose it in the project root. +// Useful for editor integrations. +module.exports = require( '@wordpress/prettier-config' ); diff --git a/package-lock.json b/package-lock.json index 620787e67e..2878dd629f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -112,6 +112,7 @@ "@wordpress/dependency-extraction-webpack-plugin": "4.25.13", "@wordpress/e2e-test-utils": "10.13.13", "@wordpress/e2e-test-utils-playwright": "0.10.13", + "@wordpress/prettier-config": "2.25.13", "@wordpress/scripts": "26.13.13", "autoprefixer": "10.4.16", "chalk": "5.3.0", diff --git a/package.json b/package.json index 6a9db66240..3a3e5de1f6 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@wordpress/dependency-extraction-webpack-plugin": "4.25.13", "@wordpress/e2e-test-utils": "10.13.13", "@wordpress/e2e-test-utils-playwright": "0.10.13", + "@wordpress/prettier-config": "2.25.13", "@wordpress/scripts": "26.13.13", "autoprefixer": "10.4.16", "chalk": "5.3.0",