You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-unused-selector.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,13 +91,15 @@ This is a limitation of this rule. Without this limitation, the root element can
91
91
"ignoreBEMModifier": false,
92
92
"captureClassesFromDoc": [],
93
93
"checkUnscoped": false,
94
+
"extraClassAttributes": [],
94
95
}]
95
96
}
96
97
```
97
98
98
99
-`ignoreBEMModifier` ... Set `true` if you want to ignore the `BEM` modifier. Default is false.
99
100
-`captureClassesFromDoc` ... Specifies the regexp that extracts the class name from the documentation in the comments. Even if there is no matching element, no error is reported if the document of a class name exists in the comments.
100
101
-`checkUnscoped` ... The rule only checks `<style scoped>` by default, but if set to `true` it will also check `<style>` without the scoped attribute. If you set it to `true`, be very careful that the warned CSS may actually be used outside the `.vue` file.
102
+
-`extraClassAttributes` ... Specifies an array of custom attribute names to check for class names in addition to the standard `class` attribute. Useful for frameworks that use custom attributes like `hover-class`, `placeholder-class`, etc. Default is an empty array.
0 commit comments