Skip to content

Conversation

youxingz
Copy link
Contributor

From the conversation of #2020, after some unnecessary work and the valuable comments from @FloEdelmann, I then added a example to the document to make it clearer.

The example of the element property about the rule vue/no-restricted-static-attribute:

options = [
    {
        "key": "style",
        "element": /^([A-Z$][a-zA-Z_$]*)$/,
        "message": "Using \"style\" is not allowed in custom component. Use \"class\" instead."
    }
]

@FloEdelmann FloEdelmann changed the title Add example of rule vue/no-restricted-static-attribute Add example for rule vue/no-restricted-static-attribute Oct 27, 2022
@FloEdelmann FloEdelmann merged commit 2c1ba8c into vuejs:master Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants