@futdevpro/dynamo-eslint 1.15.7 → 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/.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 +5 -8
- 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.7.tgz +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import noPlainFunctionExportRule from './no-plain-function-export';
|
|
2
|
+
|
|
3
|
+
describe('| no-plain-function-export', () => {
|
|
4
|
+
it('| should be a valid ESLint rule', () => {
|
|
5
|
+
expect(noPlainFunctionExportRule.meta?.type).toBe('suggestion');
|
|
6
|
+
expect(noPlainFunctionExportRule.meta?.messages?.noFunctionExport).toBeDefined();
|
|
7
|
+
expect(noPlainFunctionExportRule.meta?.messages?.noConstFunctionExport).toBeDefined();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('| should skip spec files', () => {
|
|
11
|
+
const mockContext: any = { filename: '/x/foo.spec.ts', report: () => {}, options: [] };
|
|
12
|
+
const result: any = noPlainFunctionExportRule.create(mockContext);
|
|
13
|
+
expect(result.ExportNamedDeclaration).toBeUndefined();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('| should report `export function fn`', () => {
|
|
17
|
+
let reportCalled: boolean = false;
|
|
18
|
+
const mockContext: any = {
|
|
19
|
+
filename: '/x/foo.ts',
|
|
20
|
+
report: (options: any): void => {
|
|
21
|
+
reportCalled = true;
|
|
22
|
+
expect(options.messageId).toBe('noFunctionExport');
|
|
23
|
+
},
|
|
24
|
+
options: [],
|
|
25
|
+
};
|
|
26
|
+
const rule: any = noPlainFunctionExportRule.create(mockContext);
|
|
27
|
+
const mockNode: any = {
|
|
28
|
+
declaration: { type: 'FunctionDeclaration', id: { name: 'helperFn' } },
|
|
29
|
+
};
|
|
30
|
+
rule.ExportNamedDeclaration(mockNode);
|
|
31
|
+
expect(reportCalled).toBe(true);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it('| should report `export const fn = () => …`', () => {
|
|
35
|
+
let reportCalled: boolean = false;
|
|
36
|
+
const mockContext: any = {
|
|
37
|
+
filename: '/x/foo.ts',
|
|
38
|
+
report: (options: any): void => {
|
|
39
|
+
reportCalled = true;
|
|
40
|
+
expect(options.messageId).toBe('noConstFunctionExport');
|
|
41
|
+
},
|
|
42
|
+
options: [],
|
|
43
|
+
};
|
|
44
|
+
const rule: any = noPlainFunctionExportRule.create(mockContext);
|
|
45
|
+
const mockNode: any = {
|
|
46
|
+
declaration: {
|
|
47
|
+
type: 'VariableDeclaration',
|
|
48
|
+
declarations: [
|
|
49
|
+
{ id: { name: 'helperFn' }, init: { type: 'ArrowFunctionExpression' } },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
rule.ExportNamedDeclaration(mockNode);
|
|
54
|
+
expect(reportCalled).toBe(true);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('| should not report `export const data = { … }`', () => {
|
|
58
|
+
let reportCalled: boolean = false;
|
|
59
|
+
const mockContext: any = { filename: '/x/foo.ts', report: () => { reportCalled = true; }, options: [] };
|
|
60
|
+
const rule: any = noPlainFunctionExportRule.create(mockContext);
|
|
61
|
+
const mockNode: any = {
|
|
62
|
+
declaration: {
|
|
63
|
+
type: 'VariableDeclaration',
|
|
64
|
+
declarations: [
|
|
65
|
+
{ id: { name: 'data' }, init: { type: 'ObjectExpression' } },
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
rule.ExportNamedDeclaration(mockNode);
|
|
70
|
+
expect(reportCalled).toBe(false);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Rule } from 'eslint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* No-plain-function-export szabály: tilos top-level `export function fn()` és
|
|
5
|
+
* `export const fn = () => …` arrow/function deklaráció.
|
|
6
|
+
* Megosztott logika static `_Util` / `UtilService` osztály metódusokban kell legyen.
|
|
7
|
+
* CCAP "no-plain-function-export" review ESLint AST-portja.
|
|
8
|
+
*/
|
|
9
|
+
const rule: Rule.RuleModule = {
|
|
10
|
+
meta: {
|
|
11
|
+
type: 'suggestion',
|
|
12
|
+
docs: {
|
|
13
|
+
description:
|
|
14
|
+
'Forbid top-level `export function` and `export const fn = () => …`; '
|
|
15
|
+
+ 'use static methods on `_Util` / `UtilService` classes.',
|
|
16
|
+
recommended: true,
|
|
17
|
+
},
|
|
18
|
+
schema: [],
|
|
19
|
+
messages: {
|
|
20
|
+
noFunctionExport:
|
|
21
|
+
'Top-level `export function {{name}}` tilos. '
|
|
22
|
+
+ 'Tedd static metódusba `_Util` / `UtilService` osztályon belül.',
|
|
23
|
+
noConstFunctionExport:
|
|
24
|
+
'Top-level `export const {{name}} = () => …` tilos. '
|
|
25
|
+
+ 'Tedd static metódusba `_Util` / `UtilService` osztályon belül.',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
create(context: Rule.RuleContext): Rule.RuleListener {
|
|
29
|
+
const filename: string = context.filename ?? '';
|
|
30
|
+
if (filename.endsWith('.spec.ts') || filename.endsWith('.test.ts')) {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
ExportNamedDeclaration(node: any): void {
|
|
36
|
+
try {
|
|
37
|
+
const decl: any = node.declaration;
|
|
38
|
+
if (!decl) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (decl.type === 'FunctionDeclaration' && decl.id && decl.id.name) {
|
|
42
|
+
context.report({
|
|
43
|
+
node: decl,
|
|
44
|
+
messageId: 'noFunctionExport',
|
|
45
|
+
data: { name: decl.id.name },
|
|
46
|
+
});
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (decl.type === 'VariableDeclaration' && Array.isArray(decl.declarations)) {
|
|
50
|
+
for (const declarator of decl.declarations) {
|
|
51
|
+
const init: any = declarator.init;
|
|
52
|
+
if (!init) {
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (init.type === 'ArrowFunctionExpression' || init.type === 'FunctionExpression') {
|
|
56
|
+
const name: string = (declarator.id && declarator.id.name) ? declarator.id.name : 'anonymous';
|
|
57
|
+
context.report({
|
|
58
|
+
node: declarator,
|
|
59
|
+
messageId: 'noConstFunctionExport',
|
|
60
|
+
data: { name: name },
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.error('[no-plain-function-export] Error in ExportNamedDeclaration visitor:', error);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default rule;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import oneExportPerFileRule from './one-export-per-file';
|
|
2
|
+
|
|
3
|
+
describe('| one-export-per-file', () => {
|
|
4
|
+
it('| should be a valid ESLint rule', () => {
|
|
5
|
+
expect(oneExportPerFileRule.meta?.type).toBe('suggestion');
|
|
6
|
+
expect(oneExportPerFileRule.meta?.messages?.tooManyExports).toBeDefined();
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
it('| should skip .const.ts (exception pattern)', () => {
|
|
10
|
+
const mockContext: any = { filename: '/x/foo.const.ts', report: () => {}, options: [] };
|
|
11
|
+
const result: any = oneExportPerFileRule.create(mockContext);
|
|
12
|
+
expect(result.Program).toBeUndefined();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('| should skip .data-model.ts (DataModel + DataParams allowed)', () => {
|
|
16
|
+
const mockContext: any = { filename: '/x/user.data-model.ts', report: () => {}, options: [] };
|
|
17
|
+
const result: any = oneExportPerFileRule.create(mockContext);
|
|
18
|
+
expect(result.Program).toBeUndefined();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('| should skip .spec.ts files', () => {
|
|
22
|
+
const mockContext: any = { filename: '/x/foo.spec.ts', report: () => {}, options: [] };
|
|
23
|
+
const result: any = oneExportPerFileRule.create(mockContext);
|
|
24
|
+
expect(result.Program).toBeUndefined();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('| should not report when file has 1 export', () => {
|
|
28
|
+
let reportCalled: boolean = false;
|
|
29
|
+
const mockContext: any = {
|
|
30
|
+
filename: '/x/foo.ts',
|
|
31
|
+
report: () => { reportCalled = true; },
|
|
32
|
+
options: [],
|
|
33
|
+
};
|
|
34
|
+
const rule: any = oneExportPerFileRule.create(mockContext);
|
|
35
|
+
const mockProgram: any = {
|
|
36
|
+
body: [
|
|
37
|
+
{ type: 'ExportNamedDeclaration', declaration: { type: 'FunctionDeclaration' } },
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
rule.Program(mockProgram);
|
|
41
|
+
expect(reportCalled).toBe(false);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('| should report when file has 2+ exports', () => {
|
|
45
|
+
let reportCalled: boolean = false;
|
|
46
|
+
const mockContext: any = {
|
|
47
|
+
filename: '/x/foo.ts',
|
|
48
|
+
report: (options: any): void => {
|
|
49
|
+
reportCalled = true;
|
|
50
|
+
expect(options.messageId).toBe('tooManyExports');
|
|
51
|
+
},
|
|
52
|
+
options: [],
|
|
53
|
+
};
|
|
54
|
+
const rule: any = oneExportPerFileRule.create(mockContext);
|
|
55
|
+
const mockProgram: any = {
|
|
56
|
+
body: [
|
|
57
|
+
{ type: 'ExportNamedDeclaration', declaration: { type: 'ClassDeclaration' } },
|
|
58
|
+
{ type: 'ExportNamedDeclaration', declaration: { type: 'FunctionDeclaration' } },
|
|
59
|
+
],
|
|
60
|
+
};
|
|
61
|
+
rule.Program(mockProgram);
|
|
62
|
+
expect(reportCalled).toBe(true);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Rule } from 'eslint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Kivétel fájl-minták – ezekben megengedett több export.
|
|
5
|
+
* CCAP konvenció: `*.const.ts`, `*.type-enum.ts`, `*.interface.ts`, DataModel + DataParams.
|
|
6
|
+
*/
|
|
7
|
+
const MULTI_EXPORT_EXCEPTION_PATTERNS: RegExp[] = [
|
|
8
|
+
/\.const\.ts$/,
|
|
9
|
+
/\.type-enum\.ts$/,
|
|
10
|
+
/\.interface\.ts$/,
|
|
11
|
+
/\.data-model\.ts$/,
|
|
12
|
+
/\.control-model\.ts$/,
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* One-export-per-file szabály: nem-kivétel fájlokban max 1 exportált
|
|
17
|
+
* class/interface/enum/type/function deklaráció lehet.
|
|
18
|
+
* CCAP "one-export-per-file" review ESLint AST-portja.
|
|
19
|
+
*/
|
|
20
|
+
const rule: Rule.RuleModule = {
|
|
21
|
+
meta: {
|
|
22
|
+
type: 'suggestion',
|
|
23
|
+
docs: {
|
|
24
|
+
description: 'Limit to one exported class/interface/enum/type/function per file (with named exceptions).',
|
|
25
|
+
recommended: true,
|
|
26
|
+
},
|
|
27
|
+
schema: [],
|
|
28
|
+
messages: {
|
|
29
|
+
tooManyExports:
|
|
30
|
+
'{{count}} export deklaráció a fájlban (max 1). Vegyél ki minden további exportot külön fájlba.',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
create(context: Rule.RuleContext): Rule.RuleListener {
|
|
34
|
+
const filename: string = context.filename ?? '';
|
|
35
|
+
if (MULTI_EXPORT_EXCEPTION_PATTERNS.some((p: RegExp): boolean => p.test(filename))) {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
if (filename.endsWith('.spec.ts') || filename.endsWith('.test.ts') || filename.endsWith('.d.ts')) {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
Program(node: any): void {
|
|
44
|
+
try {
|
|
45
|
+
const exportNodes: any[] = [];
|
|
46
|
+
for (const statement of node.body) {
|
|
47
|
+
if (statement.type === 'ExportNamedDeclaration' && statement.declaration) {
|
|
48
|
+
const decl: any = statement.declaration;
|
|
49
|
+
if (
|
|
50
|
+
decl.type === 'ClassDeclaration'
|
|
51
|
+
|| decl.type === 'TSInterfaceDeclaration'
|
|
52
|
+
|| decl.type === 'TSEnumDeclaration'
|
|
53
|
+
|| decl.type === 'TSTypeAliasDeclaration'
|
|
54
|
+
|| decl.type === 'FunctionDeclaration'
|
|
55
|
+
) {
|
|
56
|
+
exportNodes.push(statement);
|
|
57
|
+
}
|
|
58
|
+
} else if (statement.type === 'ExportDefaultDeclaration') {
|
|
59
|
+
exportNodes.push(statement);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (exportNodes.length > 1) {
|
|
63
|
+
context.report({
|
|
64
|
+
node: exportNodes[1],
|
|
65
|
+
messageId: 'tooManyExports',
|
|
66
|
+
data: { count: String(exportNodes.length) },
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.error('[one-export-per-file] Error in Program visitor:', error);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default rule;
|
|
Binary file
|