@angular-eslint/eslint-plugin 20.1.2-alpha.9 → 20.2.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.
package/dist/configs/all.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": ["@angular-eslint"],
|
|
4
|
+
"rules": {
|
|
5
|
+
"@angular-eslint/component-class-suffix": "error",
|
|
6
|
+
"@angular-eslint/component-max-inline-declarations": "error",
|
|
7
|
+
"@angular-eslint/component-selector": "error",
|
|
8
|
+
"@angular-eslint/consistent-component-styles": "error",
|
|
9
|
+
"@angular-eslint/contextual-decorator": "error",
|
|
10
|
+
"@angular-eslint/contextual-lifecycle": "error",
|
|
11
|
+
"@angular-eslint/directive-class-suffix": "error",
|
|
12
|
+
"@angular-eslint/directive-selector": "error",
|
|
13
|
+
"@angular-eslint/no-async-lifecycle-method": "error",
|
|
14
|
+
"@angular-eslint/no-attribute-decorator": "error",
|
|
15
|
+
"@angular-eslint/no-conflicting-lifecycle": "error",
|
|
16
|
+
"@angular-eslint/no-developer-preview": "error",
|
|
17
|
+
"@angular-eslint/no-duplicates-in-metadata-arrays": "error",
|
|
18
|
+
"@angular-eslint/no-empty-lifecycle-method": "error",
|
|
19
|
+
"@angular-eslint/no-experimental": "error",
|
|
20
|
+
"@angular-eslint/no-forward-ref": "error",
|
|
21
|
+
"@angular-eslint/no-input-prefix": "error",
|
|
22
|
+
"@angular-eslint/no-input-rename": "error",
|
|
23
|
+
"@angular-eslint/no-inputs-metadata-property": "error",
|
|
24
|
+
"@angular-eslint/no-lifecycle-call": "error",
|
|
25
|
+
"@angular-eslint/no-output-native": "error",
|
|
26
|
+
"@angular-eslint/no-output-on-prefix": "error",
|
|
27
|
+
"@angular-eslint/no-output-rename": "error",
|
|
28
|
+
"@angular-eslint/no-outputs-metadata-property": "error",
|
|
29
|
+
"@angular-eslint/no-pipe-impure": "error",
|
|
30
|
+
"@angular-eslint/no-queries-metadata-property": "error",
|
|
31
|
+
"@angular-eslint/no-uncalled-signals": "error",
|
|
32
|
+
"@angular-eslint/pipe-prefix": "error",
|
|
33
|
+
"@angular-eslint/prefer-inject": "error",
|
|
34
|
+
"@angular-eslint/prefer-on-push-component-change-detection": "error",
|
|
35
|
+
"@angular-eslint/prefer-output-emitter-ref": "error",
|
|
36
|
+
"@angular-eslint/prefer-output-readonly": "error",
|
|
37
|
+
"@angular-eslint/prefer-signals": "error",
|
|
38
|
+
"@angular-eslint/prefer-standalone": "error",
|
|
39
|
+
"@angular-eslint/relative-url-prefix": "error",
|
|
40
|
+
"@angular-eslint/require-lifecycle-on-prototype": "error",
|
|
41
|
+
"@angular-eslint/require-localize-metadata": "error",
|
|
42
|
+
"@angular-eslint/runtime-localize": "error",
|
|
43
|
+
"@angular-eslint/sort-keys-in-type-decorator": "error",
|
|
44
|
+
"@angular-eslint/sort-lifecycle-methods": "error",
|
|
45
|
+
"@angular-eslint/use-component-selector": "error",
|
|
46
|
+
"@angular-eslint/use-component-view-encapsulation": "error",
|
|
47
|
+
"@angular-eslint/use-injectable-provided-in": "error",
|
|
48
|
+
"@angular-eslint/use-lifecycle-interface": "error",
|
|
49
|
+
"@angular-eslint/use-pipe-transform-interface": "error"
|
|
50
|
+
}
|
|
51
51
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": ["@angular-eslint"],
|
|
4
|
+
"rules": {
|
|
5
|
+
"@angular-eslint/contextual-lifecycle": "error",
|
|
6
|
+
"@angular-eslint/no-empty-lifecycle-method": "error",
|
|
7
|
+
"@angular-eslint/no-input-rename": "error",
|
|
8
|
+
"@angular-eslint/no-inputs-metadata-property": "error",
|
|
9
|
+
"@angular-eslint/no-output-native": "error",
|
|
10
|
+
"@angular-eslint/no-output-on-prefix": "error",
|
|
11
|
+
"@angular-eslint/no-output-rename": "error",
|
|
12
|
+
"@angular-eslint/no-outputs-metadata-property": "error",
|
|
13
|
+
"@angular-eslint/prefer-inject": "error",
|
|
14
|
+
"@angular-eslint/prefer-standalone": "error",
|
|
15
|
+
"@angular-eslint/use-pipe-transform-interface": "error",
|
|
16
|
+
"@angular-eslint/use-lifecycle-interface": "warn"
|
|
17
|
+
}
|
|
18
18
|
}
|
|
@@ -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
|
}
|
|
@@ -49,6 +49,9 @@ function isUrlInvalid(node) {
|
|
|
49
49
|
if (!node) {
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
|
+
if (utils_1.ASTUtils.isTemplateLiteral(node)) {
|
|
53
|
+
return !RELATIVE_URL_PREFIX_MATCHER.test(node.quasis[0].value.raw);
|
|
54
|
+
}
|
|
52
55
|
return (!utils_1.ASTUtils.isStringLiteral(node) ||
|
|
53
56
|
!RELATIVE_URL_PREFIX_MATCHER.test(node.value));
|
|
54
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "20.1
|
|
3
|
+
"version": "20.2.1-alpha.0",
|
|
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
|
|
23
|
-
"@angular-eslint/utils": "20.1
|
|
22
|
+
"@angular-eslint/bundled-angular-compiler": "20.2.1-alpha.0",
|
|
23
|
+
"@angular-eslint/utils": "20.2.1-alpha.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@angular-eslint/test-utils": "20.1
|
|
26
|
+
"@angular-eslint/test-utils": "20.2.1-alpha.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0",
|