@angular-eslint/eslint-plugin-template 20.1.2-alpha.15 → 20.1.2-alpha.17
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.
|
@@ -39,7 +39,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
39
39
|
if (!node.value.source || node.value.ast instanceof bundled_angular_compiler_1.Interpolation) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
const possibleBinary = extractPossibleBinaryOrConditionalFrom(getParser().parseBinding(node.value.source,
|
|
42
|
+
const possibleBinary = extractPossibleBinaryOrConditionalFrom(getParser().parseBinding(node.value.source, node.valueSpan, 0).ast);
|
|
43
43
|
const totalComplexity = getTotalComplexity(possibleBinary);
|
|
44
44
|
if (totalComplexity <= maxComplexity) {
|
|
45
45
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"are-equivalent-asts.d.ts","sourceRoot":"","sources":["../../src/utils/are-equivalent-asts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,
|
|
1
|
+
{"version":3,"file":"are-equivalent-asts.d.ts","sourceRoot":"","sources":["../../src/utils/are-equivalent-asts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EAqBJ,MAAM,0CAA0C,CAAC;AAElD,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,OAAO,CA4IzD"}
|
|
@@ -94,16 +94,6 @@ function areEquivalentASTs(a, b) {
|
|
|
94
94
|
if (a instanceof bundled_angular_compiler_1.Chain && b instanceof bundled_angular_compiler_1.Chain) {
|
|
95
95
|
return areEquivalentASTArrays(a.expressions, b.expressions);
|
|
96
96
|
}
|
|
97
|
-
if (a instanceof bundled_angular_compiler_1.PropertyWrite && b instanceof bundled_angular_compiler_1.PropertyWrite) {
|
|
98
|
-
return (a.name === b.name &&
|
|
99
|
-
areEquivalentASTs(a.receiver, b.receiver) &&
|
|
100
|
-
areEquivalentASTs(a.value, b.value));
|
|
101
|
-
}
|
|
102
|
-
if (a instanceof bundled_angular_compiler_1.KeyedWrite && b instanceof bundled_angular_compiler_1.KeyedWrite) {
|
|
103
|
-
return (areEquivalentASTs(a.key, b.key) &&
|
|
104
|
-
areEquivalentASTs(a.receiver, b.receiver) &&
|
|
105
|
-
areEquivalentASTs(a.value, b.value));
|
|
106
|
-
}
|
|
107
97
|
if (a instanceof bundled_angular_compiler_1.TypeofExpression && b instanceof bundled_angular_compiler_1.TypeofExpression) {
|
|
108
98
|
return areEquivalentASTs(a.expression, b.expression);
|
|
109
99
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin-template",
|
|
3
|
-
"version": "20.1.2-alpha.
|
|
3
|
+
"version": "20.1.2-alpha.17",
|
|
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/
|
|
24
|
-
"@angular-eslint/
|
|
23
|
+
"@angular-eslint/bundled-angular-compiler": "20.1.2-alpha.17",
|
|
24
|
+
"@angular-eslint/utils": "20.1.2-alpha.17"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/aria-query": "5.0.4",
|
|
28
|
-
"@angular-eslint/test-utils": "20.1.2-alpha.
|
|
28
|
+
"@angular-eslint/test-utils": "20.1.2-alpha.17"
|
|
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",
|
|
34
34
|
"typescript": "*",
|
|
35
|
-
"@angular-eslint/template-parser": "20.1.2-alpha.
|
|
35
|
+
"@angular-eslint/template-parser": "20.1.2-alpha.17"
|
|
36
36
|
},
|
|
37
37
|
"gitHead": "e2006e5e9c99e5a943d1a999e0efa5247d29ec24"
|
|
38
38
|
}
|