@angular-eslint/eslint-plugin-template 21.2.1-alpha.9 → 21.3.1-alpha.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"prefer-template-literal.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-template-literal.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,SAAS,0BAA0B,CAAC;AAE1C,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC;AAC1C,eAAO,MAAM,SAAS,4BAA4B,CAAC;;;;AA0FnD,wBA+IG;AAEH,eAAO,MAAM,mBAAmB;;CAG/B,CAAC"}
1
+ {"version":3,"file":"prefer-template-literal.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-template-literal.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,SAAS,0BAA0B,CAAC;AAE1C,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC;AAC1C,eAAO,MAAM,SAAS,4BAA4B,CAAC;;;;AA8FnD,wBA+IG;AAEH,eAAO,MAAM,mBAAmB;;CAG/B,CAAC"}
@@ -41,7 +41,9 @@ function chainContainsString(node) {
41
41
  */
42
42
  function flattenBinaryConcat(node) {
43
43
  const unwrapped = (0, unwrap_parenthesized_expression_1.unwrapParenthesizedExpression)(node);
44
- if (unwrapped instanceof bundled_angular_compiler_1.Binary && unwrapped.operation === '+') {
44
+ if (unwrapped instanceof bundled_angular_compiler_1.Binary &&
45
+ unwrapped.operation === '+' &&
46
+ chainContainsString(unwrapped)) {
45
47
  // Recursively flatten both sides
46
48
  return [
47
49
  ...flattenBinaryConcat(unwrapped.left),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin-template",
3
- "version": "21.2.1-alpha.9",
3
+ "version": "21.3.1-alpha.0",
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.2.1-alpha.9",
24
- "@angular-eslint/utils": "21.2.1-alpha.9"
23
+ "@angular-eslint/utils": "21.3.1-alpha.0",
24
+ "@angular-eslint/bundled-angular-compiler": "21.3.1-alpha.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/aria-query": "5.0.4",
28
- "@angular-eslint/test-utils": "21.2.1-alpha.9"
28
+ "@angular-eslint/test-utils": "21.3.1-alpha.0"
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.2.1-alpha.9"
35
+ "@angular-eslint/template-parser": "21.3.1-alpha.0"
36
36
  },
37
37
  "gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
38
38
  }