-
Notifications
You must be signed in to change notification settings - Fork 685
Expand file tree
/
Copy pathindex.ts
More file actions
63 lines (47 loc) · 2.34 KB
/
index.ts
File metadata and controls
63 lines (47 loc) · 2.34 KB
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
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import type { TSESLint } from '@typescript-eslint/utils';
import { hoistJestMock } from './hoist-jest-mock';
import { noBackslashImportsRule } from './no-backslash-imports';
import { noExternalLocalImportsRule } from './no-external-local-imports';
import { noNewNullRule } from './no-new-null';
import { noNullRule } from './no-null';
import { nullPrototypeDictionariesRule } from './null-prototype-dictionaries';
import { noTransitiveDependencyImportsRule } from './no-transitive-dependency-imports';
import { noUntypedUnderscoreRule } from './no-untyped-underscore';
import { normalizedImportsRule } from './normalized-imports';
import { typedefVar } from './typedef-var';
import { importRequiresChunkNameRule } from './import-requires-chunk-name';
import { pairReactDomRenderUnmountRule } from './pair-react-dom-render-unmount';
interface IPlugin {
rules: { [ruleName: string]: TSESLint.RuleModule<string, unknown[]> };
}
const plugin: IPlugin = {
rules: {
// Full name: "@rushstack/hoist-jest-mock"
'hoist-jest-mock': hoistJestMock,
// Full name: "@rushstack/no-backslash-imports"
'no-backslash-imports': noBackslashImportsRule,
// Full name: "@rushstack/no-external-local-imports"
'no-external-local-imports': noExternalLocalImportsRule,
// Full name: "@rushstack/no-new-null"
'no-new-null': noNewNullRule,
// Full name: "@rushstack/no-null"
'no-null': noNullRule,
// Full name: "@rushstack/null-prototype-dictionaries"
'null-prototype-dictionaries': nullPrototypeDictionariesRule,
// Full name: "@rushstack/no-transitive-dependency-imports"
'no-transitive-dependency-imports': noTransitiveDependencyImportsRule,
// Full name: "@rushstack/no-untyped-underscore"
'no-untyped-underscore': noUntypedUnderscoreRule,
// Full name: "@rushstack/normalized-imports"
'normalized-imports': normalizedImportsRule,
// Full name: "@rushstack/typedef-var"
'typedef-var': typedefVar,
// Full name: "@rushstack/import-requires-chunk-name"
'import-requires-chunk-name': importRequiresChunkNameRule,
// Full name: "@rushstack/pair-react-dom-render-unmount"
'pair-react-dom-render-unmount': pairReactDomRenderUnmountRule
}
};
export = plugin;