Skip to content

Commit 2c1ba8c

Browse files
authored
Add example for rule vue/no-restricted-static-attribute (#2021)
1 parent edb7ec5 commit 2c1ba8c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/rules/no-restricted-static-attribute.md

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Alternatively, the rule also accepts objects.
4343
{
4444
"key": "stlye",
4545
"message": "Using \"stlye\" is not allowed. Use \"style\" instead."
46+
},
47+
{
48+
"key": "style",
49+
"element": "/^([A-Z][a-zA-Z_-]*)$/",
50+
"message": "Using \"style\" is not allowed in custom component. Use \"class\" instead."
4651
}
4752
]
4853
}

0 commit comments

Comments
 (0)