From aa6e6783b7ebf7b720e100e8ba1c32ed99a725ba Mon Sep 17 00:00:00 2001 From: Timotei Date: Tue, 3 Sep 2024 19:19:17 +0300 Subject: [PATCH 1/2] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 85ef1dede..92a0a3532 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "description": "High-performance page caching and site optimization from LiteSpeed", "license": "GPLv3", "scripts": { - "format": "prettier --write . '**/*.php'", - "format-check": "prettier --check . '**/*.php'" + "format": "prettier --write . '**/*.{js,css,php}'", + "format-check": "prettier --check . '**/*.{js,css,php}'" }, "devDependencies": { "@prettier/plugin-php": "^0.21.0", From 63edda6e962d32c651a65169de15053578c9a48f Mon Sep 17 00:00:00 2001 From: Timotei Date: Fri, 6 Sep 2024 18:24:17 +0300 Subject: [PATCH 2/2] Change PHP version to 7.4 Min PHP version for WP 5.3 --- .prettierrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index 09fdb315e..9a3b4cb51 100644 --- a/.prettierrc +++ b/.prettierrc @@ -13,7 +13,7 @@ "arrowParens": "avoid", "braceStyle": "per-cs", "endOfLine": "auto", - "phpVersion": "5.3", + "phpVersion": "7.4", "printWidth": 180, "semi": true, "singleQuote": true,