forked from typescript-eslint/typescript-eslint
/
index.ts
36 lines (33 loc) · 1022 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
36
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 './isTypeReadonly';
export * from './misc';
export * from './nullThrows';
export * from './objectIterators';
export * from './propertyTypes';
export * from './requiresQuoting';
export * from '@typescript-eslint/experimental-utils/dist/eslint-utils/types';
// this is done for convenience - saves migrating all of the old rules
const {
applyDefault,
deepMerge,
isObjectNotArray,
getParserServices,
} = ESLintUtils;
type InferMessageIdsTypeFromRule<
T
> = ESLintUtils.InferMessageIdsTypeFromRule<T>;
type InferOptionsTypeFromRule<T> = ESLintUtils.InferOptionsTypeFromRule<T>;
export {
applyDefault,
deepMerge,
isObjectNotArray,
getParserServices,
InferMessageIdsTypeFromRule,
InferOptionsTypeFromRule,
};