/
index.ts
35 lines (32 loc) · 926 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { ESLintUtils } from '@typescript-eslint/experimental-utils';
export * from './astUtils';
export * from './collectUnusedVariables';
export * from './createRule';
export * from './getFunctionHeadLoc';
export * from './getThisExpression';
export * from './getWrappingFixer';
export * from './misc';
export * from './objectIterators';
// this is done for convenience - saves migrating all of the old rules
export * from '@typescript-eslint/type-utils';
const {
applyDefault,
deepMerge,
isObjectNotArray,
getParserServices,
nullThrows,
NullThrowsReasons,
} = ESLintUtils;
type InferMessageIdsTypeFromRule<T> =
ESLintUtils.InferMessageIdsTypeFromRule<T>;
type InferOptionsTypeFromRule<T> = ESLintUtils.InferOptionsTypeFromRule<T>;
export {
applyDefault,
deepMerge,
isObjectNotArray,
getParserServices,
nullThrows,
InferMessageIdsTypeFromRule,
InferOptionsTypeFromRule,
NullThrowsReasons,
};