@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.
- package/.cursor/rules/__assistant_guide.mdc +30 -0
- package/.cursor/rules/__main.mdc +64 -0
- package/.cursor/rules/_ag_backend-structure.mdc +86 -0
- package/.cursor/rules/_ag_backend.mdc +16 -0
- package/.cursor/rules/_ag_debug.mdc +8 -0
- package/.cursor/rules/_ag_documentation_writing_rules.mdc +372 -0
- package/.cursor/rules/_ag_file-refactoring.mdc +113 -0
- package/.cursor/rules/_ag_fixes_rules.mdc +6 -0
- package/.cursor/rules/_ag_frontend-structure.mdc +87 -0
- package/.cursor/rules/_ag_frontend.mdc +40 -0
- package/.cursor/rules/_ag_import-rules.mdc +45 -0
- package/.cursor/rules/_ag_naming.mdc +116 -0
- package/.cursor/rules/_ag_running_commands.mdc +5 -0
- package/.cursor/rules/_ag_server-controller.mdc +6 -0
- package/.cursor/rules/_ag_should-be.mdc +7 -0
- package/.cursor/rules/_ag_swearing.mdc +47 -0
- package/.cursor/rules/ai_development_guide.md +61 -0
- package/.cursor/rules/ai_directives.md +114 -0
- package/.cursor/rules/cursor-rules.md +160 -0
- package/.cursor/rules/default-command.mdc +465 -0
- package/.cursor/rules/error_code_pattern.md +40 -0
- package/.cursor/rules/saved rule mcp server use.md +16 -0
- package/futdevpro-dynamo-eslint-1.15.3.tgz +0 -0
- package/package.json +2 -2
- package/build/plugin/rules/explicit-types.spec.d.ts +0 -2
- package/build/plugin/rules/explicit-types.spec.d.ts.map +0 -1
- package/build/plugin/rules/explicit-types.spec.js +0 -162
- package/build/plugin/rules/explicit-types.spec.js.map +0 -1
- package/build/plugin/rules/import/import-order.spec.d.ts +0 -2
- package/build/plugin/rules/import/import-order.spec.d.ts.map +0 -1
- package/build/plugin/rules/import/import-order.spec.js +0 -197
- package/build/plugin/rules/import/import-order.spec.js.map +0 -1
- package/build/plugin/rules/import/no-import-type.spec.d.ts +0 -2
- package/build/plugin/rules/import/no-import-type.spec.d.ts.map +0 -1
- package/build/plugin/rules/import/no-import-type.spec.js +0 -60
- package/build/plugin/rules/import/no-import-type.spec.js.map +0 -1
- package/build/plugin/rules/import/no-js-import.spec.d.ts +0 -2
- package/build/plugin/rules/import/no-js-import.spec.d.ts.map +0 -1
- package/build/plugin/rules/import/no-js-import.spec.js +0 -68
- package/build/plugin/rules/import/no-js-import.spec.js.map +0 -1
- package/build/plugin/rules/naming-patterns.spec.d.ts +0 -2
- package/build/plugin/rules/naming-patterns.spec.d.ts.map +0 -1
- package/build/plugin/rules/naming-patterns.spec.js +0 -36
- package/build/plugin/rules/naming-patterns.spec.js.map +0 -1
- package/build/plugin/rules/no-getter-logic.spec.d.ts +0 -2
- package/build/plugin/rules/no-getter-logic.spec.d.ts.map +0 -1
- package/build/plugin/rules/no-getter-logic.spec.js +0 -461
- package/build/plugin/rules/no-getter-logic.spec.js.map +0 -1
- package/build/plugin/rules/prefer-enum-over-string-union.spec.d.ts +0 -2
- package/build/plugin/rules/prefer-enum-over-string-union.spec.d.ts.map +0 -1
- package/build/plugin/rules/prefer-enum-over-string-union.spec.js +0 -505
- package/build/plugin/rules/prefer-enum-over-string-union.spec.js.map +0 -1
- package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.d.ts +0 -2
- package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.d.ts.map +0 -1
- package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.js +0 -324
- package/build/plugin/rules/prefer-interface-over-duplicate-types.spec.js.map +0 -1
- package/build/plugin/rules/require-jsdoc-description.spec.d.ts +0 -2
- package/build/plugin/rules/require-jsdoc-description.spec.d.ts.map +0 -1
- package/build/plugin/rules/require-jsdoc-description.spec.js +0 -546
- package/build/plugin/rules/require-jsdoc-description.spec.js.map +0 -1
- package/build/plugin/rules/require-test-description-prefix.spec.d.ts +0 -2
- package/build/plugin/rules/require-test-description-prefix.spec.d.ts.map +0 -1
- package/build/plugin/rules/require-test-description-prefix.spec.js +0 -371
- package/build/plugin/rules/require-test-description-prefix.spec.js.map +0 -1
- package/build-test/plugin/rules/import-order.d.ts +0 -3
- package/build-test/plugin/rules/import-order.js +0 -23
- package/build-test/plugin/rules/import-order.spec.d.ts +0 -1
- package/build-test/plugin/rules/import-order.spec.js +0 -44
- package/build-test/plugin/rules/naming-patterns.d.ts +0 -3
- package/build-test/plugin/rules/naming-patterns.js +0 -22
- package/build-test/plugin/rules/naming-patterns.spec.d.ts +0 -1
- package/build-test/plugin/rules/naming-patterns.spec.js +0 -41
- package/futdevpro-dynamo-eslint-1.15.01.tgz +0 -0
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const require_test_description_prefix_1 = tslib_1.__importDefault(require("./require-test-description-prefix"));
|
|
5
|
-
describe('| require-test-description-prefix', () => {
|
|
6
|
-
it('| should be a valid ESLint rule', () => {
|
|
7
|
-
expect(require_test_description_prefix_1.default.meta.type).toBe('suggestion');
|
|
8
|
-
expect(require_test_description_prefix_1.default.meta.docs.description).toBe('Require "| " prefix in test descriptions');
|
|
9
|
-
expect(require_test_description_prefix_1.default.meta.fixable).toBe('code');
|
|
10
|
-
});
|
|
11
|
-
it('| should not report when describe has correct prefix', () => {
|
|
12
|
-
let reportCalled = false;
|
|
13
|
-
const mockContext = {
|
|
14
|
-
report: (options) => {
|
|
15
|
-
reportCalled = true;
|
|
16
|
-
},
|
|
17
|
-
options: [{ prefix: '| ' }],
|
|
18
|
-
};
|
|
19
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
20
|
-
const mockNode = {
|
|
21
|
-
type: 'CallExpression',
|
|
22
|
-
callee: { name: 'describe' },
|
|
23
|
-
arguments: [
|
|
24
|
-
{ type: 'Literal', value: '| my test suite' },
|
|
25
|
-
],
|
|
26
|
-
};
|
|
27
|
-
rule.CallExpression(mockNode);
|
|
28
|
-
expect(reportCalled).toBe(false);
|
|
29
|
-
});
|
|
30
|
-
it('| should not report when it has correct prefix', () => {
|
|
31
|
-
let reportCalled = false;
|
|
32
|
-
const mockContext = {
|
|
33
|
-
report: (options) => {
|
|
34
|
-
reportCalled = true;
|
|
35
|
-
},
|
|
36
|
-
options: [{ prefix: '| ' }],
|
|
37
|
-
};
|
|
38
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
39
|
-
const mockNode = {
|
|
40
|
-
type: 'CallExpression',
|
|
41
|
-
callee: { name: 'it' },
|
|
42
|
-
arguments: [
|
|
43
|
-
{ type: 'Literal', value: '| should do something' },
|
|
44
|
-
],
|
|
45
|
-
};
|
|
46
|
-
rule.CallExpression(mockNode);
|
|
47
|
-
expect(reportCalled).toBe(false);
|
|
48
|
-
});
|
|
49
|
-
it('| should not report when test has correct prefix', () => {
|
|
50
|
-
let reportCalled = false;
|
|
51
|
-
const mockContext = {
|
|
52
|
-
report: (options) => {
|
|
53
|
-
reportCalled = true;
|
|
54
|
-
},
|
|
55
|
-
options: [{ prefix: '| ' }],
|
|
56
|
-
};
|
|
57
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
58
|
-
const mockNode = {
|
|
59
|
-
type: 'CallExpression',
|
|
60
|
-
callee: { name: 'test' },
|
|
61
|
-
arguments: [
|
|
62
|
-
{ type: 'Literal', value: '| validates input' },
|
|
63
|
-
],
|
|
64
|
-
};
|
|
65
|
-
rule.CallExpression(mockNode);
|
|
66
|
-
expect(reportCalled).toBe(false);
|
|
67
|
-
});
|
|
68
|
-
it('| should report when describe is missing prefix', () => {
|
|
69
|
-
let reportCalled = false;
|
|
70
|
-
const mockContext = {
|
|
71
|
-
report: (options) => {
|
|
72
|
-
reportCalled = true;
|
|
73
|
-
expect(options.messageId).toBe('missingPrefix');
|
|
74
|
-
expect(options.data.prefix).toBe('| ');
|
|
75
|
-
expect(options.fix).toBeDefined();
|
|
76
|
-
},
|
|
77
|
-
options: [{ prefix: '| ' }],
|
|
78
|
-
};
|
|
79
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
80
|
-
const mockNode = {
|
|
81
|
-
type: 'CallExpression',
|
|
82
|
-
callee: { name: 'describe' },
|
|
83
|
-
arguments: [
|
|
84
|
-
{ type: 'Literal', value: 'my test suite' },
|
|
85
|
-
],
|
|
86
|
-
};
|
|
87
|
-
rule.CallExpression(mockNode);
|
|
88
|
-
expect(reportCalled).toBe(true);
|
|
89
|
-
});
|
|
90
|
-
it('| should report when it is missing prefix', () => {
|
|
91
|
-
let reportCalled = false;
|
|
92
|
-
const mockContext = {
|
|
93
|
-
report: (options) => {
|
|
94
|
-
reportCalled = true;
|
|
95
|
-
expect(options.messageId).toBe('missingPrefix');
|
|
96
|
-
expect(options.data.prefix).toBe('| ');
|
|
97
|
-
},
|
|
98
|
-
options: [{ prefix: '| ' }],
|
|
99
|
-
};
|
|
100
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
101
|
-
const mockNode = {
|
|
102
|
-
type: 'CallExpression',
|
|
103
|
-
callee: { name: 'it' },
|
|
104
|
-
arguments: [
|
|
105
|
-
{ type: 'Literal', value: 'should do something' },
|
|
106
|
-
],
|
|
107
|
-
};
|
|
108
|
-
rule.CallExpression(mockNode);
|
|
109
|
-
expect(reportCalled).toBe(true);
|
|
110
|
-
});
|
|
111
|
-
it('| should report when describe has wrong prefix', () => {
|
|
112
|
-
let reportCalled = false;
|
|
113
|
-
const mockContext = {
|
|
114
|
-
report: (options) => {
|
|
115
|
-
reportCalled = true;
|
|
116
|
-
expect(options.messageId).toBe('wrongPrefix');
|
|
117
|
-
expect(options.data.prefix).toBe('| ');
|
|
118
|
-
expect(options.data.found).toBe('|');
|
|
119
|
-
},
|
|
120
|
-
options: [{ prefix: '| ' }],
|
|
121
|
-
};
|
|
122
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
123
|
-
const mockNode = {
|
|
124
|
-
type: 'CallExpression',
|
|
125
|
-
callee: { name: 'describe' },
|
|
126
|
-
arguments: [
|
|
127
|
-
{ type: 'Literal', value: '|my test suite' },
|
|
128
|
-
],
|
|
129
|
-
};
|
|
130
|
-
rule.CallExpression(mockNode);
|
|
131
|
-
expect(reportCalled).toBe(true);
|
|
132
|
-
});
|
|
133
|
-
it('| should report when it has only pipe without space', () => {
|
|
134
|
-
let reportCalled = false;
|
|
135
|
-
const mockContext = {
|
|
136
|
-
report: (options) => {
|
|
137
|
-
reportCalled = true;
|
|
138
|
-
expect(options.messageId).toBe('wrongPrefix');
|
|
139
|
-
expect(options.data.found).toBe('|');
|
|
140
|
-
},
|
|
141
|
-
options: [{ prefix: '| ' }],
|
|
142
|
-
};
|
|
143
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
144
|
-
const mockNode = {
|
|
145
|
-
type: 'CallExpression',
|
|
146
|
-
callee: { name: 'it' },
|
|
147
|
-
arguments: [
|
|
148
|
-
{ type: 'Literal', value: '|should do something' },
|
|
149
|
-
],
|
|
150
|
-
};
|
|
151
|
-
rule.CallExpression(mockNode);
|
|
152
|
-
expect(reportCalled).toBe(true);
|
|
153
|
-
});
|
|
154
|
-
it('| should not report on non-test functions', () => {
|
|
155
|
-
let reportCalled = false;
|
|
156
|
-
const mockContext = {
|
|
157
|
-
report: (options) => {
|
|
158
|
-
reportCalled = true;
|
|
159
|
-
},
|
|
160
|
-
options: [{ prefix: '| ' }],
|
|
161
|
-
};
|
|
162
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
163
|
-
const mockNode = {
|
|
164
|
-
type: 'CallExpression',
|
|
165
|
-
callee: { name: 'console' },
|
|
166
|
-
arguments: [
|
|
167
|
-
{ type: 'Literal', value: 'log message' },
|
|
168
|
-
],
|
|
169
|
-
};
|
|
170
|
-
rule.CallExpression(mockNode);
|
|
171
|
-
expect(reportCalled).toBe(false);
|
|
172
|
-
});
|
|
173
|
-
it('| should not report when no arguments provided', () => {
|
|
174
|
-
let reportCalled = false;
|
|
175
|
-
const mockContext = {
|
|
176
|
-
report: (options) => {
|
|
177
|
-
reportCalled = true;
|
|
178
|
-
},
|
|
179
|
-
options: [{ prefix: '| ' }],
|
|
180
|
-
};
|
|
181
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
182
|
-
const mockNode = {
|
|
183
|
-
type: 'CallExpression',
|
|
184
|
-
callee: { name: 'describe' },
|
|
185
|
-
arguments: [],
|
|
186
|
-
};
|
|
187
|
-
rule.CallExpression(mockNode);
|
|
188
|
-
expect(reportCalled).toBe(false);
|
|
189
|
-
});
|
|
190
|
-
it('| should not report when first argument is not a string', () => {
|
|
191
|
-
let reportCalled = false;
|
|
192
|
-
const mockContext = {
|
|
193
|
-
report: (options) => {
|
|
194
|
-
reportCalled = true;
|
|
195
|
-
},
|
|
196
|
-
options: [{ prefix: '| ' }],
|
|
197
|
-
};
|
|
198
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
199
|
-
const mockNode = {
|
|
200
|
-
type: 'CallExpression',
|
|
201
|
-
callee: { name: 'describe' },
|
|
202
|
-
arguments: [
|
|
203
|
-
{ type: 'Identifier', name: 'myVariable' },
|
|
204
|
-
],
|
|
205
|
-
};
|
|
206
|
-
rule.CallExpression(mockNode);
|
|
207
|
-
expect(reportCalled).toBe(false);
|
|
208
|
-
});
|
|
209
|
-
it('| should handle beforeEach and afterEach', () => {
|
|
210
|
-
let reportCalled = false;
|
|
211
|
-
const mockContext = {
|
|
212
|
-
report: (options) => {
|
|
213
|
-
reportCalled = true;
|
|
214
|
-
expect(options.messageId).toBe('missingPrefix');
|
|
215
|
-
},
|
|
216
|
-
options: [{ prefix: '| ' }],
|
|
217
|
-
};
|
|
218
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
219
|
-
const mockNode = {
|
|
220
|
-
type: 'CallExpression',
|
|
221
|
-
callee: { name: 'beforeEach' },
|
|
222
|
-
arguments: [
|
|
223
|
-
{ type: 'Literal', value: 'setup test data' },
|
|
224
|
-
],
|
|
225
|
-
};
|
|
226
|
-
rule.CallExpression(mockNode);
|
|
227
|
-
expect(reportCalled).toBe(true);
|
|
228
|
-
});
|
|
229
|
-
it('| should handle beforeAll and afterAll', () => {
|
|
230
|
-
let reportCalled = false;
|
|
231
|
-
const mockContext = {
|
|
232
|
-
report: (options) => {
|
|
233
|
-
reportCalled = true;
|
|
234
|
-
expect(options.messageId).toBe('missingPrefix');
|
|
235
|
-
},
|
|
236
|
-
options: [{ prefix: '| ' }],
|
|
237
|
-
};
|
|
238
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
239
|
-
const mockNode = {
|
|
240
|
-
type: 'CallExpression',
|
|
241
|
-
callee: { name: 'beforeAll' },
|
|
242
|
-
arguments: [
|
|
243
|
-
{ type: 'Literal', value: 'setup suite' },
|
|
244
|
-
],
|
|
245
|
-
};
|
|
246
|
-
rule.CallExpression(mockNode);
|
|
247
|
-
expect(reportCalled).toBe(true);
|
|
248
|
-
});
|
|
249
|
-
it('| should handle custom prefix configuration', () => {
|
|
250
|
-
let reportCalled = false;
|
|
251
|
-
const mockContext = {
|
|
252
|
-
report: (options) => {
|
|
253
|
-
reportCalled = true;
|
|
254
|
-
expect(options.data.prefix).toBe('>>> ');
|
|
255
|
-
},
|
|
256
|
-
options: [{ prefix: '>>> ' }],
|
|
257
|
-
};
|
|
258
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
259
|
-
const mockNode = {
|
|
260
|
-
type: 'CallExpression',
|
|
261
|
-
callee: { name: 'describe' },
|
|
262
|
-
arguments: [
|
|
263
|
-
{ type: 'Literal', value: 'my test suite' },
|
|
264
|
-
],
|
|
265
|
-
};
|
|
266
|
-
rule.CallExpression(mockNode);
|
|
267
|
-
expect(reportCalled).toBe(true);
|
|
268
|
-
});
|
|
269
|
-
it('| should handle custom test functions configuration', () => {
|
|
270
|
-
let reportCalled = false;
|
|
271
|
-
const mockContext = {
|
|
272
|
-
report: (options) => {
|
|
273
|
-
reportCalled = true;
|
|
274
|
-
},
|
|
275
|
-
options: [{ testFunctions: ['myTest'] }],
|
|
276
|
-
};
|
|
277
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
278
|
-
const mockNode = {
|
|
279
|
-
type: 'CallExpression',
|
|
280
|
-
callee: { name: 'myTest' },
|
|
281
|
-
arguments: [
|
|
282
|
-
{ type: 'Literal', value: 'my test description' },
|
|
283
|
-
],
|
|
284
|
-
};
|
|
285
|
-
rule.CallExpression(mockNode);
|
|
286
|
-
expect(reportCalled).toBe(true);
|
|
287
|
-
});
|
|
288
|
-
it('| should provide auto-fix functionality', () => {
|
|
289
|
-
const mockContext = {
|
|
290
|
-
report: (options) => {
|
|
291
|
-
expect(options.fix).toBeDefined();
|
|
292
|
-
expect(typeof options.fix).toBe('function');
|
|
293
|
-
// Test the fix function
|
|
294
|
-
const fixResult = options.fix({
|
|
295
|
-
replaceText: (node, text) => {
|
|
296
|
-
expect(text).toBe('\'| my test suite\'');
|
|
297
|
-
return [];
|
|
298
|
-
},
|
|
299
|
-
});
|
|
300
|
-
expect(Array.isArray(fixResult)).toBe(true);
|
|
301
|
-
},
|
|
302
|
-
options: [{ prefix: '| ' }],
|
|
303
|
-
};
|
|
304
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
305
|
-
const mockNode = {
|
|
306
|
-
type: 'CallExpression',
|
|
307
|
-
callee: { name: 'describe' },
|
|
308
|
-
arguments: [
|
|
309
|
-
{ type: 'Literal', value: 'my test suite' },
|
|
310
|
-
],
|
|
311
|
-
};
|
|
312
|
-
rule.CallExpression(mockNode);
|
|
313
|
-
});
|
|
314
|
-
it('| should handle empty string descriptions', () => {
|
|
315
|
-
let reportCalled = false;
|
|
316
|
-
const mockContext = {
|
|
317
|
-
report: (options) => {
|
|
318
|
-
reportCalled = true;
|
|
319
|
-
expect(options.messageId).toBe('missingPrefix');
|
|
320
|
-
},
|
|
321
|
-
options: [{ prefix: '| ' }],
|
|
322
|
-
};
|
|
323
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
324
|
-
const mockNode = {
|
|
325
|
-
type: 'CallExpression',
|
|
326
|
-
callee: { name: 'describe' },
|
|
327
|
-
arguments: [
|
|
328
|
-
{ type: 'Literal', value: '' },
|
|
329
|
-
],
|
|
330
|
-
};
|
|
331
|
-
rule.CallExpression(mockNode);
|
|
332
|
-
expect(reportCalled).toBe(true);
|
|
333
|
-
});
|
|
334
|
-
it('| should handle errors gracefully', () => {
|
|
335
|
-
const mockContext = {
|
|
336
|
-
report: (options) => {
|
|
337
|
-
// Should not throw
|
|
338
|
-
},
|
|
339
|
-
options: [{ prefix: '| ' }],
|
|
340
|
-
};
|
|
341
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
342
|
-
// Test with malformed nodes
|
|
343
|
-
const malformedNode = {
|
|
344
|
-
type: 'CallExpression',
|
|
345
|
-
// Missing required properties
|
|
346
|
-
};
|
|
347
|
-
expect(() => {
|
|
348
|
-
rule.CallExpression(malformedNode);
|
|
349
|
-
}).not.toThrow();
|
|
350
|
-
});
|
|
351
|
-
it('| should handle missing callee gracefully', () => {
|
|
352
|
-
let reportCalled = false;
|
|
353
|
-
const mockContext = {
|
|
354
|
-
report: (options) => {
|
|
355
|
-
reportCalled = true;
|
|
356
|
-
},
|
|
357
|
-
options: [{ prefix: '| ' }],
|
|
358
|
-
};
|
|
359
|
-
const rule = require_test_description_prefix_1.default.create(mockContext);
|
|
360
|
-
const mockNode = {
|
|
361
|
-
type: 'CallExpression',
|
|
362
|
-
// Missing callee
|
|
363
|
-
arguments: [
|
|
364
|
-
{ type: 'Literal', value: 'my test suite' },
|
|
365
|
-
],
|
|
366
|
-
};
|
|
367
|
-
rule.CallExpression(mockNode);
|
|
368
|
-
expect(reportCalled).toBe(false);
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
//# sourceMappingURL=require-test-description-prefix.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"require-test-description-prefix.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AgB;YACtB,iBAAiB;YACjB,SAAS,EAAE;gBACT,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE;aAC5C;SACK,CAAC;QAET,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAE9B,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const rule = {
|
|
4
|
-
meta: {
|
|
5
|
-
type: 'suggestion',
|
|
6
|
-
docs: { description: 'Validate import ordering based on DyFM conventions' },
|
|
7
|
-
schema: [],
|
|
8
|
-
messages: {
|
|
9
|
-
misordered: 'Import statements should be grouped and ordered by convention.',
|
|
10
|
-
},
|
|
11
|
-
fixable: 'code',
|
|
12
|
-
},
|
|
13
|
-
create(context) {
|
|
14
|
-
return {
|
|
15
|
-
Program() {
|
|
16
|
-
// Basic implementation - no validation for now
|
|
17
|
-
// This prevents the rule from causing false positives
|
|
18
|
-
return;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
exports.default = rule;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const eslint_1 = require("eslint");
|
|
7
|
-
const import_order_1 = __importDefault(require("./import-order"));
|
|
8
|
-
const ruleTester = new eslint_1.RuleTester({
|
|
9
|
-
parser: require.resolve('@typescript-eslint/parser'),
|
|
10
|
-
parserOptions: {
|
|
11
|
-
ecmaVersion: 2020,
|
|
12
|
-
sourceType: 'module',
|
|
13
|
-
},
|
|
14
|
-
rules: {
|
|
15
|
-
// Disable all rules to prevent interference
|
|
16
|
-
'@futdevpro/dyfm/import-order': 'off',
|
|
17
|
-
'@futdevpro/dyfm/naming-patterns': 'off',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
describe('| import-order', () => {
|
|
21
|
-
it('| should not report errors for valid code', () => {
|
|
22
|
-
// Test the rule directly without using RuleTester to avoid interference
|
|
23
|
-
const mockContext = {
|
|
24
|
-
report: () => { },
|
|
25
|
-
getSourceCode: () => ({ ast: {} }),
|
|
26
|
-
};
|
|
27
|
-
const result = import_order_1.default.create(mockContext);
|
|
28
|
-
expect(typeof result).toBe('object');
|
|
29
|
-
expect(typeof result.Program).toBe('function');
|
|
30
|
-
});
|
|
31
|
-
it('| should be a valid ESLint rule', () => {
|
|
32
|
-
expect(import_order_1.default.meta?.type).toBe('suggestion');
|
|
33
|
-
expect(import_order_1.default.meta?.docs?.description).toContain('import ordering');
|
|
34
|
-
expect(import_order_1.default.meta?.fixable).toBe('code');
|
|
35
|
-
});
|
|
36
|
-
it('| should have create function that returns object with Program method', () => {
|
|
37
|
-
const mockContext = {
|
|
38
|
-
getSourceCode: () => ({ ast: {} }),
|
|
39
|
-
};
|
|
40
|
-
const result = import_order_1.default.create(mockContext);
|
|
41
|
-
expect(typeof result).toBe('object');
|
|
42
|
-
expect(typeof result.Program).toBe('function');
|
|
43
|
-
});
|
|
44
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const rule = {
|
|
4
|
-
meta: {
|
|
5
|
-
type: 'suggestion',
|
|
6
|
-
docs: { description: 'Enforce naming conventions using DyFM patterns' },
|
|
7
|
-
schema: [],
|
|
8
|
-
messages: {
|
|
9
|
-
invalidName: 'Identifier "{{name}}" does not match required naming pattern.',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
create(context) {
|
|
13
|
-
return {
|
|
14
|
-
Identifier(node) {
|
|
15
|
-
// Basic implementation - no validation for now
|
|
16
|
-
// This prevents the rule from causing false positives
|
|
17
|
-
return;
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
exports.default = rule;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const eslint_1 = require("eslint");
|
|
7
|
-
const naming_patterns_1 = __importDefault(require("./naming-patterns"));
|
|
8
|
-
const ruleTester = new eslint_1.RuleTester({
|
|
9
|
-
parser: require.resolve('@typescript-eslint/parser'),
|
|
10
|
-
parserOptions: {
|
|
11
|
-
ecmaVersion: 2020,
|
|
12
|
-
sourceType: 'module',
|
|
13
|
-
},
|
|
14
|
-
rules: {
|
|
15
|
-
// Disable all rules to prevent interference
|
|
16
|
-
'@futdevpro/dyfm/import-order': 'off',
|
|
17
|
-
'@futdevpro/dyfm/naming-patterns': 'off',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
describe('| naming-patterns', () => {
|
|
21
|
-
it('| should not report errors for valid code', () => {
|
|
22
|
-
// Test the rule directly without using RuleTester to avoid interference
|
|
23
|
-
const mockContext = {
|
|
24
|
-
report: () => { },
|
|
25
|
-
getSourceCode: () => ({ ast: {} }),
|
|
26
|
-
};
|
|
27
|
-
const result = naming_patterns_1.default.create(mockContext);
|
|
28
|
-
expect(typeof result).toBe('object');
|
|
29
|
-
expect(typeof result.Identifier).toBe('function');
|
|
30
|
-
});
|
|
31
|
-
it('| should be a valid ESLint rule', () => {
|
|
32
|
-
expect(naming_patterns_1.default.meta?.type).toBe('suggestion');
|
|
33
|
-
expect(naming_patterns_1.default.meta?.docs?.description).toContain('naming conventions');
|
|
34
|
-
});
|
|
35
|
-
it('| should have create function that returns object with Identifier method', () => {
|
|
36
|
-
const mockContext = {};
|
|
37
|
-
const result = naming_patterns_1.default.create(mockContext);
|
|
38
|
-
expect(typeof result).toBe('object');
|
|
39
|
-
expect(typeof result.Identifier).toBe('function');
|
|
40
|
-
});
|
|
41
|
-
});
|
|
Binary file
|