Skip to content

Commit 258f9d8

Browse files
authored
perf: no export all for @typescript-eslint/utils (#1150)
1 parent 95884fc commit 258f9d8

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

shared/utils/ast.ts

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,35 @@ export {
55
AST_TOKEN_TYPES,
66
} from '@typescript-eslint/types'
77

8-
// eslint-disable-next-line ts/no-restricted-imports
9-
export * from '@typescript-eslint/utils/ast-utils'
8+
export {
9+
isArrowToken,
10+
isClassOrTypeElement,
11+
isClosingBraceToken,
12+
isClosingBracketToken,
13+
isClosingParenToken,
14+
isColonToken,
15+
isCommaToken,
16+
isCommentToken,
17+
isFunction,
18+
isFunctionOrFunctionType,
19+
isIdentifier,
20+
isNodeOfTypes,
21+
isNotClosingParenToken,
22+
isNotCommaToken,
23+
isNotOpeningParenToken,
24+
isNotOptionalChainPunctuator,
25+
isNotSemicolonToken,
26+
isOpeningBraceToken,
27+
isOpeningBracketToken,
28+
isOpeningParenToken,
29+
isOptionalCallExpression,
30+
isOptionalChainPunctuator,
31+
isParenthesized,
32+
isSemicolonToken,
33+
isTokenOnSameLine,
34+
isTSConstructorType,
35+
isTSFunctionType,
36+
isTypeKeyword,
37+
isVariableDeclarator,
38+
LINEBREAK_MATCHER,
39+
} from '@typescript-eslint/utils/ast-utils'

0 commit comments

Comments
 (0)