@futdevpro/dynamo-eslint 1.15.1 → 1.15.3

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 (73) hide show
  1. package/.cursor/rules/__assistant_guide.mdc +30 -0
  2. package/.cursor/rules/__main.mdc +64 -0
  3. package/.cursor/rules/_ag_backend-structure.mdc +86 -0
  4. package/.cursor/rules/_ag_backend.mdc +16 -0
  5. package/.cursor/rules/_ag_debug.mdc +8 -0
  6. package/.cursor/rules/_ag_documentation_writing_rules.mdc +372 -0
  7. package/.cursor/rules/_ag_file-refactoring.mdc +113 -0
  8. package/.cursor/rules/_ag_fixes_rules.mdc +6 -0
  9. package/.cursor/rules/_ag_frontend-structure.mdc +87 -0
  10. package/.cursor/rules/_ag_frontend.mdc +40 -0
  11. package/.cursor/rules/_ag_import-rules.mdc +45 -0
  12. package/.cursor/rules/_ag_naming.mdc +116 -0
  13. package/.cursor/rules/_ag_running_commands.mdc +5 -0
  14. package/.cursor/rules/_ag_server-controller.mdc +6 -0
  15. package/.cursor/rules/_ag_should-be.mdc +7 -0
  16. package/.cursor/rules/_ag_swearing.mdc +47 -0
  17. package/.cursor/rules/ai_development_guide.md +61 -0
  18. package/.cursor/rules/ai_directives.md +114 -0
  19. package/.cursor/rules/cursor-rules.md +160 -0
  20. package/.cursor/rules/default-command.mdc +465 -0
  21. package/.cursor/rules/error_code_pattern.md +40 -0
  22. package/.cursor/rules/saved rule mcp server use.md +16 -0
  23. package/futdevpro-dynamo-eslint-1.15.3.tgz +0 -0
  24. package/package.json +2 -2
  25. package/build/plugin/rules/explicit-types.spec.d.ts +0 -2
  26. package/build/plugin/rules/explicit-types.spec.d.ts.map +0 -1
  27. package/build/plugin/rules/explicit-types.spec.js +0 -162
  28. package/build/plugin/rules/explicit-types.spec.js.map +0 -1
  29. package/build/plugin/rules/import/import-order.spec.d.ts +0 -2
  30. package/build/plugin/rules/import/import-order.spec.d.ts.map +0 -1
  31. package/build/plugin/rules/import/import-order.spec.js +0 -197
  32. package/build/plugin/rules/import/import-order.spec.js.map +0 -1
  33. package/build/plugin/rules/import/no-import-type.spec.d.ts +0 -2
  34. package/build/plugin/rules/import/no-import-type.spec.d.ts.map +0 -1
  35. package/build/plugin/rules/import/no-import-type.spec.js +0 -60
  36. package/build/plugin/rules/import/no-import-type.spec.js.map +0 -1
  37. package/build/plugin/rules/import/no-js-import.spec.d.ts +0 -2
  38. package/build/plugin/rules/import/no-js-import.spec.d.ts.map +0 -1
  39. package/build/plugin/rules/import/no-js-import.spec.js +0 -68
  40. package/build/plugin/rules/import/no-js-import.spec.js.map +0 -1
  41. package/build/plugin/rules/naming-patterns.spec.d.ts +0 -2
  42. package/build/plugin/rules/naming-patterns.spec.d.ts.map +0 -1
  43. package/build/plugin/rules/naming-patterns.spec.js +0 -36
  44. package/build/plugin/rules/naming-patterns.spec.js.map +0 -1
  45. package/build/plugin/rules/no-getter-logic.spec.d.ts +0 -2
  46. package/build/plugin/rules/no-getter-logic.spec.d.ts.map +0 -1
  47. package/build/plugin/rules/no-getter-logic.spec.js +0 -461
  48. package/build/plugin/rules/no-getter-logic.spec.js.map +0 -1
  49. package/build/plugin/rules/prefer-enum-over-string-union.spec.d.ts +0 -2
  50. package/build/plugin/rules/prefer-enum-over-string-union.spec.d.ts.map +0 -1
  51. package/build/plugin/rules/prefer-enum-over-string-union.spec.js +0 -505
  52. package/build/plugin/rules/prefer-enum-over-string-union.spec.js.map +0 -1
  53. package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.d.ts +0 -2
  54. package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.d.ts.map +0 -1
  55. package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.js +0 -324
  56. package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.js.map +0 -1
  57. package/build/plugin/rules/require-jsdoc-description.spec.d.ts +0 -2
  58. package/build/plugin/rules/require-jsdoc-description.spec.d.ts.map +0 -1
  59. package/build/plugin/rules/require-jsdoc-description.spec.js +0 -546
  60. package/build/plugin/rules/require-jsdoc-description.spec.js.map +0 -1
  61. package/build/plugin/rules/require-test-description-prefix.spec.d.ts +0 -2
  62. package/build/plugin/rules/require-test-description-prefix.spec.d.ts.map +0 -1
  63. package/build/plugin/rules/require-test-description-prefix.spec.js +0 -371
  64. package/build/plugin/rules/require-test-description-prefix.spec.js.map +0 -1
  65. package/build-test/plugin/rules/import-order.d.ts +0 -3
  66. package/build-test/plugin/rules/import-order.js +0 -23
  67. package/build-test/plugin/rules/import-order.spec.d.ts +0 -1
  68. package/build-test/plugin/rules/import-order.spec.js +0 -44
  69. package/build-test/plugin/rules/naming-patterns.d.ts +0 -3
  70. package/build-test/plugin/rules/naming-patterns.js +0 -22
  71. package/build-test/plugin/rules/naming-patterns.spec.d.ts +0 -1
  72. package/build-test/plugin/rules/naming-patterns.spec.js +0 -41
  73. package/futdevpro-dynamo-eslint-1.15.01.tgz +0 -0
@@ -1,461 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const no_getter_logic_1 = tslib_1.__importDefault(require("./no-getter-logic"));
5
- describe('| no-getter-logic', () => {
6
- it('| should be a valid ESLint rule', () => {
7
- expect(no_getter_logic_1.default.meta?.type).toBe('suggestion');
8
- expect(no_getter_logic_1.default.meta?.docs?.description).toContain('Getters should only contain simple property mappings');
9
- });
10
- it('| should have create function that returns visitor object', () => {
11
- const mockContext = {
12
- report: () => { },
13
- options: [],
14
- sourceCode: {
15
- getText: () => '',
16
- },
17
- };
18
- const result = no_getter_logic_1.default.create(mockContext);
19
- expect(typeof result).toBe('object');
20
- expect(typeof result.MethodDefinition).toBe('function');
21
- });
22
- it('| should not report for simple property access getter', () => {
23
- let reportCalled = false;
24
- const mockContext = {
25
- report: () => {
26
- reportCalled = true;
27
- },
28
- options: [],
29
- sourceCode: {
30
- getText: () => '',
31
- },
32
- };
33
- const rule = no_getter_logic_1.default.create(mockContext);
34
- const mockNode = {
35
- kind: 'get',
36
- key: { name: 'selectedTokenPackage' },
37
- value: {
38
- body: {
39
- type: 'BlockStatement',
40
- body: [
41
- {
42
- type: 'ReturnStatement',
43
- argument: {
44
- type: 'MemberExpression',
45
- object: {
46
- type: 'MemberExpression',
47
- object: { type: 'ThisExpression' },
48
- property: { type: 'Identifier', name: 'tokenPackages_CS' },
49
- },
50
- property: {
51
- type: 'MemberExpression',
52
- object: { type: 'Identifier', name: 'tokenPackageByType' },
53
- property: {
54
- type: 'MemberExpression',
55
- object: { type: 'ThisExpression' },
56
- property: { type: 'Identifier', name: 'selectedPackageType' },
57
- },
58
- computed: true,
59
- },
60
- computed: true,
61
- },
62
- },
63
- ],
64
- },
65
- },
66
- };
67
- rule.MethodDefinition(mockNode);
68
- expect(reportCalled).toBe(false);
69
- });
70
- it('| should not report for simple length property access', () => {
71
- let reportCalled = false;
72
- const mockContext = {
73
- report: () => {
74
- reportCalled = true;
75
- },
76
- options: [],
77
- sourceCode: {
78
- getText: () => '',
79
- },
80
- };
81
- const rule = no_getter_logic_1.default.create(mockContext);
82
- const mockNode = {
83
- kind: 'get',
84
- key: { name: 'runningProgressCount' },
85
- value: {
86
- body: {
87
- type: 'BlockStatement',
88
- body: [
89
- {
90
- type: 'ReturnStatement',
91
- argument: {
92
- type: 'MemberExpression',
93
- object: {
94
- type: 'MemberExpression',
95
- object: { type: 'ThisExpression' },
96
- property: { type: 'Identifier', name: '_runningProgresses' },
97
- },
98
- property: { type: 'Identifier', name: 'length' },
99
- },
100
- },
101
- ],
102
- },
103
- },
104
- };
105
- rule.MethodDefinition(mockNode);
106
- expect(reportCalled).toBe(false);
107
- });
108
- it('| should not report for simple signal property access', () => {
109
- let reportCalled = false;
110
- const mockContext = {
111
- report: () => {
112
- reportCalled = true;
113
- },
114
- options: [],
115
- sourceCode: {
116
- getText: () => '',
117
- },
118
- };
119
- const rule = no_getter_logic_1.default.create(mockContext);
120
- const mockNode = {
121
- kind: 'get',
122
- key: { name: 'myChannels_$' },
123
- value: {
124
- body: {
125
- type: 'BlockStatement',
126
- body: [
127
- {
128
- type: 'ReturnStatement',
129
- argument: {
130
- type: 'MemberExpression',
131
- object: {
132
- type: 'MemberExpression',
133
- object: { type: 'ThisExpression' },
134
- property: { type: 'Identifier', name: 'myChannels_DH' },
135
- },
136
- property: { type: 'Identifier', name: 'dataList_$' },
137
- },
138
- },
139
- ],
140
- },
141
- },
142
- };
143
- rule.MethodDefinition(mockNode);
144
- expect(reportCalled).toBe(false);
145
- });
146
- it('| should report for binary expression (multiplication)', () => {
147
- let reportCalled = false;
148
- const mockContext = {
149
- report: (options) => {
150
- reportCalled = true;
151
- expect(options.messageId).toBe('noLogic');
152
- expect(options.data.name).toBe('shownHUNVat');
153
- },
154
- options: [],
155
- sourceCode: {
156
- getText: () => '',
157
- },
158
- };
159
- const rule = no_getter_logic_1.default.create(mockContext);
160
- const mockNode = {
161
- kind: 'get',
162
- key: { name: 'shownHUNVat' },
163
- value: {
164
- body: {
165
- type: 'BlockStatement',
166
- body: [
167
- {
168
- type: 'ReturnStatement',
169
- argument: {
170
- type: 'BinaryExpression',
171
- operator: '*',
172
- left: { type: 'Identifier', name: 'HU_vat' },
173
- right: { type: 'Literal', value: 100 },
174
- },
175
- },
176
- ],
177
- },
178
- },
179
- };
180
- rule.MethodDefinition(mockNode);
181
- expect(reportCalled).toBe(true);
182
- });
183
- it('| should report for function call', () => {
184
- let reportCalled = false;
185
- const mockContext = {
186
- report: (options) => {
187
- reportCalled = true;
188
- expect(options.messageId).toBe('noLogic');
189
- expect(options.data.name).toBe('selectedPackageType');
190
- },
191
- options: [],
192
- sourceCode: {
193
- getText: () => '',
194
- },
195
- };
196
- const rule = no_getter_logic_1.default.create(mockContext);
197
- const mockNode = {
198
- kind: 'get',
199
- key: { name: 'selectedPackageType' },
200
- value: {
201
- body: {
202
- type: 'BlockStatement',
203
- body: [
204
- {
205
- type: 'ReturnStatement',
206
- argument: {
207
- type: 'MemberExpression',
208
- object: {
209
- type: 'CallExpression',
210
- callee: {
211
- type: 'MemberExpression',
212
- object: { type: 'ThisExpression' },
213
- property: { type: 'Identifier', name: 'completedPurchaseData$' },
214
- },
215
- arguments: [],
216
- },
217
- property: { type: 'Identifier', name: 'selectedPackageType' },
218
- },
219
- },
220
- ],
221
- },
222
- },
223
- };
224
- rule.MethodDefinition(mockNode);
225
- expect(reportCalled).toBe(true);
226
- });
227
- it('| should report for unary expression', () => {
228
- let reportCalled = false;
229
- const mockContext = {
230
- report: (options) => {
231
- reportCalled = true;
232
- expect(options.messageId).toBe('noLogic');
233
- },
234
- options: [],
235
- sourceCode: {
236
- getText: () => '',
237
- },
238
- };
239
- const rule = no_getter_logic_1.default.create(mockContext);
240
- const mockNode = {
241
- kind: 'get',
242
- key: { name: 'negatedValue' },
243
- value: {
244
- body: {
245
- type: 'BlockStatement',
246
- body: [
247
- {
248
- type: 'ReturnStatement',
249
- argument: {
250
- type: 'UnaryExpression',
251
- operator: '!',
252
- argument: { type: 'Identifier', name: 'someValue' },
253
- },
254
- },
255
- ],
256
- },
257
- },
258
- };
259
- rule.MethodDefinition(mockNode);
260
- expect(reportCalled).toBe(true);
261
- });
262
- it('| should report for conditional expression (ternary)', () => {
263
- let reportCalled = false;
264
- const mockContext = {
265
- report: (options) => {
266
- reportCalled = true;
267
- expect(options.messageId).toBe('noLogic');
268
- },
269
- options: [],
270
- sourceCode: {
271
- getText: () => '',
272
- },
273
- };
274
- const rule = no_getter_logic_1.default.create(mockContext);
275
- const mockNode = {
276
- kind: 'get',
277
- key: { name: 'conditionalValue' },
278
- value: {
279
- body: {
280
- type: 'BlockStatement',
281
- body: [
282
- {
283
- type: 'ReturnStatement',
284
- argument: {
285
- type: 'ConditionalExpression',
286
- test: { type: 'Identifier', name: 'condition' },
287
- consequent: { type: 'Literal', value: 'true' },
288
- alternate: { type: 'Literal', value: 'false' },
289
- },
290
- },
291
- ],
292
- },
293
- },
294
- };
295
- rule.MethodDefinition(mockNode);
296
- expect(reportCalled).toBe(true);
297
- });
298
- it('| should report for logical expression', () => {
299
- let reportCalled = false;
300
- const mockContext = {
301
- report: (options) => {
302
- reportCalled = true;
303
- expect(options.messageId).toBe('noLogic');
304
- },
305
- options: [],
306
- sourceCode: {
307
- getText: () => '',
308
- },
309
- };
310
- const rule = no_getter_logic_1.default.create(mockContext);
311
- const mockNode = {
312
- kind: 'get',
313
- key: { name: 'logicalValue' },
314
- value: {
315
- body: {
316
- type: 'BlockStatement',
317
- body: [
318
- {
319
- type: 'ReturnStatement',
320
- argument: {
321
- type: 'LogicalExpression',
322
- operator: '&&',
323
- left: { type: 'Identifier', name: 'value1' },
324
- right: { type: 'Identifier', name: 'value2' },
325
- },
326
- },
327
- ],
328
- },
329
- },
330
- };
331
- rule.MethodDefinition(mockNode);
332
- expect(reportCalled).toBe(true);
333
- });
334
- it('| should not report for non-getter methods', () => {
335
- let reportCalled = false;
336
- const mockContext = {
337
- report: () => {
338
- reportCalled = true;
339
- },
340
- options: [],
341
- sourceCode: {
342
- getText: () => '',
343
- },
344
- };
345
- const rule = no_getter_logic_1.default.create(mockContext);
346
- const mockNode = {
347
- kind: 'method',
348
- key: { name: 'someMethod' },
349
- value: {
350
- body: {
351
- type: 'BlockStatement',
352
- body: [
353
- {
354
- type: 'ReturnStatement',
355
- argument: {
356
- type: 'CallExpression',
357
- callee: { type: 'Identifier', name: 'someFunction' },
358
- arguments: [],
359
- },
360
- },
361
- ],
362
- },
363
- },
364
- };
365
- rule.MethodDefinition(mockNode);
366
- expect(reportCalled).toBe(false);
367
- });
368
- it('| should not report for setter methods', () => {
369
- let reportCalled = false;
370
- const mockContext = {
371
- report: () => {
372
- reportCalled = true;
373
- },
374
- options: [],
375
- sourceCode: {
376
- getText: () => '',
377
- },
378
- };
379
- const rule = no_getter_logic_1.default.create(mockContext);
380
- const mockNode = {
381
- kind: 'set',
382
- key: { name: 'someSetter' },
383
- value: {
384
- body: {
385
- type: 'BlockStatement',
386
- body: [
387
- {
388
- type: 'ExpressionStatement',
389
- expression: {
390
- type: 'AssignmentExpression',
391
- operator: '=',
392
- left: { type: 'Identifier', name: 'this.value' },
393
- right: { type: 'Identifier', name: 'value' },
394
- },
395
- },
396
- ],
397
- },
398
- },
399
- };
400
- rule.MethodDefinition(mockNode);
401
- expect(reportCalled).toBe(false);
402
- });
403
- it('| should handle getter without body gracefully', () => {
404
- let reportCalled = false;
405
- const mockContext = {
406
- report: () => {
407
- reportCalled = true;
408
- },
409
- options: [],
410
- sourceCode: {
411
- getText: () => '',
412
- },
413
- };
414
- const rule = no_getter_logic_1.default.create(mockContext);
415
- const mockNode = {
416
- kind: 'get',
417
- key: { name: 'emptyGetter' },
418
- value: {},
419
- };
420
- expect(() => {
421
- rule.MethodDefinition(mockNode);
422
- }).not.toThrow();
423
- expect(reportCalled).toBe(false);
424
- });
425
- it('| should handle errors gracefully', () => {
426
- const mockContext = {
427
- report: () => { },
428
- options: [],
429
- sourceCode: {
430
- getText: () => {
431
- throw new Error('Test error');
432
- },
433
- },
434
- };
435
- const rule = no_getter_logic_1.default.create(mockContext);
436
- const mockNode = {
437
- kind: 'get',
438
- key: { name: 'testGetter' },
439
- value: {
440
- body: {
441
- type: 'BlockStatement',
442
- body: [
443
- {
444
- type: 'ReturnStatement',
445
- argument: {
446
- type: 'CallExpression',
447
- callee: { type: 'Identifier', name: 'test' },
448
- arguments: [],
449
- },
450
- },
451
- ],
452
- },
453
- },
454
- };
455
- // Should not throw error
456
- expect(() => {
457
- rule.MethodDefinition(mockNode);
458
- }).not.toThrow();
459
- });
460
- });
461
- //# sourceMappingURL=no-getter-logic.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-getter-logic.spec.js","sourceRoot":"","sources":["../../../src/plugin/rules/no-getter-logic.spec.ts"],"names":[],"mappings":";;;AAAA,gFAAkD;AAElD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QACzC,MAAM,CAAC,yBAAiB,CAAC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AG,EAAE,GAAE,CAAC;YAChB,OAAO,EAAE,EAAE;YACX,UAAU,EAAE;gBACV,OAAO,EAAE,GAAG,EAAE;oBACZ,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;gBAChC,CAAC;aACF;SACK,CAAC;QAET,MAAM,IAAI,GAAG,yBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAEnD,MAAM,QAAQ,GAAG;YACf,IAAI,EAAE,KAAK;YACX,GAAG,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;YAC3B,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE;wBACJ;4BACE,IAAI,EAAE,iBAAiB;4BACvB,QAAQ,EAAE;gCACR,IAAI,EAAE,gBAAgB;gCACtB,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE;gCAC5C,SAAS,EAAE,EAAE;6BACd;yBACF;qBACF;iBACF;aACF;SACK,CAAC;QAET,yBAAyB;QACzB,MAAM,CAAC,GAAG,EAAE;YACV,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=prefer-enum-over-string-union.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prefer-enum-over-string-union.spec.d.ts","sourceRoot":"","sources":["../../../src/plugin/rules/prefer-enum-over-string-union.spec.ts"],"names":[],"mappings":""}