@angular-eslint/eslint-plugin 20.1.2-alpha.18 → 20.1.2-alpha.19
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":"no-uncalled-signals.d.ts","sourceRoot":"","sources":["../../src/rules/no-uncalled-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAIlC,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AACnE,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAE/C,
|
|
1
|
+
{"version":3,"file":"no-uncalled-signals.d.ts","sourceRoot":"","sources":["../../src/rules/no-uncalled-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAIlC,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AACnE,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAE/C,wBA0DG"}
|
|
@@ -27,9 +27,11 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
27
27
|
if (node.parent.type === utils_1.AST_NODE_TYPES.CallExpression) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
// Check if this identifier is the property in a MemberExpression that's being called
|
|
30
|
+
// Check if this identifier is the property or object in a MemberExpression that's being called.
|
|
31
|
+
// If the identifier is a signal and it's being called, then the signal's value is being read.
|
|
32
|
+
// If it's the object, then a method on the signal (most likely the `set` method) is being called.
|
|
31
33
|
if (node.parent.type === utils_1.AST_NODE_TYPES.MemberExpression &&
|
|
32
|
-
node.parent.property === node &&
|
|
34
|
+
(node.parent.object === node || node.parent.property === node) &&
|
|
33
35
|
node.parent.parent?.type === utils_1.AST_NODE_TYPES.CallExpression) {
|
|
34
36
|
return;
|
|
35
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "20.1.2-alpha.
|
|
3
|
+
"version": "20.1.2-alpha.19",
|
|
4
4
|
"description": "ESLint plugin for Angular applications, following https://angular.dev/style-guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"ts-api-utils": "^2.1.0",
|
|
22
|
-
"@angular-eslint/bundled-angular-compiler": "20.1.2-alpha.
|
|
23
|
-
"@angular-eslint/utils": "20.1.2-alpha.
|
|
22
|
+
"@angular-eslint/bundled-angular-compiler": "20.1.2-alpha.19",
|
|
23
|
+
"@angular-eslint/utils": "20.1.2-alpha.19"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@angular-eslint/test-utils": "20.1.2-alpha.
|
|
26
|
+
"@angular-eslint/test-utils": "20.1.2-alpha.19"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0",
|