Skip to content

Commit 0b13772

Browse files
committed
chore: store different casings
1 parent b4daec8 commit 0b13772

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/rules/syntaxes/slot-attribute.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ module.exports = {
125125
*/
126126
function reportSlot(slotAttr) {
127127
const componentName = slotAttr.parent.parent.rawName
128+
const componentNamePascalCase = casing.pascalCase(componentName)
129+
const componentNameKebabCase = casing.kebabCase(componentName)
130+
128131
if (
129132
ignorePatterns.some(
130133
(pattern) =>
131134
pattern.test(componentName) ||
132-
pattern.test(casing.pascalCase(componentName)) ||
133-
pattern.test(casing.kebabCase(componentName))
135+
pattern.test(componentNamePascalCase) ||
136+
pattern.test(componentNameKebabCase)
134137
)
135138
) {
136139
return

0 commit comments

Comments
 (0)