html-validate 7.17.0 → 7.18.1

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/cjs/core.js CHANGED
@@ -9495,7 +9495,7 @@ var rules = bundledRules;
9495
9495
 
9496
9496
  var defaultConfig = {};
9497
9497
 
9498
- const config$3 = {
9498
+ const config$4 = {
9499
9499
  rules: {
9500
9500
  "area-alt": ["error", { accessible: true }],
9501
9501
  "aria-hidden-body": "error",
@@ -9521,9 +9521,9 @@ const config$3 = {
9521
9521
  "wcag/h71": "error",
9522
9522
  },
9523
9523
  };
9524
- var a11y = config$3;
9524
+ var a11y = config$4;
9525
9525
 
9526
- const config$2 = {
9526
+ const config$3 = {
9527
9527
  rules: {
9528
9528
  "input-missing-label": "error",
9529
9529
  "heading-level": "error",
@@ -9532,7 +9532,15 @@ const config$2 = {
9532
9532
  "require-sri": "error",
9533
9533
  },
9534
9534
  };
9535
- var document = config$2;
9535
+ var document = config$3;
9536
+
9537
+ const config$2 = {
9538
+ rules: {
9539
+ "attr-quotes": "off",
9540
+ "void-style": "off",
9541
+ },
9542
+ };
9543
+ var prettier = config$2;
9536
9544
 
9537
9545
  const config$1 = {
9538
9546
  rules: {
@@ -9653,6 +9661,7 @@ var standard = config;
9653
9661
  const presets = {
9654
9662
  "html-validate:a11y": a11y,
9655
9663
  "html-validate:document": document,
9664
+ "html-validate:prettier": prettier,
9656
9665
  "html-validate:recommended": recommended,
9657
9666
  "html-validate:standard": standard,
9658
9667
  /* @deprecated aliases */
@@ -9850,8 +9859,8 @@ class Config {
9850
9859
  * Note: this reads configuration data from a file. If you intent to load
9851
9860
  * configuration for a file to validate use `ConfigLoader.fromTarget()`.
9852
9861
  *
9853
- * @param filename - The file to read from or one of the presets such as
9854
- * `html-validate:recommended`.
9862
+ * @internal
9863
+ * @param filename - The file to read from
9855
9864
  */
9856
9865
  static fromFile(filename) {
9857
9866
  const configdata = configDataFromFile(filename);
@@ -9971,6 +9980,8 @@ class Config {
9971
9980
  }
9972
9981
  /**
9973
9982
  * Get element metadata.
9983
+ *
9984
+ * @internal
9974
9985
  */
9975
9986
  getMetaTable() {
9976
9987
  /* use cached table if it exists */
@@ -10029,19 +10040,7 @@ class Config {
10029
10040
  */
10030
10041
  /* istanbul ignore next: used for testing only */
10031
10042
  get() {
10032
- const config = { ...this.config };
10033
- if (config.elements) {
10034
- config.elements = config.elements.map((cur) => {
10035
- if (typeof cur === "string") {
10036
- return cur.replace(this.rootDir, "<rootDir>");
10037
- }
10038
- else {
10039
- return cur;
10040
- }
10041
- });
10042
- }
10043
- delete config.extends;
10044
- return config;
10043
+ return { ...this.config };
10045
10044
  }
10046
10045
  /**
10047
10046
  * Get all configured rules, their severity and options.
@@ -11688,6 +11687,7 @@ class HtmlValidate {
11688
11687
  * Using CLI this is enabled with `--dump-tokens`. Mostly useful for
11689
11688
  * debugging.
11690
11689
  *
11690
+ * @internal
11691
11691
  * @param filename - Filename to tokenize.
11692
11692
  */
11693
11693
  dumpTokens(filename) {
@@ -11702,6 +11702,7 @@ class HtmlValidate {
11702
11702
  * Using CLI this is enabled with `--dump-events`. Mostly useful for
11703
11703
  * debugging.
11704
11704
  *
11705
+ * @internal
11705
11706
  * @param filename - Filename to dump events from.
11706
11707
  */
11707
11708
  dumpEvents(filename) {
@@ -11716,6 +11717,7 @@ class HtmlValidate {
11716
11717
  * Using CLI this is enabled with `--dump-tree`. Mostly useful for
11717
11718
  * debugging.
11718
11719
  *
11720
+ * @internal
11719
11721
  * @param filename - Filename to dump DOM tree from.
11720
11722
  */
11721
11723
  dumpTree(filename) {
@@ -11730,6 +11732,7 @@ class HtmlValidate {
11730
11732
  * Using CLI this is enabled with `--dump-source`. Mostly useful for
11731
11733
  * debugging.
11732
11734
  *
11735
+ * @internal
11733
11736
  * @param filename - Filename to dump source from.
11734
11737
  */
11735
11738
  dumpSource(filename) {
@@ -11845,7 +11848,7 @@ class HtmlValidate {
11845
11848
  /** @public */
11846
11849
  const name = "html-validate";
11847
11850
  /** @public */
11848
- const version = "7.17.0";
11851
+ const version = "7.18.1";
11849
11852
  /** @public */
11850
11853
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
11851
11854