@futdevpro/dynamo-eslint 1.15.28 → 1.20.2

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.
Files changed (108) hide show
  1. package/README.md +13 -16
  2. package/__documentations/2026-08-22-angular-20-phase2-release.md +79 -0
  3. package/build/configs/base.d.ts +8 -9
  4. package/build/configs/base.d.ts.map +1 -1
  5. package/build/configs/base.js +149 -150
  6. package/build/configs/base.js.map +1 -1
  7. package/build/configs/fsm.d.ts +1 -1
  8. package/build/configs/fsm.js +7 -7
  9. package/build/configs/ngx-package.d.ts +1 -1
  10. package/build/configs/ngx-package.js +7 -7
  11. package/build/configs/ngx.d.ts +2 -4
  12. package/build/configs/ngx.d.ts.map +1 -1
  13. package/build/configs/ngx.js +88 -91
  14. package/build/configs/ngx.js.map +1 -1
  15. package/build/configs/nts-package.d.ts +1 -1
  16. package/build/configs/nts-package.js +17 -17
  17. package/build/configs/nts.d.ts +1 -1
  18. package/build/configs/nts.js +31 -31
  19. package/build/index.d.ts +1 -1
  20. package/build/index.js +2 -2
  21. package/build/plugin/index.d.ts +52 -52
  22. package/build/plugin/index.js +80 -80
  23. package/build/plugin/rules/angular/angular-for-track-logic.d.ts +7 -7
  24. package/build/plugin/rules/angular/angular-for-track-logic.js +81 -81
  25. package/build/plugin/rules/angular/effect-signal-loop.d.ts +9 -9
  26. package/build/plugin/rules/angular/effect-signal-loop.js +112 -112
  27. package/build/plugin/rules/angular/no-async-ngoninit.d.ts +8 -8
  28. package/build/plugin/rules/angular/no-async-ngoninit.js +42 -42
  29. package/build/plugin/rules/angular/no-component-direct-api.d.ts +9 -9
  30. package/build/plugin/rules/angular/no-component-direct-api.js +75 -75
  31. package/build/plugin/rules/angular/no-method-call-in-template.d.ts +8 -8
  32. package/build/plugin/rules/angular/no-method-call-in-template.js +79 -79
  33. package/build/plugin/rules/angular/no-ngfor-directive.d.ts +7 -7
  34. package/build/plugin/rules/angular/no-ngfor-directive.js +59 -59
  35. package/build/plugin/rules/angular/no-ngif-directive.d.ts +7 -7
  36. package/build/plugin/rules/angular/no-ngif-directive.js +59 -59
  37. package/build/plugin/rules/explicit-types.d.ts +3 -3
  38. package/build/plugin/rules/explicit-types.js +178 -178
  39. package/build/plugin/rules/import/import-order.d.ts +3 -3
  40. package/build/plugin/rules/import/import-order.js +154 -154
  41. package/build/plugin/rules/import/no-import-type.d.ts +3 -3
  42. package/build/plugin/rules/import/no-import-type.js +45 -45
  43. package/build/plugin/rules/import/no-js-import.d.ts +3 -3
  44. package/build/plugin/rules/import/no-js-import.js +40 -40
  45. package/build/plugin/rules/naming-patterns.d.ts +7 -7
  46. package/build/plugin/rules/naming-patterns.js +366 -366
  47. package/build/plugin/rules/no-getter-logic.d.ts +3 -3
  48. package/build/plugin/rules/no-getter-logic.js +194 -194
  49. package/build/plugin/rules/no-getter-logic.js.map +1 -1
  50. package/build/plugin/rules/prefer-enum-over-string-union.d.ts +3 -3
  51. package/build/plugin/rules/prefer-enum-over-string-union.js +289 -289
  52. package/build/plugin/rules/prefer-enum-over-string-union.js.map +1 -1
  53. package/build/plugin/rules/prefer-interface-over-duplicate-types.d.ts +3 -3
  54. package/build/plugin/rules/prefer-interface-over-duplicate-types.js +264 -264
  55. package/build/plugin/rules/prefer-interface-over-duplicate-types.js.map +1 -1
  56. package/build/plugin/rules/require-jsdoc-description.d.ts +3 -3
  57. package/build/plugin/rules/require-jsdoc-description.js +496 -496
  58. package/build/plugin/rules/require-jsdoc-description.js.map +1 -1
  59. package/build/plugin/rules/require-test-description-prefix.d.ts +3 -3
  60. package/build/plugin/rules/require-test-description-prefix.js +135 -135
  61. package/build/plugin/rules/ts/data-model-extends.d.ts +8 -8
  62. package/build/plugin/rules/ts/data-model-extends.js +94 -94
  63. package/build/plugin/rules/ts/no-any-type.d.ts +8 -8
  64. package/build/plugin/rules/ts/no-any-type.js +36 -36
  65. package/build/plugin/rules/ts/no-as-cast.d.ts +8 -8
  66. package/build/plugin/rules/ts/no-as-cast.js +49 -49
  67. package/build/plugin/rules/ts/no-dynamic-imports.d.ts +8 -8
  68. package/build/plugin/rules/ts/no-dynamic-imports.js +50 -50
  69. package/build/plugin/rules/ts/no-native-browser-dialogs.d.ts +8 -8
  70. package/build/plugin/rules/ts/no-native-browser-dialogs.js +78 -78
  71. package/build/plugin/rules/ts/no-plain-function-export.d.ts +9 -9
  72. package/build/plugin/rules/ts/no-plain-function-export.js +69 -69
  73. package/build/plugin/rules/ts/one-export-per-file.d.ts +8 -8
  74. package/build/plugin/rules/ts/one-export-per-file.js +73 -73
  75. package/build/scripts/dynamo-fix.d.ts +26 -26
  76. package/build/scripts/dynamo-fix.js +146 -146
  77. package/build/scripts/dynamo-fix.js.map +1 -1
  78. package/build/scripts/eslintrc-audit.d.ts +26 -26
  79. package/build/scripts/eslintrc-audit.js +100 -100
  80. package/build/scripts/fix-return-types.d.ts +74 -74
  81. package/build/scripts/fix-return-types.d.ts.map +1 -1
  82. package/build/scripts/fix-return-types.js +226 -226
  83. package/build/scripts/fix-return-types.js.map +1 -1
  84. package/build/scripts/validate-imports.d.ts +26 -26
  85. package/build/scripts/validate-imports.js +170 -157
  86. package/build/scripts/validate-imports.js.map +1 -1
  87. package/build/scripts/validate-naming.d.ts +26 -26
  88. package/build/scripts/validate-naming.js +170 -157
  89. package/build/scripts/validate-naming.js.map +1 -1
  90. package/eslint.config.js +1 -1
  91. package/package.json +104 -105
  92. package/pnpm-workspace.yaml +2 -0
  93. package/samples/package.json.example +5 -9
  94. package/src/configs/angular20-compatibility.spec.ts +62 -0
  95. package/src/configs/base.ts +3 -4
  96. package/src/configs/ngx.ts +5 -8
  97. package/src/plugin/rules/no-getter-logic.ts +1 -1
  98. package/src/plugin/rules/prefer-enum-over-string-union.spec.ts +9 -9
  99. package/src/plugin/rules/prefer-enum-over-string-union.ts +7 -8
  100. package/src/plugin/rules/prefer-interface-over-duplicate-types.spec.ts +22 -22
  101. package/src/plugin/rules/prefer-interface-over-duplicate-types.ts +2 -2
  102. package/src/plugin/rules/require-jsdoc-description.spec.ts +2 -2
  103. package/src/plugin/rules/require-jsdoc-description.ts +7 -7
  104. package/src/scripts/dynamo-fix.ts +1 -1
  105. package/src/scripts/fix-return-types.ts +4 -3
  106. package/src/scripts/validate-imports.ts +29 -15
  107. package/src/scripts/validate-naming.ts +29 -20
  108. package/src/scripts/validator-cli.integration.spec.ts +11 -8
@@ -1,227 +1,227 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- /**
4
- * @fileoverview TypeScript Type Annotation Fix Script
5
- *
6
- * This script uses TypeScript's AST (Abstract Syntax Tree) to automatically add
7
- * type annotations to functions and arrow functions. It analyzes TypeScript files,
8
- * infers return types using the TypeScript compiler, and adds explicit type
9
- * annotations where missing.
10
- *
11
- * @usage
12
- * ```bash
13
- * dynamo-fix-return-types
14
- * ```
15
- *
16
- * @example
17
- * ```bash
18
- * # Fix type annotations in all TypeScript files
19
- * npx dynamo-fix-return-types
20
- *
21
- * # Or run via npm script
22
- * npm run fix:types
23
- * ```
24
- *
25
- * @author Future Development Program Ltd.
26
- * @version 1.14.3
27
- */
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.buildTypeNodeFromString = buildTypeNodeFromString;
30
- exports.addTypesToFile = addTypesToFile;
31
- const tslib_1 = require("tslib");
32
- const ts = tslib_1.__importStar(require("typescript"));
33
- const fs = tslib_1.__importStar(require("fs"));
34
- const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
35
- const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
36
- /**
37
- * Egy `checker.typeToString(...)`-bol jovo TIPUS-STRING-et valodi `ts.TypeNode`-da
38
- * alakit ugy, hogy egy eldobhato `type __T = <typeString>;` forrast parse-ol es
39
- * kiszedi belole a TypeNode-ot.
40
- *
41
- * MIERT: a regi megoldas `ts.factory.createTypeReferenceNode(typeString)`-et hivott,
42
- * ami CSAK bare identifier-t (entity-name-et) fogad el. Egy generic/union/stb.
43
- * tipus-string (pl. `Record<string, unknown>`) eseten ez tort node-ot epitett, amit
44
- * a printer csonka `Record`-kent (type-argumentumok nelkul) emittalt — ami EGYSZERRE
45
- * tsc-hiba ES uj lint-hiba, igy egyetlen fix-futas 0 → 1+ lint-szamot regresszalt.
46
- * A `typeToString` mindig syntactically valid TS tipus-syntaxot ad vissza, ezert a
47
- * `type __T = …;` parse-olas minden esetre korrekt TypeNode-ot allit elo.
48
- *
49
- * BAIL-OUT: ha a tipus nem alakithato biztonsagos node-da — pl. inline
50
- * `import("/abs/path").Foo` format tartalmaz, ami abszolut path-t szivarogtatna a
51
- * fajlba —, `undefined`-et adunk vissza. A hivo ilyenkor KIHAGYJA az annotaciot:
52
- * jobb annotalatlanul hagyni (marad a figyelmeztetes), mint tort kodot irni.
53
- */
54
- function buildTypeNodeFromString(typeString) {
55
- // Inline `import(...)` tipus → projekt-specifikus abszolut/relativ path-t vinne a
56
- // fajlba; sosem biztonsagos textualisan beilleszteni, ezert bail.
57
- if (typeString.includes('import(')) {
58
- return undefined;
59
- }
60
- const probe = ts.createSourceFile('__dynamo_type_probe__.ts', `type __T = ${typeString};`, ts.ScriptTarget.Latest,
61
- /* setParentNodes */ false);
62
- const statement = probe.statements[0];
63
- if (!statement || !ts.isTypeAliasDeclaration(statement) || !statement.type) {
64
- return undefined;
65
- }
66
- return statement.type;
67
- }
68
- /**
69
- * Adds type annotations to functions and arrow functions in a TypeScript file
70
- *
71
- * Uses TypeScript's compiler API to analyze the file, infer return types,
72
- * and automatically add explicit type annotations where missing.
73
- *
74
- * @param filePath - Path to the TypeScript file to process
75
- * @returns FixResult object containing statistics about the changes made
76
- *
77
- * @example
78
- * ```typescript
79
- * const result = addTypesToFile('./src/utils.ts');
80
- * console.log(`Added ${result.changes} type annotations to ${result.file}`);
81
- * ```
82
- */
83
- function addTypesToFile(filePath) {
84
- // Read and parse the source file
85
- const sourceCode = fs.readFileSync(filePath, 'utf8');
86
- const sourceFile = ts.createSourceFile(filePath, sourceCode, ts.ScriptTarget.Latest, true);
87
- // Create TypeScript program for type checking
88
- const program = ts.createProgram([filePath], {
89
- target: ts.ScriptTarget.Latest,
90
- module: ts.ModuleKind.ESNext,
91
- strict: true,
92
- skipLibCheck: true,
93
- });
94
- const checker = program.getTypeChecker();
95
- let changes = 0;
96
- let hasChanges = false;
97
- /**
98
- * Recursively visits AST nodes and adds type annotations where needed
99
- *
100
- * @param node - The current AST node being visited
101
- * @returns The potentially modified AST node
102
- */
103
- function visit(node) {
104
- // Handle function declarations without return types
105
- if (ts.isFunctionDeclaration(node) && !node.type) {
106
- const signature = checker.getSignatureFromDeclaration(node);
107
- if (signature) {
108
- const returnType = checker.getReturnTypeOfSignature(signature);
109
- const typeString = checker.typeToString(returnType);
110
- // Add type annotation if it's not void or any
111
- if (typeString !== 'void' && typeString !== 'any') {
112
- const newType = buildTypeNodeFromString(typeString);
113
- // newType === undefined → a tipus nem serializalhato biztonsagosan,
114
- // kihagyjuk az annotaciot ahelyett hogy tort kodot irnank (B2 bail-out).
115
- if (newType) {
116
- const updatedNode = ts.factory.updateFunctionDeclaration(node, node.modifiers, node.asteriskToken, node.name, node.typeParameters, node.parameters, newType, node.body);
117
- changes++;
118
- hasChanges = true;
119
- return ts.visitEachChild(updatedNode, visit, {});
120
- }
121
- }
122
- }
123
- }
124
- // Handle arrow functions without return types
125
- if (ts.isArrowFunction(node) && !node.type) {
126
- const signature = checker.getSignatureFromDeclaration(node);
127
- if (signature) {
128
- const returnType = checker.getReturnTypeOfSignature(signature);
129
- const typeString = checker.typeToString(returnType);
130
- // Add type annotation if it's not void or any
131
- if (typeString !== 'void' && typeString !== 'any') {
132
- const newType = buildTypeNodeFromString(typeString);
133
- // newType === undefined → a tipus nem serializalhato biztonsagosan,
134
- // kihagyjuk az annotaciot ahelyett hogy tort kodot irnank (B2 bail-out).
135
- if (newType) {
136
- const updatedNode = ts.factory.updateArrowFunction(node, node.modifiers, node.typeParameters, node.parameters, newType, node.equalsGreaterThanToken, node.body);
137
- changes++;
138
- hasChanges = true;
139
- return ts.visitEachChild(updatedNode, visit, {});
140
- }
141
- }
142
- }
143
- }
144
- // Note: Variable declarations, parameters, and class properties
145
- // are handled by the existing @typescript-eslint/typedef rule
146
- // and can be auto-fixed with eslint --fix
147
- return ts.visitEachChild(node, visit, {});
148
- }
149
- // Transform the AST and apply changes
150
- const result = ts.visitEachChild(sourceFile, visit, {});
151
- // Write the modified code back to the file if changes were made
152
- if (hasChanges) {
153
- const printer = ts.createPrinter();
154
- const newSourceCode = printer.printFile(result);
155
- fs.writeFileSync(filePath, newSourceCode);
156
- }
157
- return {
158
- file: filePath,
159
- fixed: hasChanges,
160
- changes,
161
- };
162
- }
163
- /**
164
- * Main function that processes all TypeScript files and adds type annotations
165
- *
166
- * Scans for all .ts and .tsx files in the project, processes each file to add
167
- * missing type annotations, and provides comprehensive reporting on the results.
168
- *
169
- * @returns Promise that resolves when all files have been processed
170
- *
171
- * @throws {Error} When file processing fails
172
- */
173
- async function main() {
174
- // Find all TypeScript files, excluding common directories and test files
175
- const files = await (0, fast_glob_1.default)(['**/*.{ts,tsx}'], {
176
- ignore: [
177
- '**/node_modules/**',
178
- '**/build/**',
179
- '**/dist/**',
180
- '**/*.spec.ts',
181
- '**/*.test.ts',
182
- ],
183
- });
184
- fsm_dynamo_1.DyFM_Log.log(`[fix-types] Processing ${files.length} files...`);
185
- const results = [];
186
- let totalFixed = 0;
187
- let totalChanges = 0;
188
- // Process each file individually
189
- for (const file of files) {
190
- try {
191
- const result = addTypesToFile(file);
192
- results.push(result);
193
- // Track successful fixes
194
- if (result.fixed) {
195
- totalFixed++;
196
- totalChanges += result.changes;
197
- fsm_dynamo_1.DyFM_Log.log(`✅ Fixed ${result.changes} type annotations in ${file}`);
198
- }
199
- }
200
- catch (error) {
201
- fsm_dynamo_1.DyFM_Log.error(`❌ Error processing ${file}:`, error);
202
- }
203
- }
204
- // Generate comprehensive summary report
205
- fsm_dynamo_1.DyFM_Log.log(`\n📊 Fix Summary:`);
206
- fsm_dynamo_1.DyFM_Log.log(` Files processed: ${files.length}`);
207
- fsm_dynamo_1.DyFM_Log.log(` Files fixed: ${totalFixed}`);
208
- fsm_dynamo_1.DyFM_Log.log(` Total type annotations added: ${totalChanges}`);
209
- // Provide appropriate success/failure message
210
- if (totalFixed > 0) {
211
- fsm_dynamo_1.DyFM_Log.log(`🎉 Successfully added type annotations to ${totalFixed} files!`);
212
- }
213
- else {
214
- fsm_dynamo_1.DyFM_Log.log('✅ No files needed type annotation fixes!');
215
- }
216
- }
217
- // Csak akkor futtatjuk a teljes fajl-scan-t, ha a scriptet KOZVETLENUL hivjak
218
- // (CLI bin / `npm run fix:return-types`). Import eseten (pl. spec a helper-ekhez)
219
- // NEM indul el a main(), igy a tiszta segedfuggvenyek unit-tesztelhetok.
220
- if (require.main === module) {
221
- // Execute the main function and handle any errors
222
- main().catch((err) => {
223
- fsm_dynamo_1.DyFM_Log.error('Fix script failed:', err);
224
- process.exit(1);
225
- });
226
- }
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ /**
4
+ * @fileoverview TypeScript Type Annotation Fix Script
5
+ *
6
+ * This script uses TypeScript's AST (Abstract Syntax Tree) to automatically add
7
+ * type annotations to functions and arrow functions. It analyzes TypeScript files,
8
+ * infers return types using the TypeScript compiler, and adds explicit type
9
+ * annotations where missing.
10
+ *
11
+ * @usage
12
+ * ```bash
13
+ * dynamo-fix-return-types
14
+ * ```
15
+ *
16
+ * @example
17
+ * ```bash
18
+ * # Fix type annotations in all TypeScript files
19
+ * npx dynamo-fix-return-types
20
+ *
21
+ * # Or run via npm script
22
+ * npm run fix:types
23
+ * ```
24
+ *
25
+ * @author Future Development Program Ltd.
26
+ * @version 1.14.3
27
+ */
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.buildTypeNodeFromString = buildTypeNodeFromString;
30
+ exports.addTypesToFile = addTypesToFile;
31
+ const tslib_1 = require("tslib");
32
+ const ts = tslib_1.__importStar(require("typescript"));
33
+ const fs = tslib_1.__importStar(require("fs"));
34
+ const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
35
+ const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
36
+ /**
37
+ * Egy `checker.typeToString(...)`-bol jovo TIPUS-STRING-et valodi `ts.TypeNode`-da
38
+ * alakit ugy, hogy egy eldobhato `type __T = <typeString>;` forrast parse-ol es
39
+ * kiszedi belole a TypeNode-ot.
40
+ *
41
+ * MIERT: a regi megoldas `ts.factory.createTypeReferenceNode(typeString)`-et hivott,
42
+ * ami CSAK bare identifier-t (entity-name-et) fogad el. Egy generic/union/stb.
43
+ * tipus-string (pl. `Record<string, unknown>`) eseten ez tort node-ot epitett, amit
44
+ * a printer csonka `Record`-kent (type-argumentumok nelkul) emittalt — ami EGYSZERRE
45
+ * tsc-hiba ES uj lint-hiba, igy egyetlen fix-futas 0 → 1+ lint-szamot regresszalt.
46
+ * A `typeToString` mindig syntactically valid TS tipus-syntaxot ad vissza, ezert a
47
+ * `type __T = …;` parse-olas minden esetre korrekt TypeNode-ot allit elo.
48
+ *
49
+ * BAIL-OUT: ha a tipus nem alakithato biztonsagos node-da — pl. inline
50
+ * `import("/abs/path").Foo` format tartalmaz, ami abszolut path-t szivarogtatna a
51
+ * fajlba —, `undefined`-et adunk vissza. A hivo ilyenkor KIHAGYJA az annotaciot:
52
+ * jobb annotalatlanul hagyni (marad a figyelmeztetes), mint tort kodot irni.
53
+ */
54
+ function buildTypeNodeFromString(typeString) {
55
+ // Inline `import(...)` tipus → projekt-specifikus abszolut/relativ path-t vinne a
56
+ // fajlba; sosem biztonsagos textualisan beilleszteni, ezert bail.
57
+ if (typeString.includes('import(')) {
58
+ return undefined;
59
+ }
60
+ const probe = ts.createSourceFile('__dynamo_type_probe__.ts', `type __T = ${typeString};`, ts.ScriptTarget.Latest,
61
+ /* setParentNodes */ false);
62
+ const statement = probe.statements[0];
63
+ if (!statement || !ts.isTypeAliasDeclaration(statement) || !statement.type) {
64
+ return undefined;
65
+ }
66
+ return statement.type;
67
+ }
68
+ /**
69
+ * Adds type annotations to functions and arrow functions in a TypeScript file
70
+ *
71
+ * Uses TypeScript's compiler API to analyze the file, infer return types,
72
+ * and automatically add explicit type annotations where missing.
73
+ *
74
+ * @param filePath - Path to the TypeScript file to process
75
+ * @returns FixResult object containing statistics about the changes made
76
+ *
77
+ * @example
78
+ * ```typescript
79
+ * const result = addTypesToFile('./src/utils.ts');
80
+ * console.log(`Added ${result.changes} type annotations to ${result.file}`);
81
+ * ```
82
+ */
83
+ function addTypesToFile(filePath) {
84
+ // Read and parse the source file
85
+ const sourceCode = fs.readFileSync(filePath, 'utf8');
86
+ const sourceFile = ts.createSourceFile(filePath, sourceCode, ts.ScriptTarget.Latest, true);
87
+ // Create TypeScript program for type checking
88
+ const program = ts.createProgram([filePath], {
89
+ target: ts.ScriptTarget.Latest,
90
+ module: ts.ModuleKind.ESNext,
91
+ strict: true,
92
+ skipLibCheck: true,
93
+ });
94
+ const checker = program.getTypeChecker();
95
+ let changes = 0;
96
+ let hasChanges = false;
97
+ /**
98
+ * Recursively visits AST nodes and adds type annotations where needed
99
+ *
100
+ * @param node - The current AST node being visited
101
+ * @returns The potentially modified AST node
102
+ */
103
+ function visit(node) {
104
+ // Handle function declarations without return types
105
+ if (ts.isFunctionDeclaration(node) && !node.type) {
106
+ const signature = checker.getSignatureFromDeclaration(node);
107
+ if (signature) {
108
+ const returnType = checker.getReturnTypeOfSignature(signature);
109
+ const typeString = checker.typeToString(returnType);
110
+ // Add type annotation if it's not void or any
111
+ if (typeString !== 'void' && typeString !== 'any') {
112
+ const newType = buildTypeNodeFromString(typeString);
113
+ // newType === undefined → a tipus nem serializalhato biztonsagosan,
114
+ // kihagyjuk az annotaciot ahelyett hogy tort kodot irnank (B2 bail-out).
115
+ if (newType) {
116
+ const updatedNode = ts.factory.updateFunctionDeclaration(node, node.modifiers, node.asteriskToken, node.name, node.typeParameters, node.parameters, newType, node.body);
117
+ changes++;
118
+ hasChanges = true;
119
+ return ts.visitEachChild(updatedNode, visit, {});
120
+ }
121
+ }
122
+ }
123
+ }
124
+ // Handle arrow functions without return types
125
+ if (ts.isArrowFunction(node) && !node.type) {
126
+ const signature = checker.getSignatureFromDeclaration(node);
127
+ if (signature) {
128
+ const returnType = checker.getReturnTypeOfSignature(signature);
129
+ const typeString = checker.typeToString(returnType);
130
+ // Add type annotation if it's not void or any
131
+ if (typeString !== 'void' && typeString !== 'any') {
132
+ const newType = buildTypeNodeFromString(typeString);
133
+ // newType === undefined → a tipus nem serializalhato biztonsagosan,
134
+ // kihagyjuk az annotaciot ahelyett hogy tort kodot irnank (B2 bail-out).
135
+ if (newType) {
136
+ const updatedNode = ts.factory.updateArrowFunction(node, node.modifiers, node.typeParameters, node.parameters, newType, node.equalsGreaterThanToken, node.body);
137
+ changes++;
138
+ hasChanges = true;
139
+ return ts.visitEachChild(updatedNode, visit, {});
140
+ }
141
+ }
142
+ }
143
+ }
144
+ // Note: Variable declarations, parameters, and class properties
145
+ // are handled by the existing @typescript-eslint/typedef rule
146
+ // and can be auto-fixed with eslint --fix
147
+ return ts.visitEachChild(node, visit, {});
148
+ }
149
+ // Transform the AST and apply changes
150
+ const result = ts.visitEachChild(sourceFile, visit, {});
151
+ // Write the modified code back to the file if changes were made
152
+ if (hasChanges) {
153
+ const printer = ts.createPrinter();
154
+ const newSourceCode = printer.printFile(result);
155
+ fs.writeFileSync(filePath, newSourceCode);
156
+ }
157
+ return {
158
+ file: filePath,
159
+ fixed: hasChanges,
160
+ changes,
161
+ };
162
+ }
163
+ /**
164
+ * Main function that processes all TypeScript files and adds type annotations
165
+ *
166
+ * Scans for all .ts and .tsx files in the project, processes each file to add
167
+ * missing type annotations, and provides comprehensive reporting on the results.
168
+ *
169
+ * @returns Promise that resolves when all files have been processed
170
+ *
171
+ * @throws {Error} When file processing fails
172
+ */
173
+ async function main() {
174
+ // Find all TypeScript files, excluding common directories and test files
175
+ const files = await (0, fast_glob_1.default)(['**/*.{ts,tsx}'], {
176
+ ignore: [
177
+ '**/node_modules/**',
178
+ '**/build/**',
179
+ '**/dist/**',
180
+ '**/*.spec.ts',
181
+ '**/*.test.ts',
182
+ ],
183
+ });
184
+ fsm_dynamo_1.DyFM_Log.log(`[fix-types] Processing ${files.length} files...`);
185
+ const results = [];
186
+ let totalFixed = 0;
187
+ let totalChanges = 0;
188
+ // Process each file individually
189
+ for (const file of files) {
190
+ try {
191
+ const result = addTypesToFile(file);
192
+ results.push(result);
193
+ // Track successful fixes
194
+ if (result.fixed) {
195
+ totalFixed++;
196
+ totalChanges += result.changes;
197
+ fsm_dynamo_1.DyFM_Log.log(`✅ Fixed ${result.changes} type annotations in ${file}`);
198
+ }
199
+ }
200
+ catch (error) {
201
+ fsm_dynamo_1.DyFM_Log.error(`❌ Error processing ${file}:`, error);
202
+ }
203
+ }
204
+ // Generate comprehensive summary report
205
+ fsm_dynamo_1.DyFM_Log.log(`\n📊 Fix Summary:`);
206
+ fsm_dynamo_1.DyFM_Log.log(` Files processed: ${files.length}`);
207
+ fsm_dynamo_1.DyFM_Log.log(` Files fixed: ${totalFixed}`);
208
+ fsm_dynamo_1.DyFM_Log.log(` Total type annotations added: ${totalChanges}`);
209
+ // Provide appropriate success/failure message
210
+ if (totalFixed > 0) {
211
+ fsm_dynamo_1.DyFM_Log.log(`🎉 Successfully added type annotations to ${totalFixed} files!`);
212
+ }
213
+ else {
214
+ fsm_dynamo_1.DyFM_Log.log('✅ No files needed type annotation fixes!');
215
+ }
216
+ }
217
+ // Csak akkor futtatjuk a teljes fajl-scan-t, ha a scriptet KOZVETLENUL hivjak
218
+ // (CLI bin / `npm run fix:return-types`). Import eseten (pl. spec a helper-ekhez)
219
+ // NEM indul el a main(), igy a tiszta segedfuggvenyek unit-tesztelhetok.
220
+ if (require.main === module) {
221
+ // Execute the main function and handle any errors
222
+ main().catch((err) => {
223
+ fsm_dynamo_1.DyFM_Log.error('Fix script failed:', err);
224
+ process.exit(1);
225
+ });
226
+ }
227
227
  //# sourceMappingURL=fix-return-types.js.map
@@ -1 +1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AE,CAAC,CAAC;IAEjE,8CAA8C;IAC9C,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;QACnB,qBAAQ,CAAC,GAAG,CAAC,6CAA6C,UAAU,SAAS,CAAC,CAAC;IACjF,CAAC;SAAM,CAAC;QACN,qBAAQ,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,kFAAkF;AAClF,yEAAyE;AACzE,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,kDAAkD;IAClD,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,qBAAQ,CAAC,KAAK,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,27 +1,27 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @fileoverview Import Validation Script
4
- *
5
- * This script validates import ordering across all TypeScript files in the project
6
- * using the Dynamo import-order ESLint rule. It scans files, runs ESLint validation,
7
- * and reports any import ordering violations.
8
- *
9
- * @usage
10
- * ```bash
11
- * dynamo-validate-imports
12
- * ```
13
- *
14
- * @example
15
- * ```bash
16
- * # Validate import ordering in all TypeScript files
17
- * npx dynamo-validate-imports
18
- *
19
- * # Or run via npm script
20
- * npm run validate:imports
21
- * ```
22
- *
23
- * @author Future Development Program Ltd.
24
- * @version 1.14.3
25
- */
26
- export {};
1
+ #!/usr/bin/env node
2
+ /**
3
+ * @fileoverview Import Validation Script
4
+ *
5
+ * This script validates import ordering across all TypeScript files in the project
6
+ * using the Dynamo import-order ESLint rule. It scans files, runs ESLint validation,
7
+ * and reports any import ordering violations.
8
+ *
9
+ * @usage
10
+ * ```bash
11
+ * dynamo-validate-imports
12
+ * ```
13
+ *
14
+ * @example
15
+ * ```bash
16
+ * # Validate import ordering in all TypeScript files
17
+ * npx dynamo-validate-imports
18
+ *
19
+ * # Or run via npm script
20
+ * npm run validate:imports
21
+ * ```
22
+ *
23
+ * @author Future Development Program Ltd.
24
+ * @version 1.14.3
25
+ */
26
+ export {};
27
27
  //# sourceMappingURL=validate-imports.d.ts.map