@perfective/eslint-config 0.28.0 → 0.29.1
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 +29 -31
- package/README.md +24 -4
- package/config/plugin.d.ts +0 -3
- package/config/plugin.js +0 -24
- package/config.d.ts +1 -1
- package/config.js +1 -4
- package/cypress.d.ts +1 -0
- package/cypress.js +58 -0
- package/index.d.ts +1734 -0
- package/index.js +2 -35
- package/jest-dom.d.ts +1 -0
- package/jest-dom.js +11 -0
- package/jest.d.ts +1 -0
- package/jest.js +24 -0
- package/package.json +49 -17
- package/rules/array-func/index.d.ts +14 -0
- package/rules/cypress/index.d.ts +21 -0
- package/rules/cypress/index.js +4 -1
- 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/possible-problems.js +10 -2
- package/rules/eslint/suggestions.d.ts +181 -0
- package/rules/eslint/suggestions.js +3 -1
- 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/rxjs/index.js +41 -42
- 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 +58 -0
- package/testing-library.d.ts +1 -0
- package/testing-library.js +11 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as eslintPluginStylisticJs from '@stylistic/eslint-plugin-js';
|
|
2
|
+
export declare const stylisticJsConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/js': typeof eslintPluginStylisticJs;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/js/array-bracket-newline': string[];
|
|
8
|
+
'@stylistic/js/array-bracket-spacing': string[];
|
|
9
|
+
'@stylistic/js/array-element-newline': string[];
|
|
10
|
+
'@stylistic/js/arrow-parens': string[];
|
|
11
|
+
'@stylistic/js/arrow-spacing': (string | {
|
|
12
|
+
before: boolean;
|
|
13
|
+
after: boolean;
|
|
14
|
+
})[];
|
|
15
|
+
'@stylistic/js/block-spacing': string[];
|
|
16
|
+
'@stylistic/js/brace-style': (string | {
|
|
17
|
+
allowSingleLine: boolean;
|
|
18
|
+
})[];
|
|
19
|
+
'@stylistic/js/comma-dangle': (string | {
|
|
20
|
+
arrays: string;
|
|
21
|
+
objects: string;
|
|
22
|
+
imports: string;
|
|
23
|
+
exports: string;
|
|
24
|
+
functions: string;
|
|
25
|
+
})[];
|
|
26
|
+
'@stylistic/js/comma-spacing': (string | {
|
|
27
|
+
before: boolean;
|
|
28
|
+
after: boolean;
|
|
29
|
+
})[];
|
|
30
|
+
'@stylistic/js/comma-style': string[];
|
|
31
|
+
'@stylistic/js/computed-property-spacing': string[];
|
|
32
|
+
'@stylistic/js/dot-location': string[];
|
|
33
|
+
'@stylistic/js/eol-last': string[];
|
|
34
|
+
'@stylistic/js/func-call-spacing': string;
|
|
35
|
+
'@stylistic/js/function-call-argument-newline': string[];
|
|
36
|
+
'@stylistic/js/function-call-spacing': string[];
|
|
37
|
+
'@stylistic/js/function-paren-newline': string[];
|
|
38
|
+
'@stylistic/js/generator-star-spacing': (string | {
|
|
39
|
+
before: boolean;
|
|
40
|
+
after: boolean;
|
|
41
|
+
})[];
|
|
42
|
+
'@stylistic/js/implicit-arrow-linebreak': string[];
|
|
43
|
+
'@stylistic/js/indent': (string | number | {
|
|
44
|
+
SwitchCase: number;
|
|
45
|
+
})[];
|
|
46
|
+
'@stylistic/js/jsx-quotes': string[];
|
|
47
|
+
'@stylistic/js/key-spacing': (string | {
|
|
48
|
+
beforeColon: boolean;
|
|
49
|
+
afterColon: boolean;
|
|
50
|
+
mode: string;
|
|
51
|
+
})[];
|
|
52
|
+
'@stylistic/js/keyword-spacing': (string | {
|
|
53
|
+
before: boolean;
|
|
54
|
+
after: boolean;
|
|
55
|
+
})[];
|
|
56
|
+
'@stylistic/js/line-comment-position': (string | {
|
|
57
|
+
position: string;
|
|
58
|
+
ignorePattern: string;
|
|
59
|
+
})[];
|
|
60
|
+
'@stylistic/js/linebreak-style': string[];
|
|
61
|
+
'@stylistic/js/lines-around-comment': (string | {
|
|
62
|
+
beforeBlockComment: boolean;
|
|
63
|
+
afterBlockComment: boolean;
|
|
64
|
+
beforeLineComment: boolean;
|
|
65
|
+
afterLineComment: boolean;
|
|
66
|
+
allowBlockStart: boolean;
|
|
67
|
+
allowBlockEnd: boolean;
|
|
68
|
+
allowObjectStart: boolean;
|
|
69
|
+
allowObjectEnd: boolean;
|
|
70
|
+
allowArrayStart: boolean;
|
|
71
|
+
allowArrayEnd: boolean;
|
|
72
|
+
allowClassStart: boolean;
|
|
73
|
+
allowClassEnd: boolean;
|
|
74
|
+
afterHashbangComment: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@stylistic/js/lines-between-class-members': (string | {
|
|
77
|
+
exceptAfterSingleLine: boolean;
|
|
78
|
+
})[];
|
|
79
|
+
'@stylistic/js/max-len': (string | {
|
|
80
|
+
code: number;
|
|
81
|
+
tabWidth: number;
|
|
82
|
+
ignoreRegExpLiterals: boolean;
|
|
83
|
+
ignoreUrls: boolean;
|
|
84
|
+
})[];
|
|
85
|
+
'@stylistic/js/max-statements-per-line': (string | {
|
|
86
|
+
max: number;
|
|
87
|
+
})[];
|
|
88
|
+
'@stylistic/js/multiline-comment-style': (string | {
|
|
89
|
+
checkJSDoc: boolean;
|
|
90
|
+
})[];
|
|
91
|
+
'@stylistic/js/multiline-ternary': string[];
|
|
92
|
+
'@stylistic/js/new-parens': string;
|
|
93
|
+
'@stylistic/js/newline-per-chained-call': (string | {
|
|
94
|
+
ignoreChainWithDepth: number;
|
|
95
|
+
})[];
|
|
96
|
+
'@stylistic/js/no-confusing-arrow': (string | {
|
|
97
|
+
allowParens: boolean;
|
|
98
|
+
onlyOneSimpleParam: boolean;
|
|
99
|
+
})[];
|
|
100
|
+
'@stylistic/js/no-extra-parens': (string | {
|
|
101
|
+
ignoreJSX: string;
|
|
102
|
+
nestedBinaryExpressions: boolean;
|
|
103
|
+
enforceForArrowConditionals: boolean;
|
|
104
|
+
ternaryOperandBinaryExpressions: boolean;
|
|
105
|
+
})[];
|
|
106
|
+
'@stylistic/js/no-extra-semi': string;
|
|
107
|
+
'@stylistic/js/no-floating-decimal': string;
|
|
108
|
+
'@stylistic/js/no-mixed-operators': (string | {
|
|
109
|
+
groups: string[][];
|
|
110
|
+
allowSamePrecedence: boolean;
|
|
111
|
+
})[];
|
|
112
|
+
'@stylistic/js/no-mixed-spaces-and-tabs': string;
|
|
113
|
+
'@stylistic/js/no-multi-spaces': string;
|
|
114
|
+
'@stylistic/js/no-multiple-empty-lines': (string | {
|
|
115
|
+
max: number;
|
|
116
|
+
maxEOF: number;
|
|
117
|
+
maxBOF: number;
|
|
118
|
+
})[];
|
|
119
|
+
'@stylistic/js/no-tabs': string;
|
|
120
|
+
'@stylistic/js/no-trailing-spaces': string;
|
|
121
|
+
'@stylistic/js/no-whitespace-before-property': string;
|
|
122
|
+
'@stylistic/js/nonblock-statement-body-position': string[];
|
|
123
|
+
'@stylistic/js/object-curly-newline': (string | {
|
|
124
|
+
ImportDeclaration: {
|
|
125
|
+
multiline: boolean;
|
|
126
|
+
};
|
|
127
|
+
ExportDeclaration: {
|
|
128
|
+
multiline: boolean;
|
|
129
|
+
};
|
|
130
|
+
})[];
|
|
131
|
+
'@stylistic/js/object-curly-spacing': (string | {
|
|
132
|
+
arraysInObjects: boolean;
|
|
133
|
+
objectsInObjects: boolean;
|
|
134
|
+
})[];
|
|
135
|
+
'@stylistic/js/object-property-newline': (string | {
|
|
136
|
+
allowAllPropertiesOnSameLine: boolean;
|
|
137
|
+
})[];
|
|
138
|
+
'@stylistic/js/one-var-declaration-per-line': string[];
|
|
139
|
+
'@stylistic/js/operator-linebreak': (string | {
|
|
140
|
+
overrides: {
|
|
141
|
+
'=': string;
|
|
142
|
+
'==': string;
|
|
143
|
+
'!=': string;
|
|
144
|
+
'>=': string;
|
|
145
|
+
'<=': string;
|
|
146
|
+
'===': string;
|
|
147
|
+
'+=': string;
|
|
148
|
+
};
|
|
149
|
+
})[];
|
|
150
|
+
'@stylistic/js/padded-blocks': string[];
|
|
151
|
+
'@stylistic/js/padding-line-between-statements': string;
|
|
152
|
+
'@stylistic/js/quote-props': string[];
|
|
153
|
+
'@stylistic/js/quotes': (string | {
|
|
154
|
+
avoidEscape: boolean;
|
|
155
|
+
allowTemplateLiterals: boolean;
|
|
156
|
+
ignoreStringLiterals: boolean;
|
|
157
|
+
})[];
|
|
158
|
+
'@stylistic/js/rest-spread-spacing': string[];
|
|
159
|
+
'@stylistic/js/semi': string[];
|
|
160
|
+
'@stylistic/js/semi-spacing': (string | {
|
|
161
|
+
before: boolean;
|
|
162
|
+
after: boolean;
|
|
163
|
+
})[];
|
|
164
|
+
'@stylistic/js/semi-style': string[];
|
|
165
|
+
'@stylistic/js/space-before-blocks': string[];
|
|
166
|
+
'@stylistic/js/space-before-function-paren': (string | {
|
|
167
|
+
anonymous: string;
|
|
168
|
+
named: string;
|
|
169
|
+
asyncArrow: string;
|
|
170
|
+
})[];
|
|
171
|
+
'@stylistic/js/space-in-parens': string[];
|
|
172
|
+
'@stylistic/js/space-infix-ops': (string | {
|
|
173
|
+
int32Hint: boolean;
|
|
174
|
+
})[];
|
|
175
|
+
'@stylistic/js/space-unary-ops': (string | {
|
|
176
|
+
words: boolean;
|
|
177
|
+
nonwords: boolean;
|
|
178
|
+
})[];
|
|
179
|
+
'@stylistic/js/spaced-comment': (string | {
|
|
180
|
+
line: {
|
|
181
|
+
markers: string[];
|
|
182
|
+
};
|
|
183
|
+
})[];
|
|
184
|
+
'@stylistic/js/switch-colon-spacing': (string | {
|
|
185
|
+
after: boolean;
|
|
186
|
+
before: boolean;
|
|
187
|
+
})[];
|
|
188
|
+
'@stylistic/js/template-curly-spacing': string[];
|
|
189
|
+
'@stylistic/js/template-tag-spacing': string[];
|
|
190
|
+
'@stylistic/js/wrap-iife': string[];
|
|
191
|
+
'@stylistic/js/wrap-regex': string;
|
|
192
|
+
'@stylistic/js/yield-star-spacing': (string | {
|
|
193
|
+
before: boolean;
|
|
194
|
+
after: boolean;
|
|
195
|
+
})[];
|
|
196
|
+
};
|
|
197
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as eslintPluginStylisticJsx from '@stylistic/eslint-plugin-jsx';
|
|
2
|
+
export declare const stylisticJsxConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/jsx': typeof eslintPluginStylisticJsx;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/jsx/jsx-child-element-spacing': string;
|
|
8
|
+
'@stylistic/jsx/jsx-closing-bracket-location': (string | {
|
|
9
|
+
selfClosing: string;
|
|
10
|
+
nonEmpty: string;
|
|
11
|
+
})[];
|
|
12
|
+
'@stylistic/jsx/jsx-closing-tag-location': string[];
|
|
13
|
+
'@stylistic/jsx/jsx-curly-brace-presence': (string | {
|
|
14
|
+
props: string;
|
|
15
|
+
children: string;
|
|
16
|
+
propElementValues: string;
|
|
17
|
+
})[];
|
|
18
|
+
'@stylistic/jsx/jsx-curly-newline': string[];
|
|
19
|
+
'@stylistic/jsx/jsx-curly-spacing': (string | {
|
|
20
|
+
when: string;
|
|
21
|
+
attributes: {
|
|
22
|
+
allowMultiline: boolean;
|
|
23
|
+
};
|
|
24
|
+
children: {
|
|
25
|
+
allowMultiline: boolean;
|
|
26
|
+
};
|
|
27
|
+
})[];
|
|
28
|
+
'@stylistic/jsx/jsx-equals-spacing': string[];
|
|
29
|
+
'@stylistic/jsx/jsx-first-prop-new-line': string[];
|
|
30
|
+
'@stylistic/jsx/jsx-function-call-newline': string[];
|
|
31
|
+
'@stylistic/jsx/jsx-indent': string;
|
|
32
|
+
'@stylistic/jsx/jsx-indent-props': (string | {
|
|
33
|
+
indentMode: number;
|
|
34
|
+
ignoreTernaryOperator: boolean;
|
|
35
|
+
})[];
|
|
36
|
+
'@stylistic/jsx/jsx-max-props-per-line': (string | {
|
|
37
|
+
maximum: number;
|
|
38
|
+
when: string;
|
|
39
|
+
})[];
|
|
40
|
+
'@stylistic/jsx/jsx-newline': string;
|
|
41
|
+
'@stylistic/jsx/jsx-one-expression-per-line': (string | {
|
|
42
|
+
allow: string;
|
|
43
|
+
})[];
|
|
44
|
+
'@stylistic/jsx/jsx-pascal-case': (string | {
|
|
45
|
+
allowAllCaps: boolean;
|
|
46
|
+
allowLeadingUnderscore: boolean;
|
|
47
|
+
allowNamespace: boolean;
|
|
48
|
+
ignore: never[];
|
|
49
|
+
})[];
|
|
50
|
+
'@stylistic/jsx/jsx-props-no-multi-spaces': string;
|
|
51
|
+
'@stylistic/jsx/jsx-self-closing-comp': (string | {
|
|
52
|
+
component: boolean;
|
|
53
|
+
html: boolean;
|
|
54
|
+
})[];
|
|
55
|
+
'@stylistic/jsx/jsx-sort-props': (string | {
|
|
56
|
+
ignoreCase: boolean;
|
|
57
|
+
callbacksLast: boolean;
|
|
58
|
+
shorthandFirst: boolean;
|
|
59
|
+
shorthandLast: boolean;
|
|
60
|
+
multiline: string;
|
|
61
|
+
noSortAlphabetically: boolean;
|
|
62
|
+
reservedFirst: boolean;
|
|
63
|
+
locale: string;
|
|
64
|
+
})[];
|
|
65
|
+
'@stylistic/jsx/jsx-tag-spacing': (string | {
|
|
66
|
+
closingSlash: string;
|
|
67
|
+
beforeSelfClosing: string;
|
|
68
|
+
afterOpening: string;
|
|
69
|
+
beforeClosing: string;
|
|
70
|
+
})[];
|
|
71
|
+
'@stylistic/jsx/jsx-wrap-multilines': (string | {
|
|
72
|
+
declaration: string;
|
|
73
|
+
assignment: string;
|
|
74
|
+
return: string;
|
|
75
|
+
arrow: string;
|
|
76
|
+
condition: string;
|
|
77
|
+
logical: string;
|
|
78
|
+
prop: string;
|
|
79
|
+
})[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as eslintPluginStylisticPlus from '@stylistic/eslint-plugin-plus';
|
|
2
|
+
export declare const stylisticPlusConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/plus': typeof eslintPluginStylisticPlus;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/plus/curly-newline': (string | {
|
|
8
|
+
minElements: number;
|
|
9
|
+
})[];
|
|
10
|
+
'@stylistic/plus/indent-binary-ops': (string | number)[];
|
|
11
|
+
'@stylistic/plus/type-generic-spacing': string;
|
|
12
|
+
'@stylistic/plus/type-named-tuple-spacing': string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as eslintPluginStylisticTs from '@stylistic/eslint-plugin-ts';
|
|
2
|
+
export declare const stylisticTsConfig: {
|
|
3
|
+
plugins: {
|
|
4
|
+
'@stylistic/ts': typeof eslintPluginStylisticTs;
|
|
5
|
+
};
|
|
6
|
+
rules: {
|
|
7
|
+
'@stylistic/js/block-spacing': string;
|
|
8
|
+
'@stylistic/ts/block-spacing': string[];
|
|
9
|
+
'@stylistic/js/brace-style': string;
|
|
10
|
+
'@stylistic/ts/brace-style': (string | {
|
|
11
|
+
allowSingleLine: boolean;
|
|
12
|
+
})[];
|
|
13
|
+
'@stylistic/js/comma-dangle': string;
|
|
14
|
+
'@stylistic/ts/comma-dangle': (string | {
|
|
15
|
+
arrays: string;
|
|
16
|
+
enums: string;
|
|
17
|
+
exports: string;
|
|
18
|
+
functions: string;
|
|
19
|
+
generics: string;
|
|
20
|
+
imports: string;
|
|
21
|
+
objects: string;
|
|
22
|
+
tuples: string;
|
|
23
|
+
})[];
|
|
24
|
+
'@stylistic/js/comma-spacing': string;
|
|
25
|
+
'@stylistic/ts/comma-spacing': (string | {
|
|
26
|
+
before: boolean;
|
|
27
|
+
after: boolean;
|
|
28
|
+
})[];
|
|
29
|
+
'@stylistic/js/func-call-spacing': string;
|
|
30
|
+
'@stylistic/ts/func-call-spacing': string;
|
|
31
|
+
'@stylistic/js/function-call-spacing': string;
|
|
32
|
+
'@stylistic/ts/function-call-spacing': string[];
|
|
33
|
+
'@stylistic/js/indent': string;
|
|
34
|
+
'@stylistic/ts/indent': (string | number | {
|
|
35
|
+
SwitchCase: number;
|
|
36
|
+
ignoredNodes: string[];
|
|
37
|
+
})[];
|
|
38
|
+
'@stylistic/js/key-spacing': string;
|
|
39
|
+
'@stylistic/ts/key-spacing': (string | {
|
|
40
|
+
beforeColon: boolean;
|
|
41
|
+
afterColon: boolean;
|
|
42
|
+
mode: string;
|
|
43
|
+
})[];
|
|
44
|
+
'@stylistic/js/keyword-spacing': string;
|
|
45
|
+
'@stylistic/ts/keyword-spacing': (string | {
|
|
46
|
+
before: boolean;
|
|
47
|
+
after: boolean;
|
|
48
|
+
})[];
|
|
49
|
+
'@stylistic/js/lines-around-comment': string;
|
|
50
|
+
'@stylistic/ts/lines-around-comment': (string | {
|
|
51
|
+
beforeBlockComment: boolean;
|
|
52
|
+
afterBlockComment: boolean;
|
|
53
|
+
beforeLineComment: boolean;
|
|
54
|
+
afterLineComment: boolean;
|
|
55
|
+
allowBlockStart: boolean;
|
|
56
|
+
allowBlockEnd: boolean;
|
|
57
|
+
allowObjectStart: boolean;
|
|
58
|
+
allowObjectEnd: boolean;
|
|
59
|
+
allowArrayStart: boolean;
|
|
60
|
+
allowArrayEnd: boolean;
|
|
61
|
+
allowClassStart: boolean;
|
|
62
|
+
allowClassEnd: boolean;
|
|
63
|
+
allowInterfaceStart: boolean;
|
|
64
|
+
allowInterfaceEnd: boolean;
|
|
65
|
+
allowTypeStart: boolean;
|
|
66
|
+
allowTypeEnd: boolean;
|
|
67
|
+
})[];
|
|
68
|
+
'@stylistic/js/lines-between-class-members': string;
|
|
69
|
+
'@stylistic/ts/lines-between-class-members': (string | {
|
|
70
|
+
exceptAfterSingleLine: boolean;
|
|
71
|
+
exceptAfterOverload: boolean;
|
|
72
|
+
})[];
|
|
73
|
+
'@stylistic/ts/member-delimiter-style': (string | {
|
|
74
|
+
multiline: {
|
|
75
|
+
delimiter: string;
|
|
76
|
+
requireLast: boolean;
|
|
77
|
+
};
|
|
78
|
+
singleline: {
|
|
79
|
+
delimiter: string;
|
|
80
|
+
requireLast: boolean;
|
|
81
|
+
};
|
|
82
|
+
multilineDetection: string;
|
|
83
|
+
})[];
|
|
84
|
+
'@stylistic/js/no-extra-parens': string;
|
|
85
|
+
'@stylistic/ts/no-extra-parens': (string | {
|
|
86
|
+
ignoreJSX: string;
|
|
87
|
+
nestedBinaryExpressions: boolean;
|
|
88
|
+
enforceForArrowConditionals: boolean;
|
|
89
|
+
})[];
|
|
90
|
+
'@stylistic/js/no-extra-semi': string;
|
|
91
|
+
'@stylistic/ts/no-extra-semi': string;
|
|
92
|
+
'@stylistic/js/object-curly-newline': string;
|
|
93
|
+
'@stylistic/ts/object-curly-newline': (string | {
|
|
94
|
+
ImportDeclaration: {
|
|
95
|
+
multiline: boolean;
|
|
96
|
+
};
|
|
97
|
+
ExportDeclaration: {
|
|
98
|
+
multiline: boolean;
|
|
99
|
+
};
|
|
100
|
+
})[];
|
|
101
|
+
'@stylistic/js/object-curly-spacing': string;
|
|
102
|
+
'@stylistic/ts/object-curly-spacing': (string | {
|
|
103
|
+
arraysInObjects: boolean;
|
|
104
|
+
objectsInObjects: boolean;
|
|
105
|
+
})[];
|
|
106
|
+
'@stylistic/js/object-property-newline': string;
|
|
107
|
+
'@stylistic/ts/object-property-newline': (string | {
|
|
108
|
+
allowAllPropertiesOnSameLine: boolean;
|
|
109
|
+
})[];
|
|
110
|
+
'@stylistic/js/padding-line-between-statements': string;
|
|
111
|
+
'@stylistic/ts/padding-line-between-statements': string;
|
|
112
|
+
'@stylistic/js/quote-props': string;
|
|
113
|
+
'@stylistic/ts/quote-props': string[];
|
|
114
|
+
'@stylistic/js/quotes': string;
|
|
115
|
+
'@stylistic/ts/quotes': (string | {
|
|
116
|
+
avoidEscape: boolean;
|
|
117
|
+
allowTemplateLiterals: boolean;
|
|
118
|
+
})[];
|
|
119
|
+
'@stylistic/js/semi': string;
|
|
120
|
+
'@stylistic/ts/semi': string[];
|
|
121
|
+
'@stylistic/js/space-before-blocks': string;
|
|
122
|
+
'@stylistic/ts/space-before-blocks': string[];
|
|
123
|
+
'@stylistic/js/space-before-function-paren': string;
|
|
124
|
+
'@stylistic/ts/space-before-function-paren': (string | {
|
|
125
|
+
anonymous: string;
|
|
126
|
+
named: string;
|
|
127
|
+
asyncArrow: string;
|
|
128
|
+
})[];
|
|
129
|
+
'@stylistic/js/space-infix-ops': string;
|
|
130
|
+
'@stylistic/ts/space-infix-ops': (string | {
|
|
131
|
+
int32Hint: boolean;
|
|
132
|
+
})[];
|
|
133
|
+
'@stylistic/ts/type-annotation-spacing': string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const testingLibraryConfig: {
|
|
2
|
+
plugins: {
|
|
3
|
+
'testing-library': {
|
|
4
|
+
meta: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
};
|
|
8
|
+
configs: {
|
|
9
|
+
angular: import("eslint").Linter.LegacyConfig;
|
|
10
|
+
dom: import("eslint").Linter.LegacyConfig;
|
|
11
|
+
marko: import("eslint").Linter.LegacyConfig;
|
|
12
|
+
react: import("eslint").Linter.LegacyConfig;
|
|
13
|
+
svelte: import("eslint").Linter.LegacyConfig;
|
|
14
|
+
vue: import("eslint").Linter.LegacyConfig;
|
|
15
|
+
"flat/angular": import("eslint").Linter.FlatConfig;
|
|
16
|
+
"flat/dom": import("eslint").Linter.FlatConfig;
|
|
17
|
+
"flat/marko": import("eslint").Linter.FlatConfig;
|
|
18
|
+
"flat/react": import("eslint").Linter.FlatConfig;
|
|
19
|
+
"flat/svelte": import("eslint").Linter.FlatConfig;
|
|
20
|
+
"flat/vue": import("eslint").Linter.FlatConfig;
|
|
21
|
+
};
|
|
22
|
+
rules: {
|
|
23
|
+
[key: string]: import("eslint").Rule.RuleModule;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
rules: {
|
|
28
|
+
'testing-library/await-async-events': string;
|
|
29
|
+
'testing-library/await-async-queries': string;
|
|
30
|
+
'testing-library/await-async-utils': string;
|
|
31
|
+
'testing-library/consistent-data-testid': (string | {
|
|
32
|
+
testIdPattern: string;
|
|
33
|
+
testIdAttribute: string;
|
|
34
|
+
})[];
|
|
35
|
+
'testing-library/no-await-sync-events': string;
|
|
36
|
+
'testing-library/no-await-sync-queries': string;
|
|
37
|
+
'testing-library/no-container': string;
|
|
38
|
+
'testing-library/no-debugging-utils': string;
|
|
39
|
+
'testing-library/no-dom-import': string;
|
|
40
|
+
'testing-library/no-global-regexp-flag-in-query': string;
|
|
41
|
+
'testing-library/no-manual-cleanup': string;
|
|
42
|
+
'testing-library/no-node-access': string;
|
|
43
|
+
'testing-library/no-promise-in-fire-event': string;
|
|
44
|
+
'testing-library/no-render-in-lifecycle': string;
|
|
45
|
+
'testing-library/no-unnecessary-act': string;
|
|
46
|
+
'testing-library/no-wait-for-multiple-assertions': string;
|
|
47
|
+
'testing-library/no-wait-for-side-effects': string;
|
|
48
|
+
'testing-library/no-wait-for-snapshot': string;
|
|
49
|
+
'testing-library/prefer-explicit-assert': string;
|
|
50
|
+
'testing-library/prefer-find-by': string;
|
|
51
|
+
'testing-library/prefer-implicit-assert': string;
|
|
52
|
+
'testing-library/prefer-presence-queries': (string | {
|
|
53
|
+
presence: boolean;
|
|
54
|
+
absence: boolean;
|
|
55
|
+
})[];
|
|
56
|
+
'testing-library/prefer-query-by-disappearance': string;
|
|
57
|
+
'testing-library/prefer-query-matchers': string;
|
|
58
|
+
'testing-library/prefer-screen-queries': string;
|
|
59
|
+
'testing-library/prefer-user-event': string;
|
|
60
|
+
'testing-library/render-result-naming-convention': string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare const extensionRules: {
|
|
2
|
+
'block-spacing': string;
|
|
3
|
+
'@typescript-eslint/block-spacing': string;
|
|
4
|
+
'brace-style': string;
|
|
5
|
+
'@typescript-eslint/brace-style': string;
|
|
6
|
+
'class-methods-use-this': string;
|
|
7
|
+
'@typescript-eslint/class-methods-use-this': string;
|
|
8
|
+
'comma-dangle': string;
|
|
9
|
+
'@typescript-eslint/comma-dangle': string;
|
|
10
|
+
'comma-spacing': string;
|
|
11
|
+
'@typescript-eslint/comma-spacing': string;
|
|
12
|
+
'consistent-return': string;
|
|
13
|
+
'@typescript-eslint/consistent-return': string;
|
|
14
|
+
'default-param-last': string;
|
|
15
|
+
'@typescript-eslint/default-param-last': string;
|
|
16
|
+
'dot-notation': string;
|
|
17
|
+
'@typescript-eslint/dot-notation': (string | {
|
|
18
|
+
allowKeywords: boolean;
|
|
19
|
+
allowPrivateClassPropertyAccess: boolean;
|
|
20
|
+
allowProtectedClassPropertyAccess: boolean;
|
|
21
|
+
})[];
|
|
22
|
+
'func-call-spacing': string;
|
|
23
|
+
'@typescript-eslint/func-call-spacing': string;
|
|
24
|
+
indent: string;
|
|
25
|
+
'@typescript-eslint/indent': string;
|
|
26
|
+
'init-declarations': string;
|
|
27
|
+
'@typescript-eslint/init-declarations': string[];
|
|
28
|
+
'key-spacing': string;
|
|
29
|
+
'@typescript-eslint/key-spacing': string;
|
|
30
|
+
'keyword-spacing': string;
|
|
31
|
+
'@typescript-eslint/keyword-spacing': string;
|
|
32
|
+
'lines-around-comment': string;
|
|
33
|
+
'@typescript-eslint/lines-around-comment': string;
|
|
34
|
+
'lines-between-class-members': string;
|
|
35
|
+
'@typescript-eslint/lines-between-class-members': string;
|
|
36
|
+
'no-array-constructor': string;
|
|
37
|
+
'@typescript-eslint/no-array-constructor': string;
|
|
38
|
+
'no-dupe-class-members': string;
|
|
39
|
+
'@typescript-eslint/no-dupe-class-members': string;
|
|
40
|
+
'no-empty-function': string;
|
|
41
|
+
'@typescript-eslint/no-empty-function': (string | {
|
|
42
|
+
allow: string[];
|
|
43
|
+
})[];
|
|
44
|
+
'no-extra-parens': string;
|
|
45
|
+
'@typescript-eslint/no-extra-parens': string;
|
|
46
|
+
'no-extra-semi': string;
|
|
47
|
+
'@typescript-eslint/no-extra-semi': string;
|
|
48
|
+
'no-implied-eval': string;
|
|
49
|
+
'@typescript-eslint/no-implied-eval': string;
|
|
50
|
+
'no-invalid-this': string;
|
|
51
|
+
'@typescript-eslint/no-invalid-this': string;
|
|
52
|
+
'no-loop-func': string;
|
|
53
|
+
'@typescript-eslint/no-loop-func': string;
|
|
54
|
+
'@typescript-eslint/no-loss-of-precision': string;
|
|
55
|
+
'no-magic-numbers': string;
|
|
56
|
+
'@typescript-eslint/no-magic-numbers': string;
|
|
57
|
+
'no-redeclare': string;
|
|
58
|
+
'@typescript-eslint/no-redeclare': string;
|
|
59
|
+
'no-restricted-imports': string;
|
|
60
|
+
'@typescript-eslint/no-restricted-imports': {}[];
|
|
61
|
+
'no-shadow': string;
|
|
62
|
+
'@typescript-eslint/no-shadow': string;
|
|
63
|
+
'no-throw-literal': string;
|
|
64
|
+
'@typescript-eslint/only-throw-error': (string | {
|
|
65
|
+
allowThrowingAny: boolean;
|
|
66
|
+
allowThrowingUnknown: boolean;
|
|
67
|
+
})[];
|
|
68
|
+
'no-unused-expressions': string;
|
|
69
|
+
'@typescript-eslint/no-unused-expressions': string;
|
|
70
|
+
'no-unused-vars': string;
|
|
71
|
+
'@typescript-eslint/no-unused-vars': (string | {
|
|
72
|
+
args: string;
|
|
73
|
+
argsIgnorePattern: string;
|
|
74
|
+
caughtErrors: string;
|
|
75
|
+
destructuredArrayIgnorePattern: string;
|
|
76
|
+
ignoreRestSiblings: boolean;
|
|
77
|
+
vars: string;
|
|
78
|
+
})[];
|
|
79
|
+
'no-use-before-define': string;
|
|
80
|
+
'@typescript-eslint/no-use-before-define': (string | {
|
|
81
|
+
functions: boolean;
|
|
82
|
+
classes: boolean;
|
|
83
|
+
variables: boolean;
|
|
84
|
+
allowNamedExports: boolean;
|
|
85
|
+
enums: boolean;
|
|
86
|
+
typedefs: boolean;
|
|
87
|
+
ignoreTypeReferences: boolean;
|
|
88
|
+
})[];
|
|
89
|
+
'no-useless-constructor': string;
|
|
90
|
+
'@typescript-eslint/no-useless-constructor': string;
|
|
91
|
+
'object-curly-spacing': string;
|
|
92
|
+
'@typescript-eslint/object-curly-spacing': string;
|
|
93
|
+
'padding-line-between-statements': string;
|
|
94
|
+
'@typescript-eslint/padding-line-between-statements': string;
|
|
95
|
+
'prefer-destructuring': string;
|
|
96
|
+
'@typescript-eslint/prefer-destructuring': string;
|
|
97
|
+
'prefer-promise-reject-errors': string;
|
|
98
|
+
'@typescript-eslint/prefer-promise-reject-errors': string;
|
|
99
|
+
quotes: string;
|
|
100
|
+
'@typescript-eslint/quotes': string;
|
|
101
|
+
'require-await': string;
|
|
102
|
+
'@typescript-eslint/require-await': string;
|
|
103
|
+
'no-return-await': string;
|
|
104
|
+
'@typescript-eslint/return-await': string[];
|
|
105
|
+
semi: string;
|
|
106
|
+
'@typescript-eslint/semi': string;
|
|
107
|
+
'space-before-blocks': string;
|
|
108
|
+
'@typescript-eslint/space-before-blocks': string;
|
|
109
|
+
'space-before-function-paren': string;
|
|
110
|
+
'@typescript-eslint/space-before-function-paren': string;
|
|
111
|
+
'space-infix-ops': string;
|
|
112
|
+
'@typescript-eslint/space-infix-ops': string;
|
|
113
|
+
};
|