Skip to content

Issue in documentation for vue/block-order #2744

Open
@sbrauch

Description

@sbrauch

In the documentation I found this example which didn't work. I made it work by removing the additional parentheses.
Did not work
{
"vue/block-order": ["error", {
"order": [ [ "script", "template" ], "style" ]
}]
}

Worked for me
"vue/block-order": ["error", { order: ["script", "template", "style"] }],

If I'm not the only one, I think it's just a small documentation error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoneeds reproNeed a repository that can reproduce the problem, or a link to DEMO.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions