@futdevpro/dynamo-eslint 1.15.6 → 1.15.8
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/.cursor/rules/_ag_frontend-structure.mdc +5 -5
- package/.dynamo/version-bump.config.json +5 -0
- package/.github/workflows/main.yml +424 -395
- package/.husky/pre-commit +1 -0
- package/__documentations/2026-04-18-ccap-review-integration.md +173 -0
- package/build/configs/base.js +20 -1
- package/build/configs/base.js.map +1 -1
- package/build/configs/ngx.js +10 -0
- package/build/configs/ngx.js.map +1 -1
- package/build/plugin/index.d.ts +21 -0
- package/build/plugin/index.d.ts.map +1 -1
- package/build/plugin/index.js +38 -0
- package/build/plugin/index.js.map +1 -1
- package/build/plugin/rules/angular/angular-for-track-logic.d.ts +8 -0
- package/build/plugin/rules/angular/angular-for-track-logic.d.ts.map +1 -0
- package/build/plugin/rules/angular/angular-for-track-logic.js +82 -0
- package/build/plugin/rules/angular/angular-for-track-logic.js.map +1 -0
- package/build/plugin/rules/angular/effect-signal-loop.d.ts +10 -0
- package/build/plugin/rules/angular/effect-signal-loop.d.ts.map +1 -0
- package/build/plugin/rules/angular/effect-signal-loop.js +113 -0
- package/build/plugin/rules/angular/effect-signal-loop.js.map +1 -0
- package/build/plugin/rules/angular/no-async-ngoninit.d.ts +9 -0
- package/build/plugin/rules/angular/no-async-ngoninit.d.ts.map +1 -0
- package/build/plugin/rules/angular/no-async-ngoninit.js +43 -0
- package/build/plugin/rules/angular/no-async-ngoninit.js.map +1 -0
- package/build/plugin/rules/angular/no-component-direct-api.d.ts +10 -0
- package/build/plugin/rules/angular/no-component-direct-api.d.ts.map +1 -0
- package/build/plugin/rules/angular/no-component-direct-api.js +76 -0
- package/build/plugin/rules/angular/no-component-direct-api.js.map +1 -0
- package/build/plugin/rules/angular/no-method-call-in-template.d.ts +9 -0
- package/build/plugin/rules/angular/no-method-call-in-template.d.ts.map +1 -0
- package/build/plugin/rules/angular/no-method-call-in-template.js +80 -0
- package/build/plugin/rules/angular/no-method-call-in-template.js.map +1 -0
- package/build/plugin/rules/angular/no-ngfor-directive.d.ts +8 -0
- package/build/plugin/rules/angular/no-ngfor-directive.d.ts.map +1 -0
- package/build/plugin/rules/angular/no-ngfor-directive.js +60 -0
- package/build/plugin/rules/angular/no-ngfor-directive.js.map +1 -0
- package/build/plugin/rules/angular/no-ngif-directive.d.ts +8 -0
- package/build/plugin/rules/angular/no-ngif-directive.d.ts.map +1 -0
- package/build/plugin/rules/angular/no-ngif-directive.js +60 -0
- package/build/plugin/rules/angular/no-ngif-directive.js.map +1 -0
- package/build/plugin/rules/naming-patterns.d.ts +4 -0
- package/build/plugin/rules/naming-patterns.d.ts.map +1 -1
- package/build/plugin/rules/naming-patterns.js +331 -8
- package/build/plugin/rules/naming-patterns.js.map +1 -1
- package/build/plugin/rules/no-getter-logic.d.ts.map +1 -1
- package/build/plugin/rules/no-getter-logic.js +21 -2
- package/build/plugin/rules/no-getter-logic.js.map +1 -1
- package/build/plugin/rules/require-jsdoc-description.d.ts.map +1 -1
- package/build/plugin/rules/require-jsdoc-description.js +17 -0
- package/build/plugin/rules/require-jsdoc-description.js.map +1 -1
- package/build/plugin/rules/ts/data-model-extends.d.ts +9 -0
- package/build/plugin/rules/ts/data-model-extends.d.ts.map +1 -0
- package/build/plugin/rules/ts/data-model-extends.js +95 -0
- package/build/plugin/rules/ts/data-model-extends.js.map +1 -0
- package/build/plugin/rules/ts/no-any-type.d.ts +9 -0
- package/build/plugin/rules/ts/no-any-type.d.ts.map +1 -0
- package/build/plugin/rules/ts/no-any-type.js +37 -0
- package/build/plugin/rules/ts/no-any-type.js.map +1 -0
- package/build/plugin/rules/ts/no-as-cast.d.ts +9 -0
- package/build/plugin/rules/ts/no-as-cast.d.ts.map +1 -0
- package/build/plugin/rules/ts/no-as-cast.js +50 -0
- package/build/plugin/rules/ts/no-as-cast.js.map +1 -0
- package/build/plugin/rules/ts/no-dynamic-imports.d.ts +9 -0
- package/build/plugin/rules/ts/no-dynamic-imports.d.ts.map +1 -0
- package/build/plugin/rules/ts/no-dynamic-imports.js +51 -0
- package/build/plugin/rules/ts/no-dynamic-imports.js.map +1 -0
- package/build/plugin/rules/ts/no-native-browser-dialogs.d.ts +9 -0
- package/build/plugin/rules/ts/no-native-browser-dialogs.d.ts.map +1 -0
- package/build/plugin/rules/ts/no-native-browser-dialogs.js +79 -0
- package/build/plugin/rules/ts/no-native-browser-dialogs.js.map +1 -0
- package/build/plugin/rules/ts/no-plain-function-export.d.ts +10 -0
- package/build/plugin/rules/ts/no-plain-function-export.d.ts.map +1 -0
- package/build/plugin/rules/ts/no-plain-function-export.js +70 -0
- package/build/plugin/rules/ts/no-plain-function-export.js.map +1 -0
- package/build/plugin/rules/ts/one-export-per-file.d.ts +9 -0
- package/build/plugin/rules/ts/one-export-per-file.d.ts.map +1 -0
- package/build/plugin/rules/ts/one-export-per-file.js +74 -0
- package/build/plugin/rules/ts/one-export-per-file.js.map +1 -0
- package/package.json +6 -9
- package/pipeline.cicd.config.json +152 -0
- package/src/configs/base.ts +21 -1
- package/src/configs/ngx.ts +12 -0
- package/src/plugin/index.ts +44 -3
- package/src/plugin/rules/angular/angular-for-track-logic.spec.ts +44 -0
- package/src/plugin/rules/angular/angular-for-track-logic.ts +88 -0
- package/src/plugin/rules/angular/effect-signal-loop.spec.ts +89 -0
- package/src/plugin/rules/angular/effect-signal-loop.ts +125 -0
- package/src/plugin/rules/angular/no-async-ngoninit.spec.ts +50 -0
- package/src/plugin/rules/angular/no-async-ngoninit.ts +43 -0
- package/src/plugin/rules/angular/no-component-direct-api.spec.ts +78 -0
- package/src/plugin/rules/angular/no-component-direct-api.ts +82 -0
- package/src/plugin/rules/angular/no-method-call-in-template.spec.ts +63 -0
- package/src/plugin/rules/angular/no-method-call-in-template.ts +89 -0
- package/src/plugin/rules/angular/no-ngfor-directive.spec.ts +44 -0
- package/src/plugin/rules/angular/no-ngfor-directive.ts +62 -0
- package/src/plugin/rules/angular/no-ngif-directive.spec.ts +44 -0
- package/src/plugin/rules/angular/no-ngif-directive.ts +62 -0
- package/src/plugin/rules/naming-patterns.spec.ts +108 -22
- package/src/plugin/rules/naming-patterns.ts +390 -11
- package/src/plugin/rules/no-getter-logic.spec.ts +71 -0
- package/src/plugin/rules/no-getter-logic.ts +21 -2
- package/src/plugin/rules/require-jsdoc-description.spec.ts +1 -0
- package/src/plugin/rules/require-jsdoc-description.ts +19 -0
- package/src/plugin/rules/ts/data-model-extends.spec.ts +84 -0
- package/src/plugin/rules/ts/data-model-extends.ts +100 -0
- package/src/plugin/rules/ts/no-any-type.spec.ts +28 -0
- package/src/plugin/rules/ts/no-any-type.ts +36 -0
- package/src/plugin/rules/ts/no-as-cast.spec.ts +51 -0
- package/src/plugin/rules/ts/no-as-cast.ts +51 -0
- package/src/plugin/rules/ts/no-dynamic-imports.spec.ts +54 -0
- package/src/plugin/rules/ts/no-dynamic-imports.ts +49 -0
- package/src/plugin/rules/ts/no-native-browser-dialogs.spec.ts +54 -0
- package/src/plugin/rules/ts/no-native-browser-dialogs.ts +84 -0
- package/src/plugin/rules/ts/no-plain-function-export.spec.ts +72 -0
- package/src/plugin/rules/ts/no-plain-function-export.ts +73 -0
- package/src/plugin/rules/ts/one-export-per-file.spec.ts +64 -0
- package/src/plugin/rules/ts/one-export-per-file.ts +77 -0
- package/futdevpro-dynamo-eslint-1.15.6.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-async-ngoninit.d.ts","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-async-ngoninit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAiChB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* No-async-ngOnInit szabály: `ngOnInit` metódus nem lehet `async`.
|
|
5
|
+
* Angular nem várja le az `async ngOnInit`-et — ez néma hibát okoz.
|
|
6
|
+
* CCAP "no-async-ngoninit" review ESLint AST-portja.
|
|
7
|
+
*/
|
|
8
|
+
const rule = {
|
|
9
|
+
meta: {
|
|
10
|
+
type: 'suggestion',
|
|
11
|
+
docs: {
|
|
12
|
+
description: 'Forbid `async ngOnInit` in Angular components — Angular does not await it.',
|
|
13
|
+
recommended: true,
|
|
14
|
+
},
|
|
15
|
+
schema: [],
|
|
16
|
+
messages: {
|
|
17
|
+
noAsyncNgOnInit: '`async ngOnInit` tilos — Angular nem várja le. '
|
|
18
|
+
+ 'Tedd a logikát egy külön `async` privát metódusba és hívd meg `ngOnInit`-ből.',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
create(context) {
|
|
22
|
+
return {
|
|
23
|
+
MethodDefinition(node) {
|
|
24
|
+
try {
|
|
25
|
+
if (!node.key || node.key.type !== 'Identifier' || node.key.name !== 'ngOnInit') {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (node.value && node.value.async === true) {
|
|
29
|
+
context.report({
|
|
30
|
+
node: node.key,
|
|
31
|
+
messageId: 'noAsyncNgOnInit',
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.error('[no-async-ngoninit] Error in MethodDefinition visitor:', error);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
exports.default = rule;
|
|
43
|
+
//# sourceMappingURL=no-async-ngoninit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-async-ngoninit.js","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-async-ngoninit.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;AACH,MAAM,IAAI,GAAoB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,4EAA4E;YACzF,WAAW,EAAE,IAAI;SAClB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,eAAe,EACb,iDAAiD;kBAC/C,+EAA+E;SACpF;KACF;IACD,MAAM,CAAC,OAAyB;QAC9B,OAAO;YACL,gBAAgB,CAAC,IAAS;gBACxB,IAAI,CAAC;oBACH,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,YAAY,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;wBAChF,OAAO;oBACT,CAAC;oBACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;wBAC5C,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,IAAI,CAAC,GAAG;4BACd,SAAS,EAAE,iBAAiB;yBAC7B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,wDAAwD,EAAE,KAAK,CAAC,CAAC;gBACjF,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* No-component-direct-api szabály: `*.component.ts` fájlok nem importálhatnak közvetlenül
|
|
4
|
+
* `*ApiService` class-okat vagy `HttpClient`-et. Single Source of Truth elv – data-service
|
|
5
|
+
* vagy control-service réteg kötelező.
|
|
6
|
+
* CCAP "no-component-direct-api" review ESLint AST-portja.
|
|
7
|
+
*/
|
|
8
|
+
declare const rule: Rule.RuleModule;
|
|
9
|
+
export default rule;
|
|
10
|
+
//# sourceMappingURL=no-component-direct-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-component-direct-api.d.ts","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-component-direct-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAK9B;;;;;GAKG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAoEhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/** ApiService class név regex – `_ApiService` vagy `ApiService` végződésű class. */
|
|
4
|
+
const API_SERVICE_NAME_REGEX = /\w+(?:_)?ApiService$/;
|
|
5
|
+
/**
|
|
6
|
+
* No-component-direct-api szabály: `*.component.ts` fájlok nem importálhatnak közvetlenül
|
|
7
|
+
* `*ApiService` class-okat vagy `HttpClient`-et. Single Source of Truth elv – data-service
|
|
8
|
+
* vagy control-service réteg kötelező.
|
|
9
|
+
* CCAP "no-component-direct-api" review ESLint AST-portja.
|
|
10
|
+
*/
|
|
11
|
+
const rule = {
|
|
12
|
+
meta: {
|
|
13
|
+
type: 'suggestion',
|
|
14
|
+
docs: {
|
|
15
|
+
description: 'Components must not directly import `*ApiService` or `HttpClient`; '
|
|
16
|
+
+ 'use data-service / control-service layer (Single Source of Truth).',
|
|
17
|
+
recommended: true,
|
|
18
|
+
},
|
|
19
|
+
schema: [],
|
|
20
|
+
messages: {
|
|
21
|
+
noApiServiceImport: 'Komponens közvetlenül importál ApiService class-t: `{{names}}`. '
|
|
22
|
+
+ 'Használj data-service-t vagy control-service-t (Single Source of Truth).',
|
|
23
|
+
noHttpClientImport: 'Komponens közvetlenül importálja a `HttpClient`-et. '
|
|
24
|
+
+ 'Használj api-service / data-service / control-service réteget.',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
create(context) {
|
|
28
|
+
const filename = context.filename ?? '';
|
|
29
|
+
if (!filename.endsWith('.component.ts')) {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
ImportDeclaration(node) {
|
|
34
|
+
try {
|
|
35
|
+
const source = (node.source && typeof node.source.value === 'string')
|
|
36
|
+
? node.source.value
|
|
37
|
+
: '';
|
|
38
|
+
const apiServiceNames = [];
|
|
39
|
+
let hasHttpClient = false;
|
|
40
|
+
for (const specifier of node.specifiers ?? []) {
|
|
41
|
+
if (specifier.type !== 'ImportSpecifier') {
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
const importedName = (specifier.imported && specifier.imported.name)
|
|
45
|
+
? specifier.imported.name
|
|
46
|
+
: '';
|
|
47
|
+
if (importedName === 'HttpClient' && source === '@angular/common/http') {
|
|
48
|
+
hasHttpClient = true;
|
|
49
|
+
}
|
|
50
|
+
if (API_SERVICE_NAME_REGEX.test(importedName)) {
|
|
51
|
+
apiServiceNames.push(importedName);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (apiServiceNames.length > 0) {
|
|
55
|
+
context.report({
|
|
56
|
+
node: node,
|
|
57
|
+
messageId: 'noApiServiceImport',
|
|
58
|
+
data: { names: apiServiceNames.join(', ') },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (hasHttpClient) {
|
|
62
|
+
context.report({
|
|
63
|
+
node: node,
|
|
64
|
+
messageId: 'noHttpClientImport',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
console.error('[no-component-direct-api] Error in ImportDeclaration visitor:', error);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
exports.default = rule;
|
|
76
|
+
//# sourceMappingURL=no-component-direct-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-component-direct-api.js","sourceRoot":"","sources":["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AI;4BACzB,CAAC,CAAC,EAAE,CAAC;wBACP,IAAI,YAAY,KAAK,YAAY,IAAI,MAAM,KAAK,sBAAsB,EAAE,CAAC;4BACvE,aAAa,GAAG,IAAI,CAAC;wBACvB,CAAC;wBACD,IAAI,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;4BAC9C,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;wBACrC,CAAC;oBACH,CAAC;oBAED,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;wBAC/B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,IAAI;4BACV,SAAS,EAAE,oBAAoB;4BAC/B,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;yBAC5C,CAAC,CAAC;oBACL,CAAC;oBACD,IAAI,aAAa,EAAE,CAAC;wBAClB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,IAAI;4BACV,SAAS,EAAE,oBAAoB;yBAChC,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,+DAA+D,EAAE,KAAK,CAAC,CAAC;gBACxF,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* No-method-call-in-template szabály: Angular template-ekben tilos metódust hívni
|
|
4
|
+
* adat megjelenítéshez. Megengedett: signal `mySignal_$()` és esemény `(click)="handler()"`.
|
|
5
|
+
* CCAP "no-method-call-in-template" review ESLint port (template parser source-text scan).
|
|
6
|
+
*/
|
|
7
|
+
declare const rule: Rule.RuleModule;
|
|
8
|
+
export default rule;
|
|
9
|
+
//# sourceMappingURL=no-method-call-in-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-method-call-in-template.d.ts","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-method-call-in-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiC9B;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAgDhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Interpoláció metódushívás regex: `{{ ... method() ... }}`. Signal hívás (`_$()`) kizárva.
|
|
5
|
+
* Capture group 1: a hívott metódus neve.
|
|
6
|
+
*/
|
|
7
|
+
const INTERPOLATION_CALL_REGEX = /\{\{[^}]*\b([a-zA-Z_$][a-zA-Z0-9_$]*(?<!_\$))\s*\([^)]*\)[^}]*\}\}/g;
|
|
8
|
+
/**
|
|
9
|
+
* Property binding metódushívás regex: `[attr]="method()"`. Esemény binding `(event)="..."` kizárva.
|
|
10
|
+
*/
|
|
11
|
+
const PROPERTY_BINDING_CALL_REGEX = /\[[^\]]+\]="[^"]*\b[a-zA-Z_$][a-zA-Z0-9_$]*(?<!_\$)\s*\([^)]*\)[^"]*"/g;
|
|
12
|
+
/**
|
|
13
|
+
* Angular block (`@if`, `@switch`, `@case`, `@else if`) metódushívás regex.
|
|
14
|
+
*/
|
|
15
|
+
const BLOCK_CALL_REGEX = /@(?:if|switch|case|else if)\s*\([^)]*\b[a-zA-Z_$][a-zA-Z0-9_$]*(?<!_\$)\s*\([^)]*\)/g;
|
|
16
|
+
/**
|
|
17
|
+
* Adott offset alapján a sor és oszlop kiszámítása az alap szövegből.
|
|
18
|
+
*/
|
|
19
|
+
function computeLoc(text, index) {
|
|
20
|
+
const before = text.substring(0, index);
|
|
21
|
+
const newlineMatches = before.match(/\n/g);
|
|
22
|
+
const line = (newlineMatches ? newlineMatches.length : 0) + 1;
|
|
23
|
+
const lastNewline = before.lastIndexOf('\n');
|
|
24
|
+
const column = lastNewline === -1 ? index : index - lastNewline - 1;
|
|
25
|
+
return { line: line, column: column };
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* No-method-call-in-template szabály: Angular template-ekben tilos metódust hívni
|
|
29
|
+
* adat megjelenítéshez. Megengedett: signal `mySignal_$()` és esemény `(click)="handler()"`.
|
|
30
|
+
* CCAP "no-method-call-in-template" review ESLint port (template parser source-text scan).
|
|
31
|
+
*/
|
|
32
|
+
const rule = {
|
|
33
|
+
meta: {
|
|
34
|
+
type: 'suggestion',
|
|
35
|
+
docs: {
|
|
36
|
+
description: 'Forbid method calls in Angular templates for data display; '
|
|
37
|
+
+ 'use signals / computed / pipes instead. Event bindings `(click)="..."` allowed.',
|
|
38
|
+
recommended: true,
|
|
39
|
+
},
|
|
40
|
+
schema: [],
|
|
41
|
+
messages: {
|
|
42
|
+
interpolationCall: 'Metódushívás interpolációban: `{{ method() }}`. Használj signal-t vagy pipe-ot.',
|
|
43
|
+
propertyBindingCall: 'Metódushívás property bindingban. Használj signal-t vagy computed-t.',
|
|
44
|
+
blockCall: 'Metódushívás Angular block direktívában (`@if` / `@switch`). Használj signal-t vagy computed-t.',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
create(context) {
|
|
48
|
+
const filename = context.filename ?? '';
|
|
49
|
+
if (!filename.endsWith('.html')) {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
const text = context.sourceCode.text ?? '';
|
|
53
|
+
function reportMatches(regex, messageId) {
|
|
54
|
+
const localRegex = new RegExp(regex.source, 'g');
|
|
55
|
+
let match = localRegex.exec(text);
|
|
56
|
+
while (match !== null) {
|
|
57
|
+
const loc = computeLoc(text, match.index);
|
|
58
|
+
context.report({
|
|
59
|
+
loc: { start: loc, end: { line: loc.line, column: loc.column + match[0].length } },
|
|
60
|
+
messageId: messageId,
|
|
61
|
+
});
|
|
62
|
+
match = localRegex.exec(text);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
Program() {
|
|
67
|
+
try {
|
|
68
|
+
reportMatches(INTERPOLATION_CALL_REGEX, 'interpolationCall');
|
|
69
|
+
reportMatches(PROPERTY_BINDING_CALL_REGEX, 'propertyBindingCall');
|
|
70
|
+
reportMatches(BLOCK_CALL_REGEX, 'blockCall');
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
console.error('[no-method-call-in-template] Error in Program visitor:', error);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
exports.default = rule;
|
|
80
|
+
//# sourceMappingURL=no-method-call-in-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-method-call-in-template.js","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-method-call-in-template.ts"],"names":[],"mappings":";;AAEA;;;GAGG;AACH,MAAM,wBAAwB,GAC5B,qEAAqE,CAAC;AAExE;;GAEG;AACH,MAAM,2BAA2B,GAC/B,wEAAwE,CAAC;AAE3E;;GAEG;AACH,MAAM,gBAAgB,GACpB,sFAAsF,CAAC;AAEzF;;GAEG;AACH,SAAS,UAAU,CAAC,IAAY,EAAE,KAAa;IAC7C,MAAM,MAAM,GAAW,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAChD,MAAM,cAAc,GAA4B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,IAAI,GAAW,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACtE,MAAM,WAAW,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,MAAM,GAAW,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,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,CAAC,CAAC,MAAM,EAAE,EAAE;oBAClF,SAAS,EAAE,SAAS;iBACrB,CAAC,CAAC;gBACH,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;QAED,OAAO;YACL,OAAO;gBACL,IAAI,CAAC;oBACH,aAAa,CAAC,wBAAwB,EAAE,mBAAmB,CAAC,CAAC;oBAC7D,aAAa,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,CAAC;oBAClE,aAAa,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;gBAC/C,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,wDAAwD,EAAE,KAAK,CAAC,CAAC;gBACjF,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* No-ngFor-directive szabály: Angular template-ekben `*ngFor` helyett `@for` szintaxist használj.
|
|
4
|
+
* CCAP "no-ngfor-directive" review ESLint template-text-scan portja.
|
|
5
|
+
*/
|
|
6
|
+
declare const rule: Rule.RuleModule;
|
|
7
|
+
export default rule;
|
|
8
|
+
//# sourceMappingURL=no-ngfor-directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-ngfor-directive.d.ts","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-ngfor-directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiB9B;;;GAGG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAsChB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/** `*ngFor` használat detektálása HTML template-ekben. */
|
|
4
|
+
const NGFOR_REGEX = /\*ngFor/g;
|
|
5
|
+
/**
|
|
6
|
+
* Adott offset alapján a sor és oszlop kiszámítása az alap szövegből.
|
|
7
|
+
*/
|
|
8
|
+
function computeLoc(text, index) {
|
|
9
|
+
const before = text.substring(0, index);
|
|
10
|
+
const newlineMatches = before.match(/\n/g);
|
|
11
|
+
const line = (newlineMatches ? newlineMatches.length : 0) + 1;
|
|
12
|
+
const lastNewline = before.lastIndexOf('\n');
|
|
13
|
+
const column = lastNewline === -1 ? index : index - lastNewline - 1;
|
|
14
|
+
return { line: line, column: column };
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* No-ngFor-directive szabály: Angular template-ekben `*ngFor` helyett `@for` szintaxist használj.
|
|
18
|
+
* CCAP "no-ngfor-directive" review ESLint template-text-scan portja.
|
|
19
|
+
*/
|
|
20
|
+
const rule = {
|
|
21
|
+
meta: {
|
|
22
|
+
type: 'suggestion',
|
|
23
|
+
docs: {
|
|
24
|
+
description: 'Forbid `*ngFor` directive in Angular templates; use `@for` block syntax instead.',
|
|
25
|
+
recommended: true,
|
|
26
|
+
},
|
|
27
|
+
schema: [],
|
|
28
|
+
messages: {
|
|
29
|
+
noNgFor: '`*ngFor` direktíva tilos. Használj `@for` block szintaxist.',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
create(context) {
|
|
33
|
+
const filename = context.filename ?? '';
|
|
34
|
+
if (!filename.endsWith('.html')) {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
const text = context.sourceCode.text ?? '';
|
|
38
|
+
return {
|
|
39
|
+
Program() {
|
|
40
|
+
try {
|
|
41
|
+
const localRegex = new RegExp(NGFOR_REGEX.source, 'g');
|
|
42
|
+
let match = localRegex.exec(text);
|
|
43
|
+
while (match !== null) {
|
|
44
|
+
const loc = computeLoc(text, match.index);
|
|
45
|
+
context.report({
|
|
46
|
+
loc: { start: loc, end: { line: loc.line, column: loc.column + match[0].length } },
|
|
47
|
+
messageId: 'noNgFor',
|
|
48
|
+
});
|
|
49
|
+
match = localRegex.exec(text);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
console.error('[no-ngfor-directive] Error in Program visitor:', error);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
exports.default = rule;
|
|
60
|
+
//# sourceMappingURL=no-ngfor-directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-ngfor-directive.js","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-ngfor-directive.ts"],"names":[],"mappings":";;AAEA,0DAA0D;AAC1D,MAAM,WAAW,GAAW,UAAU,CAAC;AAEvC;;GAEG;AACH,SAAS,UAAU,CAAC,IAAY,EAAE,KAAa;IAC7C,MAAM,MAAM,GAAW,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAChD,MAAM,cAAc,GAA4B,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACpE,MAAM,IAAI,GAAW,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACtE,MAAM,WAAW,GAAW,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,MAAM,GAAW,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,WAAW,GAAG,CAAC,CAAC;IAC5E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,IAAI,GAAoB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,kFAAkF;YAC/F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,8 @@
|
|
|
1
|
+
import { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* No-ngIf-directive szabály: Angular template-ekben `*ngIf` helyett `@if` szintaxist használj.
|
|
4
|
+
* CCAP "no-ngif-directive" review ESLint template-text-scan portja.
|
|
5
|
+
*/
|
|
6
|
+
declare const rule: Rule.RuleModule;
|
|
7
|
+
export default rule;
|
|
8
|
+
//# sourceMappingURL=no-ngif-directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-ngif-directive.d.ts","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-ngif-directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAiB9B;;;GAGG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAsChB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/** `*ngIf` használat detektálása HTML template-ekben. */
|
|
4
|
+
const NGIF_REGEX = /\*ngIf/g;
|
|
5
|
+
/**
|
|
6
|
+
* Adott offset alapján a sor és oszlop kiszámítása az alap szövegből.
|
|
7
|
+
*/
|
|
8
|
+
function computeLoc(text, index) {
|
|
9
|
+
const before = text.substring(0, index);
|
|
10
|
+
const newlineMatches = before.match(/\n/g);
|
|
11
|
+
const line = (newlineMatches ? newlineMatches.length : 0) + 1;
|
|
12
|
+
const lastNewline = before.lastIndexOf('\n');
|
|
13
|
+
const column = lastNewline === -1 ? index : index - lastNewline - 1;
|
|
14
|
+
return { line: line, column: column };
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* No-ngIf-directive szabály: Angular template-ekben `*ngIf` helyett `@if` szintaxist használj.
|
|
18
|
+
* CCAP "no-ngif-directive" review ESLint template-text-scan portja.
|
|
19
|
+
*/
|
|
20
|
+
const rule = {
|
|
21
|
+
meta: {
|
|
22
|
+
type: 'suggestion',
|
|
23
|
+
docs: {
|
|
24
|
+
description: 'Forbid `*ngIf` directive in Angular templates; use `@if` block syntax instead.',
|
|
25
|
+
recommended: true,
|
|
26
|
+
},
|
|
27
|
+
schema: [],
|
|
28
|
+
messages: {
|
|
29
|
+
noNgIf: '`*ngIf` direktíva tilos. Használj `@if` block szintaxist.',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
create(context) {
|
|
33
|
+
const filename = context.filename ?? '';
|
|
34
|
+
if (!filename.endsWith('.html')) {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
const text = context.sourceCode.text ?? '';
|
|
38
|
+
return {
|
|
39
|
+
Program() {
|
|
40
|
+
try {
|
|
41
|
+
const localRegex = new RegExp(NGIF_REGEX.source, 'g');
|
|
42
|
+
let match = localRegex.exec(text);
|
|
43
|
+
while (match !== null) {
|
|
44
|
+
const loc = computeLoc(text, match.index);
|
|
45
|
+
context.report({
|
|
46
|
+
loc: { start: loc, end: { line: loc.line, column: loc.column + match[0].length } },
|
|
47
|
+
messageId: 'noNgIf',
|
|
48
|
+
});
|
|
49
|
+
match = localRegex.exec(text);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
console.error('[no-ngif-directive] Error in Program visitor:', error);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
exports.default = rule;
|
|
60
|
+
//# sourceMappingURL=no-ngif-directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-ngif-directive.js","sourceRoot":"","sources":["../../../../src/plugin/rules/angular/no-ngif-directive.ts"],"names":[],"mappings":";;AAEA,yDAAyD;AACzD,MAAM,UAAU,GAAW,SAAS,CAAC;AAErC;;GAEG;AACH,SAAS,UAAU,CAAC,IAAY,EAAE,KAAa;IAC7C,MAAM,MAAM,GAAW,IAA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AK,IAAI,EAAE,CAAC;wBACtB,MAAM,GAAG,GAAqC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;wBAC5E,OAAO,CAAC,MAAM,CAAC;4BACb,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE;4BAClF,SAAS,EAAE,QAAQ;yBACpB,CAAC,CAAC;wBACH,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAChC,CAAC;gBACH,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO,CAAC,KAAK,CAAC,+CAA+C,EAAE,KAAK,CAAC,CAAC;gBACxE,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Naming-patterns szabály (CCAP-megerősített): 7 al-ellenőrzés a CCAP "naming/*" review-kből.
|
|
4
|
+
* Minden al-ellenőrzés külön-külön kapcsolható a `checks` schema option-nel.
|
|
5
|
+
*/
|
|
2
6
|
declare const rule: Rule.RuleModule;
|
|
3
7
|
export default rule;
|
|
4
8
|
//# sourceMappingURL=naming-patterns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"naming-patterns.d.ts","sourceRoot":"","sources":["../../../src/plugin/rules/naming-patterns.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"naming-patterns.d.ts","sourceRoot":"","sources":["../../../src/plugin/rules/naming-patterns.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA2K9B;;;GAGG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAqOhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|