From 7ec8959b144cfce64e6f9cf23df88352f4db4583 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 2 Mar 2026 15:43:10 +0100 Subject: [PATCH] Use prettier for blade templates --- .prettierrc | 16 +++++++++++++--- package.json | 4 +++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.prettierrc b/.prettierrc index edc17868b..0129c08a8 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,6 +1,16 @@ { - "printWidth": 100, "singleQuote": true, - "tabWidth": 4, - "trailingComma": "es5" + "trailingComma": "all", + "plugins": [ + "./node_modules/prettier-plugin-blade", + "./node_modules/prettier-plugin-tailwindcss" + ], + "overrides": [ + { + "files": "*.blade.php", + "options": { + "parser": "blade" + } + } + ] } diff --git a/package.json b/package.json index ae0ad6588..aa6ec9769 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "axios": "^1.13.5", "lodash": "^4.17.23", "npm-check-updates": "^19.6.2", - "prettier": "^3.8.1", + "prettier": "3.8.1", + "prettier-plugin-blade": "2.1.21", + "prettier-plugin-tailwindcss": "^0.7.2", "tailwindcss": "^4.2.1", "vite": "^7.3", "vue": "^3.5.29"