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

Empty linebreaks after php directive #121

Open
jesperbeisner opened this issue Nov 26, 2024 · 2 comments
Open

Empty linebreaks after php directive #121

jesperbeisner opened this issue Nov 26, 2024 · 2 comments

Comments

@jesperbeisner
Copy link

Whenever I run the blade formatter I get this empty line breaks after an php directive. When I run the formatter multiple times, I get multiple empty line breaks. Why? How? 👀

image

@JohnathonKoster
Copy link
Contributor

Hi there! Would you be able to share your formatting config?

Thanks!

@jesperbeisner
Copy link
Author

jesperbeisner commented Nov 27, 2024

  • .blade.format.json
{
    "formatDirectivePhpParameters": false,
    "formatInsideEcho": false
}
  • .prettierrc
{
    "printWidth": 120,
    "tabWidth": 4,
    "useTabs": false,
    "singleQuote": true,
    "plugins": [
        "prettier-plugin-blade",
        "prettier-plugin-tailwindcss"
    ]
}

No pint for us unfortunately, we use php-cs-fixer directly. So this needs to work as a standalone component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants