@angular-eslint/eslint-plugin 19.5.1-alpha.10 → 19.5.1-alpha.11
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":"use-lifecycle-interface.d.ts","sourceRoot":"","sources":["../../src/rules/use-lifecycle-interface.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,uBAAuB,CAAC;AACjD,eAAO,MAAM,SAAS,4BAA4B,CAAC;;AAGnD,
|
|
1
|
+
{"version":3,"file":"use-lifecycle-interface.d.ts","sourceRoot":"","sources":["../../src/rules/use-lifecycle-interface.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,UAAU,GAAG,uBAAuB,CAAC;AACjD,eAAO,MAAM,SAAS,4BAA4B,CAAC;;AAGnD,wBAyEG"}
|
|
@@ -24,9 +24,14 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
24
24
|
...utils_1.ASTUtils.ANGULAR_LIFECYCLE_METHODS,
|
|
25
25
|
]);
|
|
26
26
|
return {
|
|
27
|
-
[`MethodDefinition[key.name=${angularLifecycleMethodsPattern}]`](
|
|
27
|
+
[`MethodDefinition[key.name=${angularLifecycleMethodsPattern}]`](node) {
|
|
28
|
+
const { key, parent: { parent }, } = node;
|
|
28
29
|
if (!utils_1.ASTUtils.getAngularClassDecorator(parent))
|
|
29
30
|
return;
|
|
31
|
+
// Do not report the method if it has the override keyword because it implies the base class is responsible for the implementation
|
|
32
|
+
if (node.override) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
30
35
|
const declaredLifecycleInterfaces = utils_1.ASTUtils.getDeclaredAngularLifecycleInterfaces(parent);
|
|
31
36
|
const methodName = key
|
|
32
37
|
.name;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "19.5.1-alpha.
|
|
3
|
+
"version": "19.5.1-alpha.11",
|
|
4
4
|
"description": "ESLint plugin for Angular applications, following https://angular.dev/style-guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-eslint/bundled-angular-compiler": "19.5.1-alpha.
|
|
22
|
-
"@angular-eslint/utils": "19.5.1-alpha.
|
|
21
|
+
"@angular-eslint/bundled-angular-compiler": "19.5.1-alpha.11",
|
|
22
|
+
"@angular-eslint/utils": "19.5.1-alpha.11"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@angular-eslint/test-utils": "19.5.1-alpha.
|
|
25
|
+
"@angular-eslint/test-utils": "19.5.1-alpha.11"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0",
|