Skip to content

Formatting of HTML Closing Tags #88

Discussion options

You must be logged in to vote

This can be accomplished by using Prettier's bracketSameLine option (https://prettier.io/docs/en/options.html#bracket-line).

Here is what that might look like (just a sample file):

{
    "bracketSameLine": true,
    "plugins": [
        "prettier-plugin-blade",
        "prettier-plugin-tailwindcss"
    ],
    "overrides": [
        {
            "files": [
                "*.blade.php"
            ],
            "options": {
                "parser": "blade"
            }
        }
    ]
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KennedyTedesco
Comment options

Answer selected by KennedyTedesco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants