Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Formatting Bug]: The extension ignores, some properties of the main configuration file #837

Open
alanfzf opened this issue Apr 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@alanfzf
Copy link

alanfzf commented Apr 11, 2024

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

image

Relevant log output

No response

@alanfzf alanfzf added the bug Something isn't working label Apr 11, 2024
@JaimeRax
Copy link

I have the same problem!
😿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants