Adds Prettier formatting and PHP support

Adds Prettier for consistent code formatting across the project.
Includes PHP plugin and configures formatting for PHP files.
Adds format and format:check scripts to package.json for ease of use.
This commit is contained in:
2025-09-06 12:10:22 +02:00
parent d848d09800
commit 94078a7e6f
4 changed files with 258 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"tabWidth": 2,
"singleQuote": true,
"printWidth": 120,
"plugins": ["@prettier/plugin-php"],
"overrides": [
{
"files": "*.php",
"options": {
"parser": "php",
"tabWidth": 2,
"printWidth": 120,
"singleQuote": true
}
}
]
}