From c0ccbcf8430c9fc93916410107adb594d1416edf Mon Sep 17 00:00:00 2001 From: Loilo Date: Sun, 17 Sep 2023 12:50:51 +0200 Subject: [PATCH] feat: add 'format' npm script --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 2812f72..ba40f76 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,8 @@ "@prettier/plugin-php": "^0.20.1", "@prettier/plugin-xml": "^3.2.1", "prettier": "^3.0.3" + }, + "scripts": { + "format": "prettier --plugin @prettier/plugin-php --plugin @prettier/plugin-xml --write 'src/**/*.php' 'test/**/*.php' '*.xml'" } }