@hyperframes/lint 0.7.53 → 0.7.55

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/browser.js CHANGED
@@ -479,10 +479,11 @@ var coreRules = [
479
479
  ];
480
480
  },
481
481
  // missing_timeline_registry + timeline_registry_missing_init
482
- ({ source, rawSource, options }) => {
482
+ ({ source, rawSource, rootTag, options }) => {
483
483
  if (options.isSubComposition || rawSource.trimStart().toLowerCase().startsWith("<template")) {
484
484
  return [];
485
485
  }
486
+ if (/(?:^|\s)data-no-timeline(?=[\s=/]|$)/i.test(rootTag?.attrs || "")) return [];
486
487
  const findings = [];
487
488
  if (!TIMELINE_REGISTRY_INIT_PATTERN.test(source) && !TIMELINE_REGISTRY_ASSIGN_PATTERN.test(source) && !TIMELINE_REGISTRY_OBJECT_LITERAL_PATTERN.test(source)) {
488
489
  findings.push({