eslint-plugin-tailwindcss
Advanced tools
Comparing version 1.15.0 to 1.16.0
@@ -625,3 +625,28 @@ /** | ||
type: 'Border Color', | ||
members: 'border\\-${borderColor}', | ||
members: [ | ||
{ | ||
type: 'border-color', | ||
members: 'border\\-${borderColor}', | ||
}, | ||
{ | ||
type: 'border-top-color', | ||
mode: 'jit', | ||
members: 'border\\-t\\-${borderColor}', | ||
}, | ||
{ | ||
type: 'border-right-color', | ||
mode: 'jit', | ||
members: 'border\\-r\\-${borderColor}', | ||
}, | ||
{ | ||
type: 'border-bottom-color', | ||
mode: 'jit', | ||
members: 'border\\-b\\-${borderColor}', | ||
}, | ||
{ | ||
type: 'border-left-color', | ||
mode: 'jit', | ||
members: 'border\\-l\\-${borderColor}', | ||
}, | ||
], | ||
}, | ||
@@ -628,0 +653,0 @@ { |
@@ -39,4 +39,4 @@ /** | ||
if (isSingleLine(attrVal)) { | ||
// Fix multiple spaces | ||
attrVal = attrVal.replace(/\s{2,}/g, ' '); | ||
// Fix multiple spaces + trim | ||
attrVal = attrVal.replace(/\s{2,}/g, ' ').trim(); | ||
classNames = attrVal.split(' '); | ||
@@ -43,0 +43,0 @@ } else { |
@@ -337,2 +337,3 @@ /** | ||
function getGroups(groupsConfig, twConfig = null) { | ||
const jitEnabled = twConfig && twConfig.mode && twConfig.mode === 'jit'; | ||
const groups = []; | ||
@@ -349,3 +350,10 @@ groupsConfig.forEach((group) => { | ||
prop.members.forEach((subprop) => { | ||
groups.push(subprop.members); | ||
const jitOnly = subprop['mode'] === 'jit'; | ||
if (!jitOnly) { | ||
// Supported | ||
groups.push(subprop.members); | ||
} else if (jitEnabled) { | ||
// Only supported via JIT mode | ||
groups.push(subprop.members); | ||
} | ||
}); | ||
@@ -352,0 +360,0 @@ } |
{ | ||
"name": "eslint-plugin-tailwindcss", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"description": "Rules enforcing best practices while using Tailwind CSS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,2 +15,4 @@ # eslint-plugin-tailwindcss | ||
- Support for [per-side border-color in JIT](https://github.com/tailwindlabs/tailwindcss/pull/4404) | ||
- Better support for [JIT mode arbitrary values](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/40) | ||
@@ -17,0 +19,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92677
2742
139