Skip to content

Commit

Permalink
Add example for rule vue/no-restricted-static-attribute (#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
youxingz committed Oct 27, 2022
1 parent edb7ec5 commit 2c1ba8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/rules/no-restricted-static-attribute.md
Expand Up @@ -43,6 +43,11 @@ Alternatively, the rule also accepts objects.
{
"key": "stlye",
"message": "Using \"stlye\" is not allowed. Use \"style\" instead."
},
{
"key": "style",
"element": "/^([A-Z][a-zA-Z_-]*)$/",
"message": "Using \"style\" is not allowed in custom component. Use \"class\" instead."
}
]
}
Expand Down

0 comments on commit 2c1ba8c

Please sign in to comment.