-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.ts
63 lines (62 loc) · 2.06 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import {
name as functionalParametersName,
rule as functionalParameters
} from "./functional-parameters";
import {
name as immutableDataRuleName,
rule as immutableDataRule
} from "./immutable-data";
import { name as noClassRuleName, rule as noClassRule } from "./no-class";
import {
name as noReturnVoidName,
rule as noReturnVoid
} from "./no-return-void";
import {
name as noConditionalStatementRuleName,
rule as noConditionalStatementRule
} from "./no-conditional-statement";
import {
name as noExpressionStatementRuleName,
rule as noExpressionStatementRule
} from "./no-expression-statement";
import { name as noLetRuleName, rule as noLetRule } from "./no-let";
import {
name as noLoopRuleName,
rule as noLoopRule
} from "./no-loop-statement";
import {
name as noMethodSignatureRuleName,
rule as noMethodSignatureRule
} from "./no-method-signature";
import {
name as noMixedInterfaceRuleName,
rule as noMixedInterfaceRule
} from "./no-mixed-interface";
import { name as noRejectRuleName, rule as noRejectRule } from "./no-reject";
import { name as noThisRuleName, rule as noThisRule } from "./no-this";
import { name as noThrowRuleName, rule as noThrowRule } from "./no-throw";
import { name as noTryRuleName, rule as noTryRule } from "./no-try";
import {
name as preferReadonlyTypesRuleName,
rule as preferReadonlyTypesRule
} from "./prefer-readonly-types";
/**
* All of the custom rules.
*/
export const rules = {
[functionalParametersName]: functionalParameters,
[immutableDataRuleName]: immutableDataRule,
[noClassRuleName]: noClassRule,
[noConditionalStatementRuleName]: noConditionalStatementRule,
[noExpressionStatementRuleName]: noExpressionStatementRule,
[noLetRuleName]: noLetRule,
[noLoopRuleName]: noLoopRule,
[noMethodSignatureRuleName]: noMethodSignatureRule,
[noMixedInterfaceRuleName]: noMixedInterfaceRule,
[noRejectRuleName]: noRejectRule,
[noReturnVoidName]: noReturnVoid,
[noThisRuleName]: noThisRule,
[noThrowRuleName]: noThrowRule,
[noTryRuleName]: noTryRule,
[preferReadonlyTypesRuleName]: preferReadonlyTypesRule
};