Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stian-overasen committed Jun 24, 2024
1 parent 83ec291 commit 0450395
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/themes/block-theme/includes/setup-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ function do_enqueue_assets(): void {
// Set global styles as dependency to ensure correct loading order.
$deps = [ 'global-styles' ];

/* phpcs:disable
// Optionally set all WooCommerce styling as dependency.
/* if ( \class_exists( 'WooCommerce' ) ) {
if ( \class_exists( 'WooCommerce' ) ) {
// Optionally incluce Woo styling if plugin is active.
$deps[] = 'woocommerce-blocktheme';
$deps[] = 'woocommerce-general';
$deps[] = 'woocommerce-layout';
} */
}
phpcs:enable
*/

\wp_enqueue_style( 'block-theme', \get_template_directory_uri() . '/build/view.css', $deps, $assets_version );
}
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<file>.</file>
<arg name="extensions" value="php" />
<config name="testVersion" value="8.2-" />
<config name="text_domain" value="block-theme,block-library,default,t2,woocommerce"/>
<config name="text_domain" value="block-theme,block-library,default,t2,dekode,woocommerce"/>
<rule ref="Dekode">
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
Expand Down

0 comments on commit 0450395

Please sign in to comment.