Skip to content

Commit

Permalink
Align the prettier configuration with WP (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
luistinygod authored Feb 14, 2025
1 parent dd8a4bd commit 78e8cb9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 34 deletions.
10 changes: 4 additions & 6 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
module.exports = {
useTabs: true,
tabWidth: 4,
singleQuote: true,
trailingComma: 'all',
};
// Import the default config file and expose it in the project root.
// Useful for editor integrations.
module.exports = require('@wordpress/prettier-config');
module.exports.printWidth = 120;
19 changes: 1 addition & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions packages/themes/block-theme/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
<h1 class="wp-block-heading" id="page-not-found">Page Not Found</h1>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>
The page you are looking for does not exist, or it has been moved.
Please try searching using the form below.
</p>
<p>The page you are looking for does not exist, or it has been moved. Please try searching using the form below.</p>
<!-- /wp:paragraph -->

<!-- wp:search /-->
Expand Down
8 changes: 2 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ module.exports = {
...scriptConfig,
plugins: [
...scriptConfig.plugins.filter(
(plugin) =>
![
'DependencyExtractionWebpackPlugin',
'BrowserSyncPlugin',
].includes(plugin.constructor.name),
(plugin) => !['DependencyExtractionWebpackPlugin', 'BrowserSyncPlugin'].includes(plugin.constructor.name)
),
new DependencyExtractionWebpackPlugin({
injectPolyfill: true,
Expand Down Expand Up @@ -46,7 +42,7 @@ module.exports = {
},
{
reload: false,
},
}
),
],
};

0 comments on commit 78e8cb9

Please sign in to comment.