Skip to content

Commit 6f91910

Browse files
ST-DDTwaynzh
andauthored
Update lib/rules/syntaxes/slot-attribute.js
Co-authored-by: Wayne Zhang <waynzh19@gmail.com>
1 parent c5df221 commit 6f91910

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/rules/syntaxes/slot-attribute.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ module.exports = {
130130
function reportSlot(slotAttr) {
131131
const componentName = slotAttr.parent.parent.rawName
132132
if (
133-
ignorePatterns.some((pattern) => pattern.test(componentName)) ||
134-
ignorePatterns.some((pattern) =>
135-
pattern.test(casing.pascalCase(componentName))
136-
) ||
137-
ignorePatterns.some((pattern) =>
138-
pattern.test(casing.kebabCase(componentName))
133+
ignorePatterns.some(
134+
(pattern) =>
135+
pattern.test(componentName) ||
136+
pattern.test(casing.pascalCase(componentName)) ||
137+
pattern.test(casing.kebabCase(componentName))
139138
)
140139
) {
141140
return

0 commit comments

Comments
 (0)