Skip to content

Commit 27d868d

Browse files
authored
Fix #378 - enforces-shorthand does not work for h- & w- when prefixed (#379)
1 parent 6dd917e commit 27d868d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/enforces-shorthand.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ module.exports = {
243243
}
244244
// Test if the body of the class matches, eg. 'h-' inside 'h-10'
245245
if (mode === 'value') {
246-
const bodyMatch = inputSet.some((inputClassPattern) => inputClassPattern === remainingClass.body);
246+
const bodyMatch = inputSet.some((inputClassPattern) => `${mergedConfig.prefix}${inputClassPattern}` === remainingClass.body);
247247
if ([undefined, null].includes(mergedConfig.theme.size)) {
248248
return false;
249249
}

0 commit comments

Comments
 (0)