eslint-config-typed 3.13.3 → 3.13.5
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/dist/rules/typescript-eslint-rules.d.mts +3 -1
- package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/dist/rules/typescript-eslint-rules.mjs +8 -1
- package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
- package/dist/types/rules/eslint-array-func-rules.d.mts +8 -8
- package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-cypress-rules.d.mts +27 -23
- package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-functional-rules.d.mts +426 -425
- package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-import-rules.d.mts +343 -325
- package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-jest-rules.d.mts +183 -171
- package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +211 -209
- package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-math-rules.d.mts +49 -48
- package/dist/types/rules/eslint-math-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-n-rules.d.mts +296 -293
- package/dist/types/rules/eslint-n-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-playwright-rules.d.mts +161 -149
- package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-plugin-rules.d.mts +95 -85
- package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts +10 -10
- package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +23 -16
- package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-promise-rules.d.mts +68 -68
- package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-coding-style-rules.d.mts +29 -29
- package/dist/types/rules/eslint-react-coding-style-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-hooks-rules.d.mts +100 -100
- package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-perf-rules.d.mts +28 -28
- package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-refresh-rules.d.mts +13 -13
- package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-rules.d.mts +646 -620
- package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-rules.d.mts +1022 -1016
- package/dist/types/rules/eslint-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-security-rules.d.mts +16 -16
- package/dist/types/rules/eslint-security-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +18 -18
- package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-stylistic-rules.d.mts +1440 -1400
- package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-testing-library-rules.d.mts +110 -105
- package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-total-functions-rules.d.mts +16 -16
- package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-tree-shakable-rules.d.mts +3 -3
- package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +30 -30
- package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-unicorn-rules.d.mts +398 -392
- package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +3 -3
- package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-rules.d.mts +204 -190
- package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/types/rules/typescript-eslint-rules.d.mts +1107 -1077
- package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/package.json +23 -23
- package/src/rules/typescript-eslint-rules.mts +9 -1
- package/src/types/rules/eslint-array-func-rules.mts +8 -8
- package/src/types/rules/eslint-cypress-rules.mts +28 -24
- package/src/types/rules/eslint-functional-rules.mts +581 -576
- package/src/types/rules/eslint-import-rules.mts +403 -384
- package/src/types/rules/eslint-jest-rules.mts +212 -196
- package/src/types/rules/eslint-jsx-a11y-rules.mts +252 -250
- package/src/types/rules/eslint-math-rules.mts +53 -52
- package/src/types/rules/eslint-n-rules.mts +1762 -1757
- package/src/types/rules/eslint-playwright-rules.mts +187 -171
- package/src/types/rules/eslint-plugin-rules.mts +109 -99
- package/src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts +11 -11
- package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +24 -17
- package/src/types/rules/eslint-promise-rules.mts +76 -76
- package/src/types/rules/eslint-react-coding-style-rules.mts +32 -32
- package/src/types/rules/eslint-react-hooks-rules.mts +129 -129
- package/src/types/rules/eslint-react-perf-rules.mts +32 -32
- package/src/types/rules/eslint-react-refresh-rules.mts +14 -14
- package/src/types/rules/eslint-react-rules.mts +787 -792
- package/src/types/rules/eslint-rules.mts +1180 -1173
- package/src/types/rules/eslint-security-rules.mts +16 -16
- package/src/types/rules/eslint-strict-dependencies-rules.mts +19 -19
- package/src/types/rules/eslint-stylistic-rules.mts +1767 -1807
- package/src/types/rules/eslint-testing-library-rules.mts +128 -124
- package/src/types/rules/eslint-total-functions-rules.mts +16 -16
- package/src/types/rules/eslint-tree-shakable-rules.mts +3 -3
- package/src/types/rules/eslint-ts-restrictions-rules.mts +34 -33
- package/src/types/rules/eslint-unicorn-rules.mts +447 -436
- package/src/types/rules/eslint-vitest-coding-style-rules.mts +3 -3
- package/src/types/rules/eslint-vitest-rules.mts +232 -219
- package/src/types/rules/typescript-eslint-rules.mts +1511 -1489
|
@@ -47,14 +47,14 @@ namespace JsxNoNewObjectAsProp {
|
|
|
47
47
|
* ]
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
export type Options = {
|
|
51
|
-
|
|
52
|
-
}
|
|
50
|
+
export type Options = Readonly<{
|
|
51
|
+
nativeAllowList?: 'all' | readonly string[];
|
|
52
|
+
}>;
|
|
53
53
|
|
|
54
54
|
export type RuleEntry =
|
|
55
|
+
| 'off'
|
|
55
56
|
| Linter.Severity
|
|
56
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
57
|
-
| 'off';
|
|
57
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -97,14 +97,14 @@ namespace JsxNoNewArrayAsProp {
|
|
|
97
97
|
* ]
|
|
98
98
|
* ```
|
|
99
99
|
*/
|
|
100
|
-
export type Options = {
|
|
101
|
-
|
|
102
|
-
}
|
|
100
|
+
export type Options = Readonly<{
|
|
101
|
+
nativeAllowList?: 'all' | readonly string[];
|
|
102
|
+
}>;
|
|
103
103
|
|
|
104
104
|
export type RuleEntry =
|
|
105
|
+
| 'off'
|
|
105
106
|
| Linter.Severity
|
|
106
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
107
|
-
| 'off';
|
|
107
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
@@ -147,14 +147,14 @@ namespace JsxNoNewFunctionAsProp {
|
|
|
147
147
|
* ]
|
|
148
148
|
* ```
|
|
149
149
|
*/
|
|
150
|
-
export type Options = {
|
|
151
|
-
|
|
152
|
-
}
|
|
150
|
+
export type Options = Readonly<{
|
|
151
|
+
nativeAllowList?: 'all' | readonly string[];
|
|
152
|
+
}>;
|
|
153
153
|
|
|
154
154
|
export type RuleEntry =
|
|
155
|
+
| 'off'
|
|
155
156
|
| Linter.Severity
|
|
156
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
157
|
-
| 'off';
|
|
157
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
/**
|
|
@@ -197,26 +197,26 @@ namespace JsxNoJsxAsProp {
|
|
|
197
197
|
* ]
|
|
198
198
|
* ```
|
|
199
199
|
*/
|
|
200
|
-
export type Options = {
|
|
201
|
-
|
|
202
|
-
}
|
|
200
|
+
export type Options = Readonly<{
|
|
201
|
+
nativeAllowList?: 'all' | readonly string[];
|
|
202
|
+
}>;
|
|
203
203
|
|
|
204
204
|
export type RuleEntry =
|
|
205
|
+
| 'off'
|
|
205
206
|
| Linter.Severity
|
|
206
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
207
|
-
| 'off';
|
|
207
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
export type EslintReactPerfRules = {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
210
|
+
export type EslintReactPerfRules = Readonly<{
|
|
211
|
+
'react-perf/jsx-no-new-object-as-prop': JsxNoNewObjectAsProp.RuleEntry;
|
|
212
|
+
'react-perf/jsx-no-new-array-as-prop': JsxNoNewArrayAsProp.RuleEntry;
|
|
213
|
+
'react-perf/jsx-no-new-function-as-prop': JsxNoNewFunctionAsProp.RuleEntry;
|
|
214
|
+
'react-perf/jsx-no-jsx-as-prop': JsxNoJsxAsProp.RuleEntry;
|
|
215
|
+
}>;
|
|
216
216
|
|
|
217
|
-
export type EslintReactPerfRulesOption = {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
217
|
+
export type EslintReactPerfRulesOption = Readonly<{
|
|
218
|
+
'react-perf/jsx-no-new-object-as-prop': JsxNoNewObjectAsProp.Options;
|
|
219
|
+
'react-perf/jsx-no-new-array-as-prop': JsxNoNewArrayAsProp.Options;
|
|
220
|
+
'react-perf/jsx-no-new-function-as-prop': JsxNoNewFunctionAsProp.Options;
|
|
221
|
+
'react-perf/jsx-no-jsx-as-prop': JsxNoJsxAsProp.Options;
|
|
222
|
+
}>;
|
|
@@ -40,23 +40,23 @@ namespace OnlyExportComponents {
|
|
|
40
40
|
* ]
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
export type Options = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
43
|
+
export type Options = Readonly<{
|
|
44
|
+
allowExportNames?: readonly string[];
|
|
45
|
+
allowConstantExport?: boolean;
|
|
46
|
+
customHOCs?: readonly string[];
|
|
47
|
+
checkJS?: boolean;
|
|
48
|
+
}>;
|
|
49
49
|
|
|
50
50
|
export type RuleEntry =
|
|
51
|
+
| 'off'
|
|
51
52
|
| Linter.Severity
|
|
52
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
53
|
-
| 'off';
|
|
53
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export type EslintReactRefreshRules = {
|
|
57
|
-
|
|
58
|
-
}
|
|
56
|
+
export type EslintReactRefreshRules = Readonly<{
|
|
57
|
+
'react-refresh/only-export-components': OnlyExportComponents.RuleEntry;
|
|
58
|
+
}>;
|
|
59
59
|
|
|
60
|
-
export type EslintReactRefreshRulesOption = {
|
|
61
|
-
|
|
62
|
-
}
|
|
60
|
+
export type EslintReactRefreshRulesOption = Readonly<{
|
|
61
|
+
'react-refresh/only-export-components': OnlyExportComponents.Options;
|
|
62
|
+
}>;
|