/
index.ts
33 lines (30 loc) · 857 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
import { ESLintUtils } from '@typescript-eslint/experimental-utils';
export * from './astUtils';
export * from './collectUnusedVariables';
export * from './createRule';
export * from './isTypeReadonly';
export * from './misc';
export * from './nullThrows';
export * from './objectIterators';
export * from './propertyTypes';
export * from './requiresQuoting';
export * from './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,
};