We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4daec8 commit 0b13772Copy full SHA for 0b13772
lib/rules/syntaxes/slot-attribute.js
@@ -125,12 +125,15 @@ module.exports = {
125
*/
126
function reportSlot(slotAttr) {
127
const componentName = slotAttr.parent.parent.rawName
128
+ const componentNamePascalCase = casing.pascalCase(componentName)
129
+ const componentNameKebabCase = casing.kebabCase(componentName)
130
+
131
if (
132
ignorePatterns.some(
133
(pattern) =>
134
pattern.test(componentName) ||
- pattern.test(casing.pascalCase(componentName)) ||
- pattern.test(casing.kebabCase(componentName))
135
+ pattern.test(componentNamePascalCase) ||
136
+ pattern.test(componentNameKebabCase)
137
)
138
) {
139
return
0 commit comments