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

Add example for rule vue/no-restricted-static-attribute #2021

Merged
merged 2 commits into from Oct 27, 2022

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.

None yet

2 participants