blade-parser-typescript
blade-parser-typescript copied to clipboard
A Laravel Blade parser, compiler, and static analyzer written in TypeScript.
I would first like to thank plugin author for creating this amazing prettier package. It's best one I have used. I saw that it adds two spaces after the `@error()`...
Given the following code, the formatter toggles parentheses around the variable assignment in the `@if` every time it runs: ```blade @if ($foo = $user->events()->first()) Test @endif ``` So it switches...
This plugin is excellent for formatting PHP templates with and without Blade syntax. Nested PHP tags do not appear to be indented unless there is HTML between them. ```php ```...
Hi, I'm running into a problem with formatting blade directives (space after), when using config `"useLaravelPint": true,`. If I run prettier on a single file it works, but if I...
## Problem Even when I set the [htmlWhitespaceSensitivity](https://prettier.io/docs/en/options.html#html-whitespace-sensitivity) rule to `strict`, the plugin keeps turning this: ```html [email protected]. ``` into this: ```html me @example.com. ``` Or even this: ```blade ```...
With ``` [*.blade.php] indent_size = 2 ``` This correctly indented snippet: ``` @if ($hasWhatsappButton) @endif ``` Becomes: ``` @if ($hasWhatsappButton) @endif ```
As per the sample, the lines in the `@if` statement will be indented to the right on every run. The weird thing is that it only happens to the first...
When multiple Blade echo braces (`{{}}`) appear inside a Blade comment, all new DOM nodes after that point in the document are removed. This: ```blade {{-- {{ }} {{ }}...
Hi, I have been using your extension for months now but I still run into this issue. The indentation is wrong/weird for multiline code inside blade directive and alpinejs attributes....
I have three files: - .prettierrc ```json { "plugins": ["@prettier/plugin-php", "prettier-plugin-blade", "prettier-plugin-tailwindcss"], "overrides": [ { "files": ["*.php"], "options": { "parser": "php" } }, { "files": ["*.blade.php"], "options": { "parser": "blade"...