Skip to content

Commit 750dc5d

Browse files
committed
Clean up imports
1 parent ef6b938 commit 750dc5d

5 files changed

Lines changed: 25 additions & 15 deletions

File tree

transforms/helpers/decorator-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Decorator, JSCodeshift } from 'jscodeshift';
2-
import type { EOBaseProp, EOClassDecoratorProp } from './eo-prop';
3-
import EOCallExpressionProp from './eo-prop/private/call-expression';
2+
import { EOCallExpressionProp } from './eo-prop/index';
3+
import type { EOBaseProp, EOClassDecoratorProp } from './eo-prop/index';
44
import { assert, defined } from './util/types';
55

66
/** Copy decorators `from` => `to` */

transforms/helpers/import-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
DECORATOR_PATH_OVERRIDES,
1818
EMBER_DECORATOR_SPECIFIERS,
1919
getFirstDeclaration,
20-
} from './util';
20+
} from './util/index';
2121
import { assert, defined, isString, verified } from './util/types';
2222

2323
/** Returns true of the specifier is a decorator */

transforms/helpers/parse-helper.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import type {
1010
} from 'jscodeshift';
1111
import path from 'path';
1212
import type { ImportPropDecoratorMap } from './decorator-info';
13-
import type { EOProp, EOProps } from './eo-prop';
13+
import type { EOProp, EOProps } from './eo-prop/index';
1414
import makeEOProp, {
1515
EOActionsObjectProp,
1616
EOClassDecoratorProp,
17-
} from './eo-prop';
17+
} from './eo-prop/index';
1818
import {
1919
createDecoratorImportDeclarations,
2020
getImportedDecoratedProps,
@@ -25,7 +25,11 @@ import { DEFAULT_OPTIONS } from './options';
2525
import type { RuntimeData } from './runtime-data';
2626
import { isRuntimeData } from './runtime-data';
2727
import { createClass, withComments } from './transform-helper';
28-
import { capitalizeFirstLetter, dig, startsWithUpperCaseLetter } from './util';
28+
import {
29+
capitalizeFirstLetter,
30+
dig,
31+
startsWithUpperCaseLetter,
32+
} from './util/index';
2933
import {
3034
assert,
3135
defined,

transforms/helpers/transform-helper.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ import {
2121
createInstancePropDecorators,
2222
withDecorators,
2323
} from './decorator-helper';
24-
import type { Action, EOBaseProp, EOProps } from './eo-prop';
25-
import { EOClassDecoratorProp, EOFunctionExpressionProp } from './eo-prop';
26-
import EOActionsObjectProp from './eo-prop/private/actions-object';
27-
import EOCallExpressionProp from './eo-prop/private/call-expression';
24+
import type { Action, EOBaseProp, EOProps } from './eo-prop/index';
25+
import {
26+
EOActionsObjectProp,
27+
EOCallExpressionProp,
28+
EOClassDecoratorProp,
29+
EOFunctionExpressionProp,
30+
} from './eo-prop/index';
2831
import { DEFAULT_OPTIONS } from './options';
2932
import type { EOCallExpressionMixin } from './parse-helper';
3033
import {
3134
ACTION_SUPER_EXPRESSION_COMMENT,
3235
LAYOUT_DECORATOR_LOCAL_NAME,
3336
LAYOUT_DECORATOR_NAME,
34-
} from './util';
37+
} from './util/index';
3538
import { assert, defined, isRecord } from './util/types';
3639

3740
/** Returns true if class property should have value */

transforms/helpers/validation-helper.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import type { JSCodeshift } from 'jscodeshift';
22
import minimatch from 'minimatch';
3-
import type { EOProps } from './eo-prop';
4-
import { EOActionsObjectProp, EOClassDecoratorProp } from './eo-prop';
5-
import EOCallExpressionProp from './eo-prop/private/call-expression';
3+
import type { EOProps } from './eo-prop/index';
4+
import {
5+
EOActionsObjectProp,
6+
EOCallExpressionProp,
7+
EOClassDecoratorProp,
8+
} from './eo-prop/index';
69
import type { Options } from './options';
710
import { DEFAULT_OPTIONS } from './options';
8-
import { LIFECYCLE_HOOKS } from './util';
11+
import { LIFECYCLE_HOOKS } from './util/index';
912

1013
const UNSUPPORTED_PROP_NAMES = ['actions', 'layout'] as const;
1114

0 commit comments

Comments
 (0)