@perfective/eslint-config 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.adoc +1 -2
- package/README.md +1 -2
- package/cypress.d.ts +1 -0
- package/cypress.js +3 -5
- package/index.d.ts +1732 -0
- package/index.js +11 -12
- package/jest-dom.d.ts +1 -0
- package/jest.d.ts +1 -0
- package/package.json +17 -7
- package/rules/array-func/index.d.ts +14 -0
- package/rules/cypress/index.d.ts +21 -0
- package/rules/eslint/index.d.ts +339 -0
- package/rules/eslint/layout-formatting.d.ts +64 -0
- package/rules/eslint/possible-problems.d.ts +96 -0
- package/rules/eslint/suggestions.d.ts +181 -0
- package/rules/eslint-comments/best-practices.d.ts +8 -0
- package/rules/eslint-comments/index.d.ts +21 -0
- package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
- package/rules/import/helpful-warnings.d.ts +10 -0
- package/rules/import/index.d.ts +78 -0
- package/rules/import/module-systems.d.ts +10 -0
- package/rules/import/static-analysis.d.ts +26 -0
- package/rules/import/style-guide.d.ts +33 -0
- package/rules/jest/index.d.ts +124 -0
- package/rules/jest/typescript-eslint.d.ts +5 -0
- package/rules/jest-dom/index.d.ts +32 -0
- package/rules/jsdoc/index.d.ts +134 -0
- package/rules/n/index.d.ts +66 -0
- package/rules/prefer-arrow/index.d.ts +14 -0
- package/rules/promise/index.d.ts +35 -0
- package/rules/rxjs/index.d.ts +60 -0
- package/rules/security/index.d.ts +22 -0
- package/rules/simple-import-sort/index.d.ts +10 -0
- package/rules/stylistic/js/index.d.ts +197 -0
- package/rules/stylistic/jsx/index.d.ts +81 -0
- package/rules/stylistic/plus/index.d.ts +14 -0
- package/rules/stylistic/ts/index.d.ts +135 -0
- package/rules/testing-library/index.d.ts +62 -0
- package/rules/typescript-eslint/extension-rules.d.ts +113 -0
- package/rules/typescript-eslint/index.d.ts +369 -0
- package/rules/typescript-eslint/supported-rules.d.ts +253 -0
- package/rules/unicorn/index.d.ts +178 -0
- package/rxjs.d.ts +1 -0
- package/rxjs.js +3 -3
- package/testing-library.d.ts +1 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export declare const eslintPossibleProblemsRules: {
|
|
2
|
+
'array-callback-return': (string | {
|
|
3
|
+
allowImplicit: boolean;
|
|
4
|
+
checkForEach: boolean;
|
|
5
|
+
allowVoid: boolean;
|
|
6
|
+
})[];
|
|
7
|
+
'constructor-super': string;
|
|
8
|
+
'for-direction': string;
|
|
9
|
+
'getter-return': string;
|
|
10
|
+
'no-async-promise-executor': string;
|
|
11
|
+
'no-await-in-loop': string;
|
|
12
|
+
'no-class-assign': string;
|
|
13
|
+
'no-compare-neg-zero': string;
|
|
14
|
+
'no-cond-assign': string[];
|
|
15
|
+
'no-const-assign': string;
|
|
16
|
+
'no-constant-binary-expression': string;
|
|
17
|
+
'no-constant-condition': string;
|
|
18
|
+
'no-constructor-return': string;
|
|
19
|
+
'no-control-regex': string;
|
|
20
|
+
'no-debugger': string;
|
|
21
|
+
'no-dupe-args': string;
|
|
22
|
+
'no-dupe-class-members': string;
|
|
23
|
+
'no-dupe-else-if': string;
|
|
24
|
+
'no-dupe-keys': string;
|
|
25
|
+
'no-duplicate-case': string;
|
|
26
|
+
'no-duplicate-imports': (string | {
|
|
27
|
+
includeExports: boolean;
|
|
28
|
+
})[];
|
|
29
|
+
'no-empty-character-class': string;
|
|
30
|
+
'no-empty-pattern': string;
|
|
31
|
+
'no-ex-assign': string;
|
|
32
|
+
'no-fallthrough': (string | {
|
|
33
|
+
allowEmptyCase: boolean;
|
|
34
|
+
reportUnusedFallthroughComment: boolean;
|
|
35
|
+
})[];
|
|
36
|
+
'no-func-assign': string;
|
|
37
|
+
'no-import-assign': string;
|
|
38
|
+
'no-inner-declarations': string;
|
|
39
|
+
'no-invalid-regexp': string;
|
|
40
|
+
'no-irregular-whitespace': (string | {
|
|
41
|
+
skipStrings: boolean;
|
|
42
|
+
skipComments: boolean;
|
|
43
|
+
skipRegExps: boolean;
|
|
44
|
+
skipTemplates: boolean;
|
|
45
|
+
skipJSXText: boolean;
|
|
46
|
+
})[];
|
|
47
|
+
'no-loss-of-precision': string;
|
|
48
|
+
'no-misleading-character-class': (string | {
|
|
49
|
+
allowEscape: boolean;
|
|
50
|
+
})[];
|
|
51
|
+
'no-new-native-nonconstructor': string;
|
|
52
|
+
'no-new-symbol': string;
|
|
53
|
+
'no-obj-calls': string;
|
|
54
|
+
'no-promise-executor-return': string;
|
|
55
|
+
'no-prototype-builtins': string;
|
|
56
|
+
'no-self-assign': string;
|
|
57
|
+
'no-self-compare': string;
|
|
58
|
+
'no-setter-return': string;
|
|
59
|
+
'no-sparse-arrays': string;
|
|
60
|
+
'no-template-curly-in-string': string;
|
|
61
|
+
'no-this-before-super': string;
|
|
62
|
+
'no-undef': string;
|
|
63
|
+
'no-unexpected-multiline': string;
|
|
64
|
+
'no-unmodified-loop-condition': string;
|
|
65
|
+
'no-unreachable': string;
|
|
66
|
+
'no-unreachable-loop': string;
|
|
67
|
+
'no-unsafe-finally': string;
|
|
68
|
+
'no-unsafe-negation': string;
|
|
69
|
+
'no-unsafe-optional-chaining': string;
|
|
70
|
+
'no-unused-private-class-members': string;
|
|
71
|
+
'no-unused-vars': (string | {
|
|
72
|
+
args: string;
|
|
73
|
+
argsIgnorePattern: string;
|
|
74
|
+
caughtErrors: string;
|
|
75
|
+
destructuredArrayIgnorePattern: string;
|
|
76
|
+
ignoreClassWithStaticInitBlock: boolean;
|
|
77
|
+
ignoreRestSiblings: boolean;
|
|
78
|
+
reportUsedIgnorePattern: boolean;
|
|
79
|
+
vars: string;
|
|
80
|
+
})[];
|
|
81
|
+
'no-use-before-define': (string | {
|
|
82
|
+
functions: boolean;
|
|
83
|
+
classes: boolean;
|
|
84
|
+
variables: boolean;
|
|
85
|
+
allowNamedExports: boolean;
|
|
86
|
+
})[];
|
|
87
|
+
'no-useless-backreference': string;
|
|
88
|
+
'no-useless-assignment': string;
|
|
89
|
+
'require-atomic-updates': (string | {
|
|
90
|
+
allowProperties: boolean;
|
|
91
|
+
})[];
|
|
92
|
+
'use-isnan': string;
|
|
93
|
+
'valid-typeof': (string | {
|
|
94
|
+
requireStringLiterals: boolean;
|
|
95
|
+
})[];
|
|
96
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
export declare const eslintSuggestionsRules: {
|
|
2
|
+
'accessor-pairs': string;
|
|
3
|
+
'arrow-body-style': string[];
|
|
4
|
+
'block-scoped-var': string;
|
|
5
|
+
camelcase: string;
|
|
6
|
+
'capitalized-comments': (string | {
|
|
7
|
+
ignorePattern: string;
|
|
8
|
+
ignoreConsecutiveComments: boolean;
|
|
9
|
+
})[];
|
|
10
|
+
'class-methods-use-this': string;
|
|
11
|
+
complexity: (string | number)[];
|
|
12
|
+
'consistent-return': string;
|
|
13
|
+
'consistent-this': string[];
|
|
14
|
+
curly: string[];
|
|
15
|
+
'default-case': string;
|
|
16
|
+
'default-case-last': string;
|
|
17
|
+
'default-param-last': string;
|
|
18
|
+
'dot-notation': (string | {
|
|
19
|
+
allowKeywords: boolean;
|
|
20
|
+
})[];
|
|
21
|
+
eqeqeq: string[];
|
|
22
|
+
'func-name-matching': string[];
|
|
23
|
+
'func-names': string[];
|
|
24
|
+
'func-style': string[];
|
|
25
|
+
'grouped-accessor-pairs': string[];
|
|
26
|
+
'guard-for-in': string;
|
|
27
|
+
'id-denylist': string[];
|
|
28
|
+
'id-length': string;
|
|
29
|
+
'id-match': string;
|
|
30
|
+
'init-declarations': string[];
|
|
31
|
+
'logical-assignment-operators': (string | {
|
|
32
|
+
enforceForIfStatements: boolean;
|
|
33
|
+
})[];
|
|
34
|
+
'max-classes-per-file': (string | number)[];
|
|
35
|
+
'max-depth': (string | number)[];
|
|
36
|
+
'max-lines': string;
|
|
37
|
+
'max-lines-per-function': string;
|
|
38
|
+
'max-nested-callbacks': (string | number)[];
|
|
39
|
+
'max-params': (string | {
|
|
40
|
+
max: number;
|
|
41
|
+
})[];
|
|
42
|
+
'max-statements': (string | {
|
|
43
|
+
max: number;
|
|
44
|
+
})[];
|
|
45
|
+
'multiline-comment-style': string;
|
|
46
|
+
'new-cap': (string | {
|
|
47
|
+
newIsCap: boolean;
|
|
48
|
+
capIsNew: boolean;
|
|
49
|
+
properties: boolean;
|
|
50
|
+
})[];
|
|
51
|
+
'no-alert': string;
|
|
52
|
+
'no-array-constructor': string;
|
|
53
|
+
'no-bitwise': string;
|
|
54
|
+
'no-caller': string;
|
|
55
|
+
'no-case-declarations': string;
|
|
56
|
+
'no-confusing-arrow': string;
|
|
57
|
+
'no-console': string;
|
|
58
|
+
'no-continue': string;
|
|
59
|
+
'no-delete-var': string;
|
|
60
|
+
'no-div-regex': string;
|
|
61
|
+
'no-else-return': (string | {
|
|
62
|
+
allowElseIf: boolean;
|
|
63
|
+
})[];
|
|
64
|
+
'no-empty': string;
|
|
65
|
+
'no-empty-function': string;
|
|
66
|
+
'no-empty-static-block': string;
|
|
67
|
+
'no-eq-null': string;
|
|
68
|
+
'no-eval': string;
|
|
69
|
+
'no-extend-native': string;
|
|
70
|
+
'no-extra-bind': string;
|
|
71
|
+
'no-extra-boolean-cast': (string | {
|
|
72
|
+
enforceForInnerExpressions: boolean;
|
|
73
|
+
})[];
|
|
74
|
+
'no-extra-label': string;
|
|
75
|
+
'no-extra-semi': string;
|
|
76
|
+
'no-floating-decimal': string;
|
|
77
|
+
'no-global-assign': string;
|
|
78
|
+
'no-implicit-coercion': string;
|
|
79
|
+
'no-implicit-globals': string;
|
|
80
|
+
'no-implied-eval': string;
|
|
81
|
+
'no-inline-comments': (string | {
|
|
82
|
+
ignorePattern: string;
|
|
83
|
+
})[];
|
|
84
|
+
'no-invalid-this': string;
|
|
85
|
+
'no-iterator': string;
|
|
86
|
+
'no-label-var': string;
|
|
87
|
+
'no-labels': string;
|
|
88
|
+
'no-lone-blocks': string;
|
|
89
|
+
'no-lonely-if': string;
|
|
90
|
+
'no-loop-func': string;
|
|
91
|
+
'no-magic-numbers': string;
|
|
92
|
+
'no-mixed-operators': string;
|
|
93
|
+
'no-multi-assign': string;
|
|
94
|
+
'no-multi-str': string;
|
|
95
|
+
'no-negated-condition': string;
|
|
96
|
+
'no-nested-ternary': string;
|
|
97
|
+
'no-new': string;
|
|
98
|
+
'no-new-func': string;
|
|
99
|
+
'no-new-object': string;
|
|
100
|
+
'no-new-wrappers': string;
|
|
101
|
+
'no-nonoctal-decimal-escape': string;
|
|
102
|
+
'no-object-constructor': string;
|
|
103
|
+
'no-octal': string;
|
|
104
|
+
'no-octal-escape': string;
|
|
105
|
+
'no-param-reassign': string;
|
|
106
|
+
'no-plusplus': (string | {
|
|
107
|
+
allowForLoopAfterthoughts: boolean;
|
|
108
|
+
})[];
|
|
109
|
+
'no-proto': string;
|
|
110
|
+
'no-redeclare': string;
|
|
111
|
+
'no-regex-spaces': string;
|
|
112
|
+
'no-restricted-exports': string;
|
|
113
|
+
'no-restricted-globals': string;
|
|
114
|
+
'no-restricted-imports': string;
|
|
115
|
+
'no-restricted-properties': string;
|
|
116
|
+
'no-restricted-syntax': string[];
|
|
117
|
+
'no-return-assign': string;
|
|
118
|
+
'no-script-url': string;
|
|
119
|
+
'no-sequences': (string | {
|
|
120
|
+
allowInParentheses: boolean;
|
|
121
|
+
})[];
|
|
122
|
+
'no-shadow': string;
|
|
123
|
+
'no-shadow-restricted-names': string;
|
|
124
|
+
'no-ternary': string;
|
|
125
|
+
'no-throw-literal': string;
|
|
126
|
+
'no-undef-init': string;
|
|
127
|
+
'no-undefined': string;
|
|
128
|
+
'no-underscore-dangle': (string | {
|
|
129
|
+
allowAfterSuper: boolean;
|
|
130
|
+
allowAfterThis: boolean;
|
|
131
|
+
allowAfterThisConstructor: boolean;
|
|
132
|
+
allowFunctionParams: boolean;
|
|
133
|
+
enforceInMethodNames: boolean;
|
|
134
|
+
enforceInClassFields: boolean;
|
|
135
|
+
})[];
|
|
136
|
+
'no-unneeded-ternary': string;
|
|
137
|
+
'no-unused-expressions': string;
|
|
138
|
+
'no-unused-labels': string;
|
|
139
|
+
'no-useless-call': string;
|
|
140
|
+
'no-useless-catch': string;
|
|
141
|
+
'no-useless-computed-key': string;
|
|
142
|
+
'no-useless-concat': string;
|
|
143
|
+
'no-useless-constructor': string;
|
|
144
|
+
'no-useless-escape': string;
|
|
145
|
+
'no-useless-rename': string;
|
|
146
|
+
'no-useless-return': string;
|
|
147
|
+
'no-var': string;
|
|
148
|
+
'no-void': string;
|
|
149
|
+
'no-warning-comments': string;
|
|
150
|
+
'no-with': string;
|
|
151
|
+
'object-shorthand': string[];
|
|
152
|
+
'one-var': string[];
|
|
153
|
+
'one-var-declaration-per-line': string;
|
|
154
|
+
'operator-assignment': string[];
|
|
155
|
+
'prefer-arrow-callback': string;
|
|
156
|
+
'prefer-const': string;
|
|
157
|
+
'prefer-destructuring': string;
|
|
158
|
+
'prefer-exponentiation-operator': string;
|
|
159
|
+
'prefer-named-capture-group': string;
|
|
160
|
+
'prefer-numeric-literals': string;
|
|
161
|
+
'prefer-object-has-own': string;
|
|
162
|
+
'prefer-object-spread': string;
|
|
163
|
+
'prefer-promise-reject-errors': string;
|
|
164
|
+
'prefer-regex-literals': string;
|
|
165
|
+
'prefer-rest-params': string;
|
|
166
|
+
'prefer-spread': string;
|
|
167
|
+
'prefer-template': string;
|
|
168
|
+
'quote-props': string;
|
|
169
|
+
radix: string;
|
|
170
|
+
'require-await': string;
|
|
171
|
+
'require-unicode-regexp': string;
|
|
172
|
+
'require-yield': string;
|
|
173
|
+
'sort-imports': string;
|
|
174
|
+
'sort-keys': string;
|
|
175
|
+
'sort-vars': string;
|
|
176
|
+
'spaced-comment': string;
|
|
177
|
+
strict: string;
|
|
178
|
+
'symbol-description': string;
|
|
179
|
+
'vars-on-top': string;
|
|
180
|
+
yoda: string[];
|
|
181
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const bestPracticesRules: {
|
|
2
|
+
'eslint-comments/disable-enable-pair': string;
|
|
3
|
+
'eslint-comments/no-aggregating-enable': string;
|
|
4
|
+
'eslint-comments/no-duplicate-disable': string;
|
|
5
|
+
'eslint-comments/no-unlimited-disable': string;
|
|
6
|
+
'eslint-comments/no-unused-disable': string;
|
|
7
|
+
'eslint-comments/no-unused-enable': string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as eslintPluginEslintComments from 'eslint-plugin-eslint-comments';
|
|
2
|
+
export declare const eslintCommentsConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'eslint-comments': typeof eslintPluginEslintComments;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'eslint-comments/no-restricted-disable': string;
|
|
8
|
+
'eslint-comments/no-use': (string | {
|
|
9
|
+
allow: string[];
|
|
10
|
+
})[];
|
|
11
|
+
'eslint-comments/require-description': (string | {
|
|
12
|
+
ignore: string[];
|
|
13
|
+
})[];
|
|
14
|
+
'eslint-comments/disable-enable-pair': string;
|
|
15
|
+
'eslint-comments/no-aggregating-enable': string;
|
|
16
|
+
'eslint-comments/no-duplicate-disable': string;
|
|
17
|
+
'eslint-comments/no-unlimited-disable': string;
|
|
18
|
+
'eslint-comments/no-unused-disable': string;
|
|
19
|
+
'eslint-comments/no-unused-enable': string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const helpfulWarningsRules: {
|
|
2
|
+
'import/export': string;
|
|
3
|
+
'import/no-deprecated': string;
|
|
4
|
+
'import/no-empty-named-blocks': string;
|
|
5
|
+
'import/no-extraneous-dependencies': (string | import("./rules/no-extraneous-dependencies").ImportNoExtraneousDependencies)[];
|
|
6
|
+
'import/no-mutable-exports': string;
|
|
7
|
+
'import/no-named-as-default': string;
|
|
8
|
+
'import/no-named-as-default-member': string;
|
|
9
|
+
'import/no-unused-modules': string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const importConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
import: Record<string, unknown>;
|
|
4
|
+
};
|
|
5
|
+
rules: {
|
|
6
|
+
'import/consistent-type-specifier-style': string[];
|
|
7
|
+
'import/dynamic-import-chunkname': string;
|
|
8
|
+
'import/exports-last': string;
|
|
9
|
+
'import/extensions': (string | {
|
|
10
|
+
checkTypeImports: boolean;
|
|
11
|
+
})[];
|
|
12
|
+
'import/first': string;
|
|
13
|
+
'import/group-exports': string;
|
|
14
|
+
'import/max-dependencies': string;
|
|
15
|
+
'import/newline-after-import': (string | {
|
|
16
|
+
considerComments: boolean;
|
|
17
|
+
})[];
|
|
18
|
+
'import/no-anonymous-default-export': string;
|
|
19
|
+
'import/no-default-export': string;
|
|
20
|
+
'import/no-duplicates': (string | {
|
|
21
|
+
considerQueryString: boolean;
|
|
22
|
+
'prefer-inline': boolean;
|
|
23
|
+
})[];
|
|
24
|
+
'import/no-named-default': string;
|
|
25
|
+
'import/no-named-export': string;
|
|
26
|
+
'import/no-namespace': string;
|
|
27
|
+
'import/no-unassigned-import': string;
|
|
28
|
+
'import/order': (string | {
|
|
29
|
+
groups: string[];
|
|
30
|
+
'newlines-between': string;
|
|
31
|
+
alphabetize: {
|
|
32
|
+
order: string;
|
|
33
|
+
caseInsensitive: boolean;
|
|
34
|
+
};
|
|
35
|
+
})[];
|
|
36
|
+
'import/prefer-default-export': string;
|
|
37
|
+
'import/no-amd': string;
|
|
38
|
+
'import/no-commonjs': (string | {
|
|
39
|
+
allowConditionalRequire: boolean;
|
|
40
|
+
allowPrimitiveModules: boolean;
|
|
41
|
+
})[];
|
|
42
|
+
'import/no-import-module-exports': string;
|
|
43
|
+
'import/no-nodejs-modules': string;
|
|
44
|
+
'import/unambiguous': string;
|
|
45
|
+
'import/export': string;
|
|
46
|
+
'import/no-deprecated': string;
|
|
47
|
+
'import/no-empty-named-blocks': string;
|
|
48
|
+
'import/no-extraneous-dependencies': (string | import("./rules/no-extraneous-dependencies").ImportNoExtraneousDependencies)[];
|
|
49
|
+
'import/no-mutable-exports': string;
|
|
50
|
+
'import/no-named-as-default': string;
|
|
51
|
+
'import/no-named-as-default-member': string;
|
|
52
|
+
'import/no-unused-modules': string;
|
|
53
|
+
'import/default': string;
|
|
54
|
+
'import/named': (string | {
|
|
55
|
+
commonjs: boolean;
|
|
56
|
+
})[];
|
|
57
|
+
'import/namespace': string;
|
|
58
|
+
'import/no-absolute-path': string;
|
|
59
|
+
'import/no-cycle': (string | {
|
|
60
|
+
ignoreExternal: boolean;
|
|
61
|
+
allowUnsafeDynamicCyclicDependency: boolean;
|
|
62
|
+
})[];
|
|
63
|
+
'import/no-dynamic-require': (string | {
|
|
64
|
+
esmodule: boolean;
|
|
65
|
+
})[];
|
|
66
|
+
'import/no-internal-modules': string;
|
|
67
|
+
'import/no-relative-packages': string;
|
|
68
|
+
'import/no-relative-parent-imports': string;
|
|
69
|
+
'import/no-restricted-paths': string;
|
|
70
|
+
'import/no-self-import': string;
|
|
71
|
+
'import/no-unresolved': (string | {
|
|
72
|
+
caseSensitive: boolean;
|
|
73
|
+
caseSensitiveStrict: boolean;
|
|
74
|
+
})[];
|
|
75
|
+
'import/no-useless-path-segments': string;
|
|
76
|
+
'import/no-webpack-loader-syntax': string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const moduleSystemsRules: {
|
|
2
|
+
'import/no-amd': string;
|
|
3
|
+
'import/no-commonjs': (string | {
|
|
4
|
+
allowConditionalRequire: boolean;
|
|
5
|
+
allowPrimitiveModules: boolean;
|
|
6
|
+
})[];
|
|
7
|
+
'import/no-import-module-exports': string;
|
|
8
|
+
'import/no-nodejs-modules': string;
|
|
9
|
+
'import/unambiguous': string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const staticAnalysisRules: {
|
|
2
|
+
'import/default': string;
|
|
3
|
+
'import/named': (string | {
|
|
4
|
+
commonjs: boolean;
|
|
5
|
+
})[];
|
|
6
|
+
'import/namespace': string;
|
|
7
|
+
'import/no-absolute-path': string;
|
|
8
|
+
'import/no-cycle': (string | {
|
|
9
|
+
ignoreExternal: boolean;
|
|
10
|
+
allowUnsafeDynamicCyclicDependency: boolean;
|
|
11
|
+
})[];
|
|
12
|
+
'import/no-dynamic-require': (string | {
|
|
13
|
+
esmodule: boolean;
|
|
14
|
+
})[];
|
|
15
|
+
'import/no-internal-modules': string;
|
|
16
|
+
'import/no-relative-packages': string;
|
|
17
|
+
'import/no-relative-parent-imports': string;
|
|
18
|
+
'import/no-restricted-paths': string;
|
|
19
|
+
'import/no-self-import': string;
|
|
20
|
+
'import/no-unresolved': (string | {
|
|
21
|
+
caseSensitive: boolean;
|
|
22
|
+
caseSensitiveStrict: boolean;
|
|
23
|
+
})[];
|
|
24
|
+
'import/no-useless-path-segments': string;
|
|
25
|
+
'import/no-webpack-loader-syntax': string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const styleGuideRules: {
|
|
2
|
+
'import/consistent-type-specifier-style': string[];
|
|
3
|
+
'import/dynamic-import-chunkname': string;
|
|
4
|
+
'import/exports-last': string;
|
|
5
|
+
'import/extensions': (string | {
|
|
6
|
+
checkTypeImports: boolean;
|
|
7
|
+
})[];
|
|
8
|
+
'import/first': string;
|
|
9
|
+
'import/group-exports': string;
|
|
10
|
+
'import/max-dependencies': string;
|
|
11
|
+
'import/newline-after-import': (string | {
|
|
12
|
+
considerComments: boolean;
|
|
13
|
+
})[];
|
|
14
|
+
'import/no-anonymous-default-export': string;
|
|
15
|
+
'import/no-default-export': string;
|
|
16
|
+
'import/no-duplicates': (string | {
|
|
17
|
+
considerQueryString: boolean;
|
|
18
|
+
'prefer-inline': boolean;
|
|
19
|
+
})[];
|
|
20
|
+
'import/no-named-default': string;
|
|
21
|
+
'import/no-named-export': string;
|
|
22
|
+
'import/no-namespace': string;
|
|
23
|
+
'import/no-unassigned-import': string;
|
|
24
|
+
'import/order': (string | {
|
|
25
|
+
groups: string[];
|
|
26
|
+
'newlines-between': string;
|
|
27
|
+
alphabetize: {
|
|
28
|
+
order: string;
|
|
29
|
+
caseInsensitive: boolean;
|
|
30
|
+
};
|
|
31
|
+
})[];
|
|
32
|
+
'import/prefer-default-export': string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export declare const jestConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
jest: {
|
|
4
|
+
meta: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
};
|
|
8
|
+
environments: {
|
|
9
|
+
globals: {
|
|
10
|
+
globals: {
|
|
11
|
+
[key: string]: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
configs: {
|
|
16
|
+
all: import("eslint").Linter.LegacyConfig;
|
|
17
|
+
recommended: import("eslint").Linter.LegacyConfig;
|
|
18
|
+
style: import("eslint").Linter.LegacyConfig;
|
|
19
|
+
"flat/all": import("eslint").Linter.FlatConfig;
|
|
20
|
+
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
21
|
+
"flat/style": import("eslint").Linter.FlatConfig;
|
|
22
|
+
};
|
|
23
|
+
rules: {
|
|
24
|
+
[key: string]: import("eslint").Rule.RuleModule;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
languageOptions: {
|
|
29
|
+
globals: {
|
|
30
|
+
[key: string]: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
rules: {
|
|
34
|
+
'jest/consistent-test-it': (string | {
|
|
35
|
+
fn: string;
|
|
36
|
+
withinDescribe: string;
|
|
37
|
+
})[];
|
|
38
|
+
'jest/expect-expect': (string | {
|
|
39
|
+
assertFunctionNames: string[];
|
|
40
|
+
additionalTestBlockFunctions: never[];
|
|
41
|
+
})[];
|
|
42
|
+
'jest/max-expects': (string | {
|
|
43
|
+
max: number;
|
|
44
|
+
})[];
|
|
45
|
+
'jest/max-nested-describe': (string | {
|
|
46
|
+
max: number;
|
|
47
|
+
})[];
|
|
48
|
+
'jest/no-alias-methods': string;
|
|
49
|
+
'jest/no-commented-out-tests': string;
|
|
50
|
+
'jest/no-conditional-expect': string;
|
|
51
|
+
'jest/no-conditional-in-test': string;
|
|
52
|
+
'jest/no-confusing-set-timeout': string;
|
|
53
|
+
'jest/no-deprecated-functions': string;
|
|
54
|
+
'jest/no-disabled-tests': string;
|
|
55
|
+
'jest/no-done-callback': string;
|
|
56
|
+
'jest/no-duplicate-hooks': string;
|
|
57
|
+
'jest/no-export': string;
|
|
58
|
+
'jest/no-focused-tests': string;
|
|
59
|
+
'jest/no-hooks': string;
|
|
60
|
+
'jest/no-identical-title': string;
|
|
61
|
+
'jest/no-interpolation-in-snapshots': string;
|
|
62
|
+
'jest/no-jasmine-globals': string;
|
|
63
|
+
'jest/no-large-snapshots': string;
|
|
64
|
+
'jest/no-mocks-import': string;
|
|
65
|
+
'jest/no-restricted-jest-methods': string;
|
|
66
|
+
'jest/no-restricted-matchers': (string | {
|
|
67
|
+
toBeFalsy: string;
|
|
68
|
+
toBeTruthy: string;
|
|
69
|
+
toMatchSnapshot: string;
|
|
70
|
+
toThrowErrorMatchingSnapshot: string;
|
|
71
|
+
})[];
|
|
72
|
+
'jest/no-standalone-expect': string;
|
|
73
|
+
'jest/no-test-prefixes': string;
|
|
74
|
+
'jest/no-test-return-statement': string;
|
|
75
|
+
'jest/no-untyped-mock-factory': string;
|
|
76
|
+
'jest/padding-around-after-all-blocks': string;
|
|
77
|
+
'jest/padding-around-after-each-blocks': string;
|
|
78
|
+
'jest/padding-around-all': string;
|
|
79
|
+
'jest/padding-around-before-all-blocks': string;
|
|
80
|
+
'jest/padding-around-before-each-blocks': string;
|
|
81
|
+
'jest/padding-around-describe-blocks': string;
|
|
82
|
+
'jest/padding-around-expect-groups': string;
|
|
83
|
+
'jest/padding-around-test-blocks': string;
|
|
84
|
+
'jest/prefer-called-with': string;
|
|
85
|
+
'jest/prefer-comparison-matcher': string;
|
|
86
|
+
'jest/prefer-each': string;
|
|
87
|
+
'jest/prefer-equality-matcher': string;
|
|
88
|
+
'jest/prefer-expect-assertions': string;
|
|
89
|
+
'jest/prefer-expect-resolves': string;
|
|
90
|
+
'jest/prefer-hooks-in-order': string;
|
|
91
|
+
'jest/prefer-hooks-on-top': string;
|
|
92
|
+
'jest/prefer-importing-jest-globals': string;
|
|
93
|
+
'jest/prefer-jest-mocked': string;
|
|
94
|
+
'jest/prefer-lowercase-title': (string | {
|
|
95
|
+
allowedPrefixes: never[];
|
|
96
|
+
ignore: never[];
|
|
97
|
+
ignoreTopLevelDescribe: boolean;
|
|
98
|
+
})[];
|
|
99
|
+
'jest/prefer-mock-promise-shorthand': string;
|
|
100
|
+
'jest/prefer-snapshot-hint': string[];
|
|
101
|
+
'jest/prefer-spy-on': string;
|
|
102
|
+
'jest/prefer-strict-equal': string;
|
|
103
|
+
'jest/prefer-to-be': string;
|
|
104
|
+
'jest/prefer-to-contain': string;
|
|
105
|
+
'jest/prefer-to-have-length': string;
|
|
106
|
+
'jest/prefer-todo': string;
|
|
107
|
+
'jest/require-hook': (string | {
|
|
108
|
+
allowedFunctionCalls: never[];
|
|
109
|
+
})[];
|
|
110
|
+
'jest/require-to-throw-message': string;
|
|
111
|
+
'jest/require-top-level-describe': string;
|
|
112
|
+
'jest/valid-describe-callback': string;
|
|
113
|
+
'jest/valid-expect-in-promise': string;
|
|
114
|
+
'jest/valid-expect': string;
|
|
115
|
+
'jest/valid-title': (string | {
|
|
116
|
+
ignoreTypeOfDescribeName: boolean;
|
|
117
|
+
ignoreTypeOfTestName: boolean;
|
|
118
|
+
ignoreSpaces: boolean;
|
|
119
|
+
})[];
|
|
120
|
+
'jest/unbound-method': (string | {
|
|
121
|
+
ignoreStatic: boolean;
|
|
122
|
+
})[];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const jestDomConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
'jest-dom': {
|
|
4
|
+
meta: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
};
|
|
8
|
+
configs: {
|
|
9
|
+
all: import("eslint").Linter.LegacyConfig;
|
|
10
|
+
recommended: import("eslint").Linter.LegacyConfig;
|
|
11
|
+
"flat/all": import("eslint").Linter.FlatConfig;
|
|
12
|
+
"flat/recommended": import("eslint").Linter.FlatConfig;
|
|
13
|
+
};
|
|
14
|
+
rules: {
|
|
15
|
+
[key: string]: import("eslint").Rule.RuleModule;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
rules: {
|
|
20
|
+
'jest-dom/prefer-checked': string;
|
|
21
|
+
'jest-dom/prefer-empty': string;
|
|
22
|
+
'jest-dom/prefer-enabled-disabled': string;
|
|
23
|
+
'jest-dom/prefer-focus': string;
|
|
24
|
+
'jest-dom/prefer-in-document': string;
|
|
25
|
+
'jest-dom/prefer-required': string;
|
|
26
|
+
'jest-dom/prefer-to-have-attribute': string;
|
|
27
|
+
'jest-dom/prefer-to-have-class': string;
|
|
28
|
+
'jest-dom/prefer-to-have-style': string;
|
|
29
|
+
'jest-dom/prefer-to-have-text-content': string;
|
|
30
|
+
'jest-dom/prefer-to-have-value': string;
|
|
31
|
+
};
|
|
32
|
+
};
|