@deslop/coding-standards 0.1.1248 → 0.1.1249
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.
- package/dist/lint.js +2 -2
- package/package.json +1 -1
package/dist/lint.js
CHANGED
|
@@ -6909,8 +6909,8 @@ function amount(token, pattern) {
|
|
|
6909
6909
|
function violation(token) {
|
|
6910
6910
|
const name = pipe(token, split(":"), last, getOrElse(() => token), replaceAll(/^!|!$/gu, ""));
|
|
6911
6911
|
if (exists(amount(name, /^duration-(\d+)$/u), (value) => value >= 300)) return some$1("Keep a tween under 300 ms, such as duration-200.");
|
|
6912
|
-
if (matches(/^zoom-(?:in|out)$/u)(name) || exists(amount(name, /^zoom-(?:in|out)-(\d+)$/u), (value) => value < 90)) return some$1("Enter from 0.
|
|
6913
|
-
if (pipe(token, split(":"), dropRight(1), contains("starting")) && exists(amount(name, /^scale-(\d+)$/u), (value) => value < 90)) return some$1("Enter from 0.
|
|
6912
|
+
if (matches(/^zoom-(?:in|out)$/u)(name) || exists(amount(name, /^zoom-(?:in|out)-(\d+)$/u), (value) => value < 90)) return some$1("Enter from 0.95 scale with opacity: zoom-in-95.");
|
|
6913
|
+
if (pipe(token, split(":"), dropRight(1), contains("starting")) && exists(amount(name, /^scale-(\d+)$/u), (value) => value < 90)) return some$1("Enter from 0.95 scale with opacity: starting:scale-95.");
|
|
6914
6914
|
return none();
|
|
6915
6915
|
}
|
|
6916
6916
|
function check$2(context, node, text) {
|