Skip to content

Commit 3558a25

Browse files
committed
chore: only check exact case
1 parent 385fd6a commit 3558a25

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

docs/rules/no-deprecated-slot-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This rule reports deprecated `slot` attribute in Vue.js v2.6.0+.
5050
```
5151

5252
- `"ignore"` (`string[]`) An array of tags or regular expression patterns (e.g. `/^custom-/`) that ignore these rules. This option will check both kebab-case and PascalCase versions of the given tag names. Default is empty.
53-
- `"ignoreParents"` (`string[]`) An array of tags or regular expression patterns (e.g. `/^custom-/`) for parents that ignore these rules. This option is especially useful for [Web-Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components). This option will check both kebab-case and PascalCase versions of the given tag names. Default is empty.
53+
- `"ignoreParents"` (`string[]`) An array of tags or regular expression patterns (e.g. `/^custom-/`) for parents that ignore these rules. This option is especially useful for [Web-Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components). Default is empty.
5454

5555
### `"ignore": ["my-component"]`
5656

lib/rules/syntaxes/slot-attribute.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,7 @@ module.exports = {
140140

141141
const parent = component.parent
142142
const parentName = isVElement(parent) ? parent.rawName : null
143-
if (
144-
parentName &&
145-
isAnyParentIgnored(
146-
parentName,
147-
casing.pascalCase(parentName),
148-
casing.kebabCase(parentName)
149-
)
150-
) {
143+
if (parentName && isAnyParentIgnored(parentName)) {
151144
return
152145
}
153146

0 commit comments

Comments
 (0)