Skip to content

Commit

Permalink
This PR updates the Linters
Browse files Browse the repository at this point in the history
  • Loading branch information
amjadr360 committed Aug 21, 2024
1 parent 560e7b1 commit 17190c7
Show file tree
Hide file tree
Showing 10 changed files with 2,397 additions and 3,029 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
20
1 change: 1 addition & 0 deletions assets/css/deprecate-style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* stylelint-disable */
/*
* Alignment styles.
* These rules are temporary, and should not be relied on or
Expand Down
16 changes: 6 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
{
"name": "extendify/extendable",
"type": "package",
"description": "WordPress default theme for 2022.",
"description": "Extendable WordPress theme.",
"keywords": [
"WordPress",
"Themes"
],
"homepage": "https://github.com/extendify/extendable",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=5.6"
"php": ">=7.4"
},
"require-dev": {
"szepeviktor/phpstan-wordpress": "^0.7.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"wptrt/wpthemereview": "^0.2.1",
"php-parallel-lint/php-parallel-lint": "^1.3"
"squizlabs/php_codesniffer": "^3.10",
"wp-coding-standards/wpcs": "^3.1"
},
"scripts": {
"analyze": "@php ./vendor/bin/phpstan analyze",
"lint": "@php ./vendor/bin/parallel-lint --exclude .git --exclude vendor .",
"standards:check": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"standards:fix": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
"lint": "phpcs --standard=phpcs.xml.dist"
},
"config": {
"allow-plugins": {
Expand Down
661 changes: 160 additions & 501 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function extendable_support() {
}
// Enqueue editor styles.
add_editor_style( $editor_style );

}

endif;
Expand Down Expand Up @@ -77,7 +76,7 @@ function extendable_styles() {
);
// Enqueue deprecate stylesheet.
wp_enqueue_style( 'extendable-deprecate-style' );
};
}
}

endif;
Expand Down Expand Up @@ -149,6 +148,5 @@ function extendable_register_pattern_categories() {
register_block_pattern_category( $name, $properties );
}
}

}
add_action( 'init', 'extendable_register_pattern_categories', 9 );
1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
// There is nothing output here because block themes do not use php templates.
// There is a core ticket discussing removing this requirement for block themes:
// https://core.trac.wordpress.org/ticket/54272.

Loading

0 comments on commit 17190c7

Please sign in to comment.