@angular-eslint/eslint-plugin-template 21.3.1-alpha.1 → 21.3.1-alpha.3

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/README.md CHANGED
@@ -23,7 +23,7 @@ Please see https://github.com/angular-eslint/angular-eslint for full usage instr
23
23
  | Rule | Description | :white_check_mark: | :wrench: | :bulb: | :accessibility: |
24
24
  | --- | --- | --- | --- | --- | --- |
25
25
  | [`no-duplicate-attributes`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-duplicate-attributes.md) | Ensures that there are no duplicate input properties or output event listeners | | | :bulb: | |
26
- | [`no-nested-tags`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-nested-tags.md) | Denies nesting of <p> and <a> tags. | | | | |
26
+ | [`no-nested-tags`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-nested-tags.md) | Denies nesting of `<p>` and `<a>` tags. | | | | |
27
27
  <!-- prettier-ignore-end -->
28
28
 
29
29
  <!-- end problems rule list -->
@@ -10,7 +10,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
10
10
  meta: {
11
11
  type: 'problem',
12
12
  docs: {
13
- description: 'Denies nesting of <p> and <a> tags.',
13
+ description: 'Denies nesting of `<p>` and `<a>` tags.',
14
14
  },
15
15
  schema: [],
16
16
  messages: {
@@ -49,5 +49,5 @@ function hasAncestorOfSameType(node) {
49
49
  return false;
50
50
  }
51
51
  exports.RULE_DOCS_EXTENSION = {
52
- rationale: 'Nesting <p> tags inside other <p> tags, or <a> tags inside other <a> tags, is invalid HTML and causes serious issues with Angular hydration. All browsers automatically close the outer tag when they encounter the inner tag, transforming "<p>1<p>2</p>3</p>" into "<p>1</p><p>2</p>3" in the DOM. This creates a mismatch between the server-rendered HTML and what Angular expects during hydration, breaking incremental hydration and potentially causing runtime errors. The browser\'s automatic correction of invalid HTML happens before Angular processes the template, so Angular cannot fix or work around it. Always use different elements (like <p> and <span>, or nested <div> tags) or restructure your template to avoid nesting these specific tags.',
52
+ rationale: "Nesting `<p>` tags inside other `<p>` tags, or `<a>` tags inside other `<a>` tags, is invalid HTML and causes serious issues with Angular hydration. All browsers automatically close the outer tag when they encounter the inner tag, transforming `<p>1<p>2</p>3</p>` into `<p>1</p><p>2</p>3` in the DOM. This creates a mismatch between the server-rendered HTML and what Angular expects during hydration, breaking incremental hydration and potentially causing runtime errors. The browser's automatic correction of invalid HTML happens before Angular processes the template, so Angular cannot fix or work around it. Always use different elements (like `<p>` and `<span>`, or nested `<div>` tags) or restructure your template to avoid nesting these specific tags.",
53
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin-template",
3
- "version": "21.3.1-alpha.1",
3
+ "version": "21.3.1-alpha.3",
4
4
  "description": "ESLint plugin for Angular Templates",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "aria-query": "5.3.2",
22
22
  "axobject-query": "4.1.0",
23
- "@angular-eslint/bundled-angular-compiler": "21.3.1-alpha.1",
24
- "@angular-eslint/utils": "21.3.1-alpha.1"
23
+ "@angular-eslint/bundled-angular-compiler": "21.3.1-alpha.3",
24
+ "@angular-eslint/utils": "21.3.1-alpha.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/aria-query": "5.0.4",
28
- "@angular-eslint/test-utils": "21.3.1-alpha.1"
28
+ "@angular-eslint/test-utils": "21.3.1-alpha.3"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@typescript-eslint/types": "^7.11.0 || ^8.0.0",
32
32
  "@typescript-eslint/utils": "^7.11.0 || ^8.0.0",
33
33
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
34
34
  "typescript": "*",
35
- "@angular-eslint/template-parser": "21.3.1-alpha.1"
35
+ "@angular-eslint/template-parser": "21.3.1-alpha.3"
36
36
  },
37
37
  "gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
38
38
  }