[Formatting Bug]: The extension ignores, some properties of the main configuration file
alanfzf opened this issue · comments
Alan González commented
Platform
Linux
Template before formatting
@if ($solicitud->estado == 1 || $solicitud->estado == 2)
<x-modal id="modal-verificacion-{{ $solicitud->codigo }}" titulo="Imágenes de Verificación">
<x-slot name="button">
<x-action tooltip="Imágenes de Verificación" data-toggle="modal"
data-target="#modal-verificacion-{{ $solicitud->codigo }}">
<x-iconos.userHome />
</x-action>
</x-slot>
<x-slot name="body">
@include('SolicitudFinanciamiento.verificacion', [
'solicitud' => $solicitud
])</x-slot>
</x-modal>
@endif
Template after formatting
@if ($solicitud->estado == 1 || $solicitud->estado == 2)
<x-modal id="modal-verificacion-{{ $solicitud->codigo }}" titulo="Imágenes de Verificación">
<x-slot name="button">
<x-action tooltip="Imágenes de Verificación" data-toggle="modal"
data-target="#modal-verificacion-{{ $solicitud->codigo }}">
<x-iconos.userHome />
</x-action>
</x-slot>
<x-slot name="body">
@include('SolicitudFinanciamiento.verificacion', [
'solicitud' => $solicitud,
])</x-slot>
</x-modal>
@endif
Expected Behaviour
The formatter follows the main configuration file, instructions, and removes the trailing comma.
PS: i was able to test the behavior on a Mac M1 computer and it works, only on Linux machines are not following the main configuration file:
.bladeformatterrc.json
{
"indentSize": 4,
"wrapAttributes": "auto",
"wrapLineLength": 120,
"wrapAttributesMinAttrs": 2,
"indentInnerHtml": true,
"endWithNewLine": true,
"endOfLine": "LF",
"useTabs": false,
"sortTailwindcssClasses": false,
"sortHtmlAttributes": "none",
"noMultipleEmptyLines": false,
"noPhpSyntaxCheck": false,
"noSingleQuote": false,
"noTrailingCommaPhp": true,
"extraLiners": []
}
Behavior of the formattter
Relevant log output
No response
JaimeRax commented
I have the same problem!
😿
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days