eslint-plugin-tailwindcss
Advanced tools
Comparing version 3.14.1-beta.0 to 3.14.1-beta.1
@@ -246,3 +246,7 @@ /** | ||
if (mode === 'value') { | ||
return inputSet.some((inputClassPattern) => inputClassPattern === remainingClass.body); | ||
const bodyMatch = inputSet.some((inputClassPattern) => inputClassPattern === remainingClass.body); | ||
// w-screen + h-screen ≠ size-screen (Issue #307) | ||
const validValue = | ||
bodyMatch && !(['w-', 'h-'].includes(remainingClass.body) && ['screen'].includes(remainingClass.value)); | ||
return validValue; | ||
} | ||
@@ -249,0 +253,0 @@ }); |
@@ -489,4 +489,4 @@ /** | ||
* | ||
* @param {String} name Classname to be find using patterns | ||
* @param {Array} group The group bein tested | ||
* @param {String} name Classname to be find using patterns (without modifiers) | ||
* @param {Array} group The group being tested | ||
* @param {Object} config Tailwind CSS config | ||
@@ -493,0 +493,0 @@ * @param {String} parentType The name of the parent group |
{ | ||
"name": "eslint-plugin-tailwindcss", | ||
"version": "3.14.1-beta.0", | ||
"version": "3.14.1-beta.1", | ||
"description": "Rules enforcing best practices while using Tailwind CSS", | ||
@@ -21,3 +21,2 @@ "keywords": [ | ||
"scripts": { | ||
"wip": "mocha tests/lib/rules/no-arbitrary-value.js", | ||
"test": "mocha tests --recursive" | ||
@@ -24,0 +23,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
188550
4813