@herb-tools/linter 0.9.1 → 0.9.2

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/loader.js CHANGED
@@ -2306,7 +2306,7 @@ class Token {
2306
2306
  }
2307
2307
 
2308
2308
  // NOTE: This file is generated by the templates/template.rb script and should not
2309
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.1/templates/javascript/packages/core/src/errors.ts.erb
2309
+ // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.2/templates/javascript/packages/core/src/errors.ts.erb
2310
2310
  class HerbError {
2311
2311
  type;
2312
2312
  message;
@@ -23627,7 +23627,7 @@ function deserializePrismNode(bytes, source) {
23627
23627
  }
23628
23628
 
23629
23629
  // NOTE: This file is generated by the templates/template.rb script and should not
23630
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.1/templates/javascript/packages/core/src/nodes.ts.erb
23630
+ // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.2/templates/javascript/packages/core/src/nodes.ts.erb
23631
23631
  class Node {
23632
23632
  type;
23633
23633
  location;
@@ -26717,7 +26717,7 @@ class ParseResult extends Result {
26717
26717
  }
26718
26718
 
26719
26719
  // NOTE: This file is generated by the templates/template.rb script and should not
26720
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.1/templates/javascript/packages/core/src/node-type-guards.ts.erb
26720
+ // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.2/templates/javascript/packages/core/src/node-type-guards.ts.erb
26721
26721
  /**
26722
26722
  * Type guard functions for AST nodes.
26723
26723
  * These functions provide type checking by combining both instanceof
@@ -27885,6 +27885,19 @@ function createWhitespaceNode() {
27885
27885
  });
27886
27886
  }
27887
27887
 
27888
+ // https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
27889
+ const HTML_BOOLEAN_ATTRIBUTES = new Set([
27890
+ "allowfullscreen", "async", "autofocus", "autoplay", "checked", "compact",
27891
+ "controls", "declare", "default", "defer", "disabled", "formnovalidate",
27892
+ "hidden", "inert", "ismap", "itemscope", "loop", "multiple", "muted",
27893
+ "nomodule", "nohref", "noresize", "noshade", "novalidate", "nowrap",
27894
+ "open", "playsinline", "readonly", "required", "reversed", "scoped",
27895
+ "seamless", "selected", "sortable", "truespeed", "typemustmatch",
27896
+ ]);
27897
+ function isBooleanAttribute(attributeName) {
27898
+ return HTML_BOOLEAN_ATTRIBUTES.has(attributeName.toLowerCase());
27899
+ }
27900
+
27888
27901
  /*
27889
27902
  * The following code is derived from the "js-levenshtein" repository,
27890
27903
  * Copyright (c) 2017 Gustaf Andersson (https://github.com/gustf/js-levenshtein)
@@ -28031,7 +28044,7 @@ function didyoumean(input, list, threshold) {
28031
28044
  }
28032
28045
 
28033
28046
  // NOTE: This file is generated by the templates/template.rb script and should not
28034
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.1/templates/javascript/packages/core/src/visitor.ts.erb
28047
+ // be modified manually. See /Users/marcoroth/Development/herb-release-0.9.2/templates/javascript/packages/core/src/visitor.ts.erb
28035
28048
  class Visitor {
28036
28049
  visit(node) {
28037
28050
  if (!node)
@@ -29427,13 +29440,6 @@ const HTML_VOID_ELEMENTS = new Set([
29427
29440
  "area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta",
29428
29441
  "param", "source", "track", "wbr",
29429
29442
  ]);
29430
- const HTML_BOOLEAN_ATTRIBUTES = new Set([
29431
- "autofocus", "autoplay", "checked", "controls", "defer", "disabled", "hidden",
29432
- "loop", "multiple", "muted", "readonly", "required", "reversed", "selected",
29433
- "open", "default", "formnovalidate", "novalidate", "itemscope", "scoped",
29434
- "seamless", "allowfullscreen", "async", "compact", "declare", "nohref",
29435
- "noresize", "noshade", "nowrap", "sortable", "truespeed", "typemustmatch"
29436
- ]);
29437
29443
  const HEADING_TAGS = new Set(["h1", "h2", "h3", "h4", "h5", "h6"]);
29438
29444
  /**
29439
29445
  * SVG elements that use camelCase naming
@@ -29588,12 +29594,6 @@ function isBlockElement(tagName) {
29588
29594
  function isVoidElement(tagName) {
29589
29595
  return HTML_VOID_ELEMENTS.has(tagName.toLowerCase());
29590
29596
  }
29591
- /**
29592
- * Checks if an attribute is a boolean attribute
29593
- */
29594
- function isBooleanAttribute(attributeName) {
29595
- return HTML_BOOLEAN_ATTRIBUTES.has(attributeName.toLowerCase());
29596
- }
29597
29597
  /**
29598
29598
  * Attribute visitor that provides granular processing based on both
29599
29599
  * attribute name type (static/dynamic) and value type (static/dynamic)