@plumeria/eslint-plugin 18.2.29 → 18.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -641,7 +641,7 @@ function isValidTextDecorationLine(value) {
|
|
|
641
641
|
return tokens.every((token) => {
|
|
642
642
|
if (varRegex.test(token))
|
|
643
643
|
return true;
|
|
644
|
-
if (decorationValues.includes(token)
|
|
644
|
+
if (decorationValues.includes(token))
|
|
645
645
|
return !usedValues.has(token) && usedValues.add(token);
|
|
646
646
|
return false;
|
|
647
647
|
});
|
|
@@ -1533,8 +1533,11 @@ function getValidator(key) {
|
|
|
1533
1533
|
'step-end',
|
|
1534
1534
|
].join('|');
|
|
1535
1535
|
const zeroToOne = '(0(\\.\\d+)?|1(\\.0+)?|0?\\.\\d+)';
|
|
1536
|
-
const
|
|
1537
|
-
const
|
|
1536
|
+
const progressPattern = `(?:${zeroToOne}|${varString})`;
|
|
1537
|
+
const controlPointPattern = `(?:-?\\d+(\\.\\d+)?|${varString})`;
|
|
1538
|
+
const cubicBezierPattern = `cubic-bezier\\(\\s*(?:${varString}|${progressPattern}\\s*,\\s*${controlPointPattern}\\s*,\\s*${progressPattern}\\s*,\\s*${controlPointPattern})\\s*\\)`;
|
|
1539
|
+
const linearStopPattern = `${progressPattern}(?:\\s+(?:\\d+(\\.\\d+)?%|${varString})){0,2}`;
|
|
1540
|
+
const linearPattern = `linear\\(\\s*(?:${varString}|${linearStopPattern}(?:\\s*,\\s*${linearStopPattern})*)\\s*\\)`;
|
|
1538
1541
|
const positiveIntegerPattern = '[1-9]\\d*';
|
|
1539
1542
|
const atLeastTwoIntegerPattern = '(?:[2-9]|[1-9]\\d+)';
|
|
1540
1543
|
const stepPositionPattern = `(?:jump-start|jump-end|jump-both|start|end|${varString})`;
|