@jimmy.codes/eslint-config 5.18.0 → 5.19.0
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/{astro-Z5RFF624.js → astro-NEJ73UBN.js} +1 -1
- package/dist/{chunk-OCS4JNPP.js → chunk-7RIW3P47.js} +1 -1
- package/dist/{chunk-N5KZEOXT.js → chunk-XMM6FHXC.js} +2 -0
- package/dist/index.d.ts +202 -169
- package/dist/index.js +11 -11
- package/dist/{jest-7NR7TDOP.js → jest-SCRGNX6Z.js} +1 -1
- package/dist/{nextjs-7V464KOE.js → nextjs-XDBJZIHP.js} +1 -1
- package/dist/{playwright-BIJ7HLQZ.js → playwright-2HMMFF3D.js} +1 -1
- package/dist/{react-6ERTZG2I.js → react-IAR3MTFF.js} +2 -2
- package/dist/{tanstack-query-QBZ3MKQ7.js → tanstack-query-MM3M2QJO.js} +2 -1
- package/dist/{testing-library-HML5O6UC.js → testing-library-QHZMYCZH.js} +1 -1
- package/dist/{typescript-M6XXI2FU.js → typescript-PLNEW3M4.js} +1 -1
- package/dist/{vitest-726PXOPS.js → vitest-IAENZQ7B.js} +5 -6
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ declare function playwrightConfig(): Promise<{
|
|
|
76
76
|
"playwright/no-wait-for-timeout": "error";
|
|
77
77
|
"playwright/valid-title": "off";
|
|
78
78
|
};
|
|
79
|
+
basePath?: string;
|
|
79
80
|
ignores?: string[];
|
|
80
81
|
language?: string;
|
|
81
82
|
languageOptions?: eslint.Linter.LanguageOptions;
|
|
@@ -181,6 +182,8 @@ declare function vitestConfig(): Promise<{
|
|
|
181
182
|
"vitest/no-standalone-expect": "error";
|
|
182
183
|
"vitest/no-test-prefixes": "error";
|
|
183
184
|
"vitest/no-test-return-statement": "error";
|
|
185
|
+
"vitest/prefer-called-once": "error";
|
|
186
|
+
"vitest/prefer-called-times": "off";
|
|
184
187
|
"vitest/prefer-called-with": "error";
|
|
185
188
|
"vitest/prefer-comparison-matcher": "error";
|
|
186
189
|
"vitest/prefer-each": "error";
|
|
@@ -209,13 +212,14 @@ declare function vitestConfig(): Promise<{
|
|
|
209
212
|
it: string;
|
|
210
213
|
};
|
|
211
214
|
}];
|
|
215
|
+
"vitest/warn-todo": "warn";
|
|
212
216
|
"vitest/expect-expect": "error";
|
|
213
217
|
"vitest/valid-describe-callback": "error";
|
|
214
218
|
"vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
215
219
|
"vitest/no-import-node-test": "error";
|
|
216
220
|
};
|
|
217
221
|
plugins: {
|
|
218
|
-
readonly vitest:
|
|
222
|
+
readonly vitest: any;
|
|
219
223
|
};
|
|
220
224
|
files: string[];
|
|
221
225
|
ignores: string[];
|
|
@@ -268,6 +272,7 @@ declare function jestConfig(): Promise<{
|
|
|
268
272
|
};
|
|
269
273
|
}];
|
|
270
274
|
};
|
|
275
|
+
basePath?: string;
|
|
271
276
|
files: Array<string | string[]>;
|
|
272
277
|
ignores: string[];
|
|
273
278
|
language?: string;
|
|
@@ -443,6 +448,7 @@ declare function tanstackQueryConfig(): Promise<{
|
|
|
443
448
|
rules: {
|
|
444
449
|
"@tanstack/query/exhaustive-deps": "error";
|
|
445
450
|
"@tanstack/query/infinite-query-property-order": "error";
|
|
451
|
+
"@tanstack/query/mutation-property-order": "error";
|
|
446
452
|
"@tanstack/query/no-rest-destructuring": "error";
|
|
447
453
|
"@tanstack/query/no-unstable-deps": "error";
|
|
448
454
|
"@tanstack/query/no-void-query-fn": "error";
|
|
@@ -1110,483 +1116,478 @@ interface RuleOptions {
|
|
|
1110
1116
|
'@next/next/no-unwanted-polyfillio'?: Linter.RuleEntry<[]>
|
|
1111
1117
|
/**
|
|
1112
1118
|
* Enforce linebreaks after opening and before closing array brackets
|
|
1113
|
-
* @see https://eslint.style/rules/
|
|
1119
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
1114
1120
|
*/
|
|
1115
1121
|
'@stylistic/array-bracket-newline'?: Linter.RuleEntry<StylisticArrayBracketNewline>
|
|
1116
1122
|
/**
|
|
1117
1123
|
* Enforce consistent spacing inside array brackets
|
|
1118
|
-
* @see https://eslint.style/rules/
|
|
1124
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
1119
1125
|
*/
|
|
1120
1126
|
'@stylistic/array-bracket-spacing'?: Linter.RuleEntry<StylisticArrayBracketSpacing>
|
|
1121
1127
|
/**
|
|
1122
1128
|
* Enforce line breaks after each array element
|
|
1123
|
-
* @see https://eslint.style/rules/
|
|
1129
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
1124
1130
|
*/
|
|
1125
1131
|
'@stylistic/array-element-newline'?: Linter.RuleEntry<StylisticArrayElementNewline>
|
|
1126
1132
|
/**
|
|
1127
1133
|
* Require parentheses around arrow function arguments
|
|
1128
|
-
* @see https://eslint.style/rules/
|
|
1134
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
1129
1135
|
*/
|
|
1130
1136
|
'@stylistic/arrow-parens'?: Linter.RuleEntry<StylisticArrowParens>
|
|
1131
1137
|
/**
|
|
1132
1138
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
1133
|
-
* @see https://eslint.style/rules/
|
|
1139
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
1134
1140
|
*/
|
|
1135
1141
|
'@stylistic/arrow-spacing'?: Linter.RuleEntry<StylisticArrowSpacing>
|
|
1136
1142
|
/**
|
|
1137
1143
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
1138
|
-
* @see https://eslint.style/rules/
|
|
1144
|
+
* @see https://eslint.style/rules/block-spacing
|
|
1139
1145
|
*/
|
|
1140
1146
|
'@stylistic/block-spacing'?: Linter.RuleEntry<StylisticBlockSpacing>
|
|
1141
1147
|
/**
|
|
1142
1148
|
* Enforce consistent brace style for blocks
|
|
1143
|
-
* @see https://eslint.style/rules/
|
|
1149
|
+
* @see https://eslint.style/rules/brace-style
|
|
1144
1150
|
*/
|
|
1145
1151
|
'@stylistic/brace-style'?: Linter.RuleEntry<StylisticBraceStyle>
|
|
1146
1152
|
/**
|
|
1147
1153
|
* Require or disallow trailing commas
|
|
1148
|
-
* @see https://eslint.style/rules/
|
|
1154
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
1149
1155
|
*/
|
|
1150
1156
|
'@stylistic/comma-dangle'?: Linter.RuleEntry<StylisticCommaDangle>
|
|
1151
1157
|
/**
|
|
1152
1158
|
* Enforce consistent spacing before and after commas
|
|
1153
|
-
* @see https://eslint.style/rules/
|
|
1159
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
1154
1160
|
*/
|
|
1155
1161
|
'@stylistic/comma-spacing'?: Linter.RuleEntry<StylisticCommaSpacing>
|
|
1156
1162
|
/**
|
|
1157
1163
|
* Enforce consistent comma style
|
|
1158
|
-
* @see https://eslint.style/rules/
|
|
1164
|
+
* @see https://eslint.style/rules/comma-style
|
|
1159
1165
|
*/
|
|
1160
1166
|
'@stylistic/comma-style'?: Linter.RuleEntry<StylisticCommaStyle>
|
|
1161
1167
|
/**
|
|
1162
1168
|
* Enforce consistent spacing inside computed property brackets
|
|
1163
|
-
* @see https://eslint.style/rules/
|
|
1169
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
1164
1170
|
*/
|
|
1165
1171
|
'@stylistic/computed-property-spacing'?: Linter.RuleEntry<StylisticComputedPropertySpacing>
|
|
1166
1172
|
/**
|
|
1167
1173
|
* Enforce consistent line breaks after opening and before closing braces
|
|
1168
|
-
* @see https://eslint.style/rules/
|
|
1174
|
+
* @see https://eslint.style/rules/curly-newline
|
|
1169
1175
|
*/
|
|
1170
1176
|
'@stylistic/curly-newline'?: Linter.RuleEntry<StylisticCurlyNewline>
|
|
1171
1177
|
/**
|
|
1172
1178
|
* Enforce consistent newlines before and after dots
|
|
1173
|
-
* @see https://eslint.style/rules/
|
|
1179
|
+
* @see https://eslint.style/rules/dot-location
|
|
1174
1180
|
*/
|
|
1175
1181
|
'@stylistic/dot-location'?: Linter.RuleEntry<StylisticDotLocation>
|
|
1176
1182
|
/**
|
|
1177
1183
|
* Require or disallow newline at the end of files
|
|
1178
|
-
* @see https://eslint.style/rules/
|
|
1184
|
+
* @see https://eslint.style/rules/eol-last
|
|
1179
1185
|
*/
|
|
1180
1186
|
'@stylistic/eol-last'?: Linter.RuleEntry<StylisticEolLast>
|
|
1181
|
-
/**
|
|
1182
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
1183
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
1184
|
-
*/
|
|
1185
|
-
'@stylistic/func-call-spacing'?: Linter.RuleEntry<StylisticFuncCallSpacing>
|
|
1186
1187
|
/**
|
|
1187
1188
|
* Enforce line breaks between arguments of a function call
|
|
1188
|
-
* @see https://eslint.style/rules/
|
|
1189
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
1189
1190
|
*/
|
|
1190
1191
|
'@stylistic/function-call-argument-newline'?: Linter.RuleEntry<StylisticFunctionCallArgumentNewline>
|
|
1191
1192
|
/**
|
|
1192
1193
|
* Require or disallow spacing between function identifiers and their invocations
|
|
1193
|
-
* @see https://eslint.style/rules/
|
|
1194
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
1194
1195
|
*/
|
|
1195
1196
|
'@stylistic/function-call-spacing'?: Linter.RuleEntry<StylisticFunctionCallSpacing>
|
|
1196
1197
|
/**
|
|
1197
1198
|
* Enforce consistent line breaks inside function parentheses
|
|
1198
|
-
* @see https://eslint.style/rules/
|
|
1199
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
1199
1200
|
*/
|
|
1200
1201
|
'@stylistic/function-paren-newline'?: Linter.RuleEntry<StylisticFunctionParenNewline>
|
|
1201
1202
|
/**
|
|
1202
1203
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
1203
|
-
* @see https://eslint.style/rules/
|
|
1204
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
1204
1205
|
*/
|
|
1205
1206
|
'@stylistic/generator-star-spacing'?: Linter.RuleEntry<StylisticGeneratorStarSpacing>
|
|
1206
1207
|
/**
|
|
1207
1208
|
* Enforce the location of arrow function bodies
|
|
1208
|
-
* @see https://eslint.style/rules/
|
|
1209
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
1209
1210
|
*/
|
|
1210
1211
|
'@stylistic/implicit-arrow-linebreak'?: Linter.RuleEntry<StylisticImplicitArrowLinebreak>
|
|
1211
1212
|
/**
|
|
1212
1213
|
* Enforce consistent indentation
|
|
1213
|
-
* @see https://eslint.style/rules/
|
|
1214
|
+
* @see https://eslint.style/rules/indent
|
|
1214
1215
|
*/
|
|
1215
1216
|
'@stylistic/indent'?: Linter.RuleEntry<StylisticIndent>
|
|
1216
1217
|
/**
|
|
1217
1218
|
* Indentation for binary operators
|
|
1218
|
-
* @see https://eslint.style/rules/
|
|
1219
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
1219
1220
|
*/
|
|
1220
1221
|
'@stylistic/indent-binary-ops'?: Linter.RuleEntry<StylisticIndentBinaryOps>
|
|
1221
1222
|
/**
|
|
1222
1223
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
1223
|
-
* @see https://eslint.style/rules/jsx
|
|
1224
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
1224
1225
|
*/
|
|
1225
1226
|
'@stylistic/jsx-child-element-spacing'?: Linter.RuleEntry<[]>
|
|
1226
1227
|
/**
|
|
1227
1228
|
* Enforce closing bracket location in JSX
|
|
1228
|
-
* @see https://eslint.style/rules/jsx
|
|
1229
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
1229
1230
|
*/
|
|
1230
1231
|
'@stylistic/jsx-closing-bracket-location'?: Linter.RuleEntry<StylisticJsxClosingBracketLocation>
|
|
1231
1232
|
/**
|
|
1232
1233
|
* Enforce closing tag location for multiline JSX
|
|
1233
|
-
* @see https://eslint.style/rules/jsx
|
|
1234
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
1234
1235
|
*/
|
|
1235
1236
|
'@stylistic/jsx-closing-tag-location'?: Linter.RuleEntry<StylisticJsxClosingTagLocation>
|
|
1236
1237
|
/**
|
|
1237
1238
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
1238
|
-
* @see https://eslint.style/rules/jsx
|
|
1239
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
1239
1240
|
*/
|
|
1240
1241
|
'@stylistic/jsx-curly-brace-presence'?: Linter.RuleEntry<StylisticJsxCurlyBracePresence>
|
|
1241
1242
|
/**
|
|
1242
1243
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
1243
|
-
* @see https://eslint.style/rules/jsx
|
|
1244
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
1244
1245
|
*/
|
|
1245
1246
|
'@stylistic/jsx-curly-newline'?: Linter.RuleEntry<StylisticJsxCurlyNewline>
|
|
1246
1247
|
/**
|
|
1247
1248
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
1248
|
-
* @see https://eslint.style/rules/jsx
|
|
1249
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
1249
1250
|
*/
|
|
1250
1251
|
'@stylistic/jsx-curly-spacing'?: Linter.RuleEntry<StylisticJsxCurlySpacing>
|
|
1251
1252
|
/**
|
|
1252
1253
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
1253
|
-
* @see https://eslint.style/rules/jsx
|
|
1254
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
1254
1255
|
*/
|
|
1255
1256
|
'@stylistic/jsx-equals-spacing'?: Linter.RuleEntry<StylisticJsxEqualsSpacing>
|
|
1256
1257
|
/**
|
|
1257
1258
|
* Enforce proper position of the first property in JSX
|
|
1258
|
-
* @see https://eslint.style/rules/jsx
|
|
1259
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
1259
1260
|
*/
|
|
1260
1261
|
'@stylistic/jsx-first-prop-new-line'?: Linter.RuleEntry<StylisticJsxFirstPropNewLine>
|
|
1261
1262
|
/**
|
|
1262
1263
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
1263
|
-
* @see https://eslint.style/rules/jsx
|
|
1264
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
1264
1265
|
*/
|
|
1265
1266
|
'@stylistic/jsx-function-call-newline'?: Linter.RuleEntry<StylisticJsxFunctionCallNewline>
|
|
1266
1267
|
/**
|
|
1267
1268
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
1268
|
-
* @see https://eslint.style/rules/jsx
|
|
1269
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
1269
1270
|
* @deprecated
|
|
1270
1271
|
*/
|
|
1271
1272
|
'@stylistic/jsx-indent'?: Linter.RuleEntry<StylisticJsxIndent>
|
|
1272
1273
|
/**
|
|
1273
1274
|
* Enforce props indentation in JSX
|
|
1274
|
-
* @see https://eslint.style/rules/jsx
|
|
1275
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
1275
1276
|
*/
|
|
1276
1277
|
'@stylistic/jsx-indent-props'?: Linter.RuleEntry<StylisticJsxIndentProps>
|
|
1277
1278
|
/**
|
|
1278
1279
|
* Enforce maximum of props on a single line in JSX
|
|
1279
|
-
* @see https://eslint.style/rules/jsx
|
|
1280
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
1280
1281
|
*/
|
|
1281
1282
|
'@stylistic/jsx-max-props-per-line'?: Linter.RuleEntry<StylisticJsxMaxPropsPerLine>
|
|
1282
1283
|
/**
|
|
1283
1284
|
* Require or prevent a new line after jsx elements and expressions.
|
|
1284
|
-
* @see https://eslint.style/rules/jsx
|
|
1285
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
1285
1286
|
*/
|
|
1286
1287
|
'@stylistic/jsx-newline'?: Linter.RuleEntry<StylisticJsxNewline>
|
|
1287
1288
|
/**
|
|
1288
1289
|
* Require one JSX element per line
|
|
1289
|
-
* @see https://eslint.style/rules/jsx
|
|
1290
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
1290
1291
|
*/
|
|
1291
1292
|
'@stylistic/jsx-one-expression-per-line'?: Linter.RuleEntry<StylisticJsxOneExpressionPerLine>
|
|
1292
1293
|
/**
|
|
1293
1294
|
* Enforce PascalCase for user-defined JSX components
|
|
1294
|
-
* @see https://eslint.style/rules/jsx
|
|
1295
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
1295
1296
|
*/
|
|
1296
1297
|
'@stylistic/jsx-pascal-case'?: Linter.RuleEntry<StylisticJsxPascalCase>
|
|
1297
1298
|
/**
|
|
1298
1299
|
* Disallow multiple spaces between inline JSX props
|
|
1299
|
-
* @see https://eslint.style/rules/jsx
|
|
1300
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
1300
1301
|
*/
|
|
1301
1302
|
'@stylistic/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
|
|
1302
1303
|
/**
|
|
1303
1304
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
1304
|
-
* @see https://eslint.style/rules/
|
|
1305
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
1305
1306
|
*/
|
|
1306
1307
|
'@stylistic/jsx-quotes'?: Linter.RuleEntry<StylisticJsxQuotes>
|
|
1307
1308
|
/**
|
|
1308
1309
|
* Disallow extra closing tags for components without children
|
|
1309
|
-
* @see https://eslint.style/rules/jsx
|
|
1310
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
1310
1311
|
*/
|
|
1311
1312
|
'@stylistic/jsx-self-closing-comp'?: Linter.RuleEntry<StylisticJsxSelfClosingComp>
|
|
1312
1313
|
/**
|
|
1313
1314
|
* Enforce props alphabetical sorting
|
|
1314
|
-
* @see https://eslint.style/rules/jsx
|
|
1315
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
1315
1316
|
*/
|
|
1316
1317
|
'@stylistic/jsx-sort-props'?: Linter.RuleEntry<StylisticJsxSortProps>
|
|
1317
1318
|
/**
|
|
1318
1319
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
1319
|
-
* @see https://eslint.style/rules/jsx
|
|
1320
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
1320
1321
|
*/
|
|
1321
1322
|
'@stylistic/jsx-tag-spacing'?: Linter.RuleEntry<StylisticJsxTagSpacing>
|
|
1322
1323
|
/**
|
|
1323
1324
|
* Disallow missing parentheses around multiline JSX
|
|
1324
|
-
* @see https://eslint.style/rules/jsx
|
|
1325
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
1325
1326
|
*/
|
|
1326
1327
|
'@stylistic/jsx-wrap-multilines'?: Linter.RuleEntry<StylisticJsxWrapMultilines>
|
|
1327
1328
|
/**
|
|
1328
1329
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
1329
|
-
* @see https://eslint.style/rules/
|
|
1330
|
+
* @see https://eslint.style/rules/key-spacing
|
|
1330
1331
|
*/
|
|
1331
1332
|
'@stylistic/key-spacing'?: Linter.RuleEntry<StylisticKeySpacing>
|
|
1332
1333
|
/**
|
|
1333
1334
|
* Enforce consistent spacing before and after keywords
|
|
1334
|
-
* @see https://eslint.style/rules/
|
|
1335
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
1335
1336
|
*/
|
|
1336
1337
|
'@stylistic/keyword-spacing'?: Linter.RuleEntry<StylisticKeywordSpacing>
|
|
1337
1338
|
/**
|
|
1338
1339
|
* Enforce position of line comments
|
|
1339
|
-
* @see https://eslint.style/rules/
|
|
1340
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
1340
1341
|
*/
|
|
1341
1342
|
'@stylistic/line-comment-position'?: Linter.RuleEntry<StylisticLineCommentPosition>
|
|
1342
1343
|
/**
|
|
1343
1344
|
* Enforce consistent linebreak style
|
|
1344
|
-
* @see https://eslint.style/rules/
|
|
1345
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
1345
1346
|
*/
|
|
1346
1347
|
'@stylistic/linebreak-style'?: Linter.RuleEntry<StylisticLinebreakStyle>
|
|
1347
1348
|
/**
|
|
1348
1349
|
* Require empty lines around comments
|
|
1349
|
-
* @see https://eslint.style/rules/
|
|
1350
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
1350
1351
|
*/
|
|
1351
1352
|
'@stylistic/lines-around-comment'?: Linter.RuleEntry<StylisticLinesAroundComment>
|
|
1352
1353
|
/**
|
|
1353
1354
|
* Require or disallow an empty line between class members
|
|
1354
|
-
* @see https://eslint.style/rules/
|
|
1355
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
1355
1356
|
*/
|
|
1356
1357
|
'@stylistic/lines-between-class-members'?: Linter.RuleEntry<StylisticLinesBetweenClassMembers>
|
|
1357
1358
|
/**
|
|
1358
1359
|
* Enforce a maximum line length
|
|
1359
|
-
* @see https://eslint.style/rules/
|
|
1360
|
+
* @see https://eslint.style/rules/max-len
|
|
1360
1361
|
*/
|
|
1361
1362
|
'@stylistic/max-len'?: Linter.RuleEntry<StylisticMaxLen>
|
|
1362
1363
|
/**
|
|
1363
1364
|
* Enforce a maximum number of statements allowed per line
|
|
1364
|
-
* @see https://eslint.style/rules/
|
|
1365
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
1365
1366
|
*/
|
|
1366
1367
|
'@stylistic/max-statements-per-line'?: Linter.RuleEntry<StylisticMaxStatementsPerLine>
|
|
1367
1368
|
/**
|
|
1368
1369
|
* Require a specific member delimiter style for interfaces and type literals
|
|
1369
|
-
* @see https://eslint.style/rules/
|
|
1370
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
1370
1371
|
*/
|
|
1371
1372
|
'@stylistic/member-delimiter-style'?: Linter.RuleEntry<StylisticMemberDelimiterStyle>
|
|
1372
1373
|
/**
|
|
1373
1374
|
* Enforce a particular style for multiline comments
|
|
1374
|
-
* @see https://eslint.style/rules/
|
|
1375
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
1375
1376
|
*/
|
|
1376
1377
|
'@stylistic/multiline-comment-style'?: Linter.RuleEntry<StylisticMultilineCommentStyle>
|
|
1377
1378
|
/**
|
|
1378
1379
|
* Enforce newlines between operands of ternary expressions
|
|
1379
|
-
* @see https://eslint.style/rules/
|
|
1380
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
1380
1381
|
*/
|
|
1381
1382
|
'@stylistic/multiline-ternary'?: Linter.RuleEntry<StylisticMultilineTernary>
|
|
1382
1383
|
/**
|
|
1383
1384
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
1384
|
-
* @see https://eslint.style/rules/
|
|
1385
|
+
* @see https://eslint.style/rules/new-parens
|
|
1385
1386
|
*/
|
|
1386
1387
|
'@stylistic/new-parens'?: Linter.RuleEntry<StylisticNewParens>
|
|
1387
1388
|
/**
|
|
1388
1389
|
* Require a newline after each call in a method chain
|
|
1389
|
-
* @see https://eslint.style/rules/
|
|
1390
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
1390
1391
|
*/
|
|
1391
1392
|
'@stylistic/newline-per-chained-call'?: Linter.RuleEntry<StylisticNewlinePerChainedCall>
|
|
1392
1393
|
/**
|
|
1393
1394
|
* Disallow arrow functions where they could be confused with comparisons
|
|
1394
|
-
* @see https://eslint.style/rules/
|
|
1395
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
1395
1396
|
*/
|
|
1396
1397
|
'@stylistic/no-confusing-arrow'?: Linter.RuleEntry<StylisticNoConfusingArrow>
|
|
1397
1398
|
/**
|
|
1398
1399
|
* Disallow unnecessary parentheses
|
|
1399
|
-
* @see https://eslint.style/rules/
|
|
1400
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
1400
1401
|
*/
|
|
1401
1402
|
'@stylistic/no-extra-parens'?: Linter.RuleEntry<StylisticNoExtraParens>
|
|
1402
1403
|
/**
|
|
1403
1404
|
* Disallow unnecessary semicolons
|
|
1404
|
-
* @see https://eslint.style/rules/
|
|
1405
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
1405
1406
|
*/
|
|
1406
1407
|
'@stylistic/no-extra-semi'?: Linter.RuleEntry<[]>
|
|
1407
1408
|
/**
|
|
1408
1409
|
* Disallow leading or trailing decimal points in numeric literals
|
|
1409
|
-
* @see https://eslint.style/rules/
|
|
1410
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
1410
1411
|
*/
|
|
1411
1412
|
'@stylistic/no-floating-decimal'?: Linter.RuleEntry<[]>
|
|
1412
1413
|
/**
|
|
1413
1414
|
* Disallow mixed binary operators
|
|
1414
|
-
* @see https://eslint.style/rules/
|
|
1415
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
1415
1416
|
*/
|
|
1416
1417
|
'@stylistic/no-mixed-operators'?: Linter.RuleEntry<StylisticNoMixedOperators>
|
|
1417
1418
|
/**
|
|
1418
1419
|
* Disallow mixed spaces and tabs for indentation
|
|
1419
|
-
* @see https://eslint.style/rules/
|
|
1420
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
1420
1421
|
*/
|
|
1421
1422
|
'@stylistic/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StylisticNoMixedSpacesAndTabs>
|
|
1422
1423
|
/**
|
|
1423
1424
|
* Disallow multiple spaces
|
|
1424
|
-
* @see https://eslint.style/rules/
|
|
1425
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
1425
1426
|
*/
|
|
1426
1427
|
'@stylistic/no-multi-spaces'?: Linter.RuleEntry<StylisticNoMultiSpaces>
|
|
1427
1428
|
/**
|
|
1428
1429
|
* Disallow multiple empty lines
|
|
1429
|
-
* @see https://eslint.style/rules/
|
|
1430
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
1430
1431
|
*/
|
|
1431
1432
|
'@stylistic/no-multiple-empty-lines'?: Linter.RuleEntry<StylisticNoMultipleEmptyLines>
|
|
1432
1433
|
/**
|
|
1433
1434
|
* Disallow all tabs
|
|
1434
|
-
* @see https://eslint.style/rules/
|
|
1435
|
+
* @see https://eslint.style/rules/no-tabs
|
|
1435
1436
|
*/
|
|
1436
1437
|
'@stylistic/no-tabs'?: Linter.RuleEntry<StylisticNoTabs>
|
|
1437
1438
|
/**
|
|
1438
1439
|
* Disallow trailing whitespace at the end of lines
|
|
1439
|
-
* @see https://eslint.style/rules/
|
|
1440
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
1440
1441
|
*/
|
|
1441
1442
|
'@stylistic/no-trailing-spaces'?: Linter.RuleEntry<StylisticNoTrailingSpaces>
|
|
1442
1443
|
/**
|
|
1443
1444
|
* Disallow whitespace before properties
|
|
1444
|
-
* @see https://eslint.style/rules/
|
|
1445
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
1445
1446
|
*/
|
|
1446
1447
|
'@stylistic/no-whitespace-before-property'?: Linter.RuleEntry<[]>
|
|
1447
1448
|
/**
|
|
1448
1449
|
* Enforce the location of single-line statements
|
|
1449
|
-
* @see https://eslint.style/rules/
|
|
1450
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
1450
1451
|
*/
|
|
1451
1452
|
'@stylistic/nonblock-statement-body-position'?: Linter.RuleEntry<StylisticNonblockStatementBodyPosition>
|
|
1452
1453
|
/**
|
|
1453
1454
|
* Enforce consistent line breaks after opening and before closing braces
|
|
1454
|
-
* @see https://eslint.style/rules/
|
|
1455
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
1455
1456
|
*/
|
|
1456
1457
|
'@stylistic/object-curly-newline'?: Linter.RuleEntry<StylisticObjectCurlyNewline>
|
|
1457
1458
|
/**
|
|
1458
1459
|
* Enforce consistent spacing inside braces
|
|
1459
|
-
* @see https://eslint.style/rules/
|
|
1460
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
1460
1461
|
*/
|
|
1461
1462
|
'@stylistic/object-curly-spacing'?: Linter.RuleEntry<StylisticObjectCurlySpacing>
|
|
1462
1463
|
/**
|
|
1463
1464
|
* Enforce placing object properties on separate lines
|
|
1464
|
-
* @see https://eslint.style/rules/
|
|
1465
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
1465
1466
|
*/
|
|
1466
1467
|
'@stylistic/object-property-newline'?: Linter.RuleEntry<StylisticObjectPropertyNewline>
|
|
1467
1468
|
/**
|
|
1468
1469
|
* Require or disallow newlines around variable declarations
|
|
1469
|
-
* @see https://eslint.style/rules/
|
|
1470
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
1470
1471
|
*/
|
|
1471
1472
|
'@stylistic/one-var-declaration-per-line'?: Linter.RuleEntry<StylisticOneVarDeclarationPerLine>
|
|
1472
1473
|
/**
|
|
1473
1474
|
* Enforce consistent linebreak style for operators
|
|
1474
|
-
* @see https://eslint.style/rules/
|
|
1475
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
1475
1476
|
*/
|
|
1476
1477
|
'@stylistic/operator-linebreak'?: Linter.RuleEntry<StylisticOperatorLinebreak>
|
|
1477
1478
|
/**
|
|
1478
1479
|
* Require or disallow padding within blocks
|
|
1479
|
-
* @see https://eslint.style/rules/
|
|
1480
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
1480
1481
|
*/
|
|
1481
1482
|
'@stylistic/padded-blocks'?: Linter.RuleEntry<StylisticPaddedBlocks>
|
|
1482
1483
|
/**
|
|
1483
1484
|
* Require or disallow padding lines between statements
|
|
1484
|
-
* @see https://eslint.style/rules/
|
|
1485
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
1485
1486
|
*/
|
|
1486
1487
|
'@stylistic/padding-line-between-statements'?: Linter.RuleEntry<StylisticPaddingLineBetweenStatements>
|
|
1487
1488
|
/**
|
|
1488
1489
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
1489
|
-
* @see https://eslint.style/rules/
|
|
1490
|
+
* @see https://eslint.style/rules/quote-props
|
|
1490
1491
|
*/
|
|
1491
1492
|
'@stylistic/quote-props'?: Linter.RuleEntry<StylisticQuoteProps>
|
|
1492
1493
|
/**
|
|
1493
1494
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
1494
|
-
* @see https://eslint.style/rules/
|
|
1495
|
+
* @see https://eslint.style/rules/quotes
|
|
1495
1496
|
*/
|
|
1496
1497
|
'@stylistic/quotes'?: Linter.RuleEntry<StylisticQuotes>
|
|
1497
1498
|
/**
|
|
1498
1499
|
* Enforce spacing between rest and spread operators and their expressions
|
|
1499
|
-
* @see https://eslint.style/rules/
|
|
1500
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
1500
1501
|
*/
|
|
1501
1502
|
'@stylistic/rest-spread-spacing'?: Linter.RuleEntry<StylisticRestSpreadSpacing>
|
|
1502
1503
|
/**
|
|
1503
1504
|
* Require or disallow semicolons instead of ASI
|
|
1504
|
-
* @see https://eslint.style/rules/
|
|
1505
|
+
* @see https://eslint.style/rules/semi
|
|
1505
1506
|
*/
|
|
1506
1507
|
'@stylistic/semi'?: Linter.RuleEntry<StylisticSemi>
|
|
1507
1508
|
/**
|
|
1508
1509
|
* Enforce consistent spacing before and after semicolons
|
|
1509
|
-
* @see https://eslint.style/rules/
|
|
1510
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
1510
1511
|
*/
|
|
1511
1512
|
'@stylistic/semi-spacing'?: Linter.RuleEntry<StylisticSemiSpacing>
|
|
1512
1513
|
/**
|
|
1513
1514
|
* Enforce location of semicolons
|
|
1514
|
-
* @see https://eslint.style/rules/
|
|
1515
|
+
* @see https://eslint.style/rules/semi-style
|
|
1515
1516
|
*/
|
|
1516
1517
|
'@stylistic/semi-style'?: Linter.RuleEntry<StylisticSemiStyle>
|
|
1517
1518
|
/**
|
|
1518
1519
|
* Enforce consistent spacing before blocks
|
|
1519
|
-
* @see https://eslint.style/rules/
|
|
1520
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
1520
1521
|
*/
|
|
1521
1522
|
'@stylistic/space-before-blocks'?: Linter.RuleEntry<StylisticSpaceBeforeBlocks>
|
|
1522
1523
|
/**
|
|
1523
1524
|
* Enforce consistent spacing before function parenthesis
|
|
1524
|
-
* @see https://eslint.style/rules/
|
|
1525
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
1525
1526
|
*/
|
|
1526
1527
|
'@stylistic/space-before-function-paren'?: Linter.RuleEntry<StylisticSpaceBeforeFunctionParen>
|
|
1527
1528
|
/**
|
|
1528
1529
|
* Enforce consistent spacing inside parentheses
|
|
1529
|
-
* @see https://eslint.style/rules/
|
|
1530
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
1530
1531
|
*/
|
|
1531
1532
|
'@stylistic/space-in-parens'?: Linter.RuleEntry<StylisticSpaceInParens>
|
|
1532
1533
|
/**
|
|
1533
1534
|
* Require spacing around infix operators
|
|
1534
|
-
* @see https://eslint.style/rules/
|
|
1535
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
1535
1536
|
*/
|
|
1536
1537
|
'@stylistic/space-infix-ops'?: Linter.RuleEntry<StylisticSpaceInfixOps>
|
|
1537
1538
|
/**
|
|
1538
1539
|
* Enforce consistent spacing before or after unary operators
|
|
1539
|
-
* @see https://eslint.style/rules/
|
|
1540
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
1540
1541
|
*/
|
|
1541
1542
|
'@stylistic/space-unary-ops'?: Linter.RuleEntry<StylisticSpaceUnaryOps>
|
|
1542
1543
|
/**
|
|
1543
1544
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
1544
|
-
* @see https://eslint.style/rules/
|
|
1545
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
1545
1546
|
*/
|
|
1546
1547
|
'@stylistic/spaced-comment'?: Linter.RuleEntry<StylisticSpacedComment>
|
|
1547
1548
|
/**
|
|
1548
1549
|
* Enforce spacing around colons of switch statements
|
|
1549
|
-
* @see https://eslint.style/rules/
|
|
1550
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
1550
1551
|
*/
|
|
1551
1552
|
'@stylistic/switch-colon-spacing'?: Linter.RuleEntry<StylisticSwitchColonSpacing>
|
|
1552
1553
|
/**
|
|
1553
1554
|
* Require or disallow spacing around embedded expressions of template strings
|
|
1554
|
-
* @see https://eslint.style/rules/
|
|
1555
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
1555
1556
|
*/
|
|
1556
1557
|
'@stylistic/template-curly-spacing'?: Linter.RuleEntry<StylisticTemplateCurlySpacing>
|
|
1557
1558
|
/**
|
|
1558
1559
|
* Require or disallow spacing between template tags and their literals
|
|
1559
|
-
* @see https://eslint.style/rules/
|
|
1560
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
1560
1561
|
*/
|
|
1561
1562
|
'@stylistic/template-tag-spacing'?: Linter.RuleEntry<StylisticTemplateTagSpacing>
|
|
1562
1563
|
/**
|
|
1563
1564
|
* Require consistent spacing around type annotations
|
|
1564
|
-
* @see https://eslint.style/rules/
|
|
1565
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
1565
1566
|
*/
|
|
1566
1567
|
'@stylistic/type-annotation-spacing'?: Linter.RuleEntry<StylisticTypeAnnotationSpacing>
|
|
1567
1568
|
/**
|
|
1568
1569
|
* Enforces consistent spacing inside TypeScript type generics
|
|
1569
|
-
* @see https://eslint.style/rules/
|
|
1570
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
1570
1571
|
*/
|
|
1571
1572
|
'@stylistic/type-generic-spacing'?: Linter.RuleEntry<[]>
|
|
1572
1573
|
/**
|
|
1573
1574
|
* Expect space before the type declaration in the named tuple
|
|
1574
|
-
* @see https://eslint.style/rules/
|
|
1575
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
1575
1576
|
*/
|
|
1576
1577
|
'@stylistic/type-named-tuple-spacing'?: Linter.RuleEntry<[]>
|
|
1577
1578
|
/**
|
|
1578
1579
|
* Require parentheses around immediate `function` invocations
|
|
1579
|
-
* @see https://eslint.style/rules/
|
|
1580
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
1580
1581
|
*/
|
|
1581
1582
|
'@stylistic/wrap-iife'?: Linter.RuleEntry<StylisticWrapIife>
|
|
1582
1583
|
/**
|
|
1583
1584
|
* Require parenthesis around regex literals
|
|
1584
|
-
* @see https://eslint.style/rules/
|
|
1585
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
1585
1586
|
*/
|
|
1586
1587
|
'@stylistic/wrap-regex'?: Linter.RuleEntry<[]>
|
|
1587
1588
|
/**
|
|
1588
1589
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
1589
|
-
* @see https://eslint.style/rules/
|
|
1590
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
1590
1591
|
*/
|
|
1591
1592
|
'@stylistic/yield-star-spacing'?: Linter.RuleEntry<StylisticYieldStarSpacing>
|
|
1592
1593
|
/**
|
|
@@ -2820,233 +2821,238 @@ interface RuleOptions {
|
|
|
2820
2821
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
2821
2822
|
/**
|
|
2822
2823
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2823
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
|
|
2824
2825
|
*/
|
|
2825
2826
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
2826
2827
|
/**
|
|
2827
2828
|
* Ensure a default export is present, given a default import.
|
|
2828
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
2829
2830
|
*/
|
|
2830
2831
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
2831
2832
|
/**
|
|
2832
2833
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2833
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
2834
2835
|
*/
|
|
2835
2836
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
2836
2837
|
/**
|
|
2837
2838
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2838
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
2839
2840
|
*/
|
|
2840
2841
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
2841
2842
|
/**
|
|
2842
2843
|
* Ensure all exports appear after other statements.
|
|
2843
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
2844
2845
|
*/
|
|
2845
2846
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
2846
2847
|
/**
|
|
2847
2848
|
* Ensure consistent use of file extension within the import path.
|
|
2848
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
2849
2850
|
*/
|
|
2850
2851
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
2851
2852
|
/**
|
|
2852
2853
|
* Ensure all imports appear before other statements.
|
|
2853
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
|
|
2854
2855
|
*/
|
|
2855
2856
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
2856
2857
|
/**
|
|
2857
2858
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2858
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
2859
2860
|
*/
|
|
2860
2861
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
2861
2862
|
/**
|
|
2862
2863
|
* Replaced by `import-x/first`.
|
|
2863
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
2864
2865
|
* @deprecated
|
|
2865
2866
|
*/
|
|
2866
2867
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
2867
2868
|
/**
|
|
2868
2869
|
* Enforce the maximum number of dependencies a module can have.
|
|
2869
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
2870
2871
|
*/
|
|
2871
2872
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
2872
2873
|
/**
|
|
2873
2874
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2874
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
2875
2876
|
*/
|
|
2876
2877
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
2877
2878
|
/**
|
|
2878
2879
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2879
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
2880
2881
|
*/
|
|
2881
2882
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
2882
2883
|
/**
|
|
2883
2884
|
* Enforce a newline after import statements.
|
|
2884
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
|
|
2885
2886
|
*/
|
|
2886
2887
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
2887
2888
|
/**
|
|
2888
2889
|
* Forbid import of modules using absolute paths.
|
|
2889
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
2890
2891
|
*/
|
|
2891
2892
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
2892
2893
|
/**
|
|
2893
2894
|
* Forbid AMD `require` and `define` calls.
|
|
2894
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
2895
2896
|
*/
|
|
2896
2897
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
2897
2898
|
/**
|
|
2898
2899
|
* Forbid anonymous values as default exports.
|
|
2899
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
2900
2901
|
*/
|
|
2901
2902
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
2902
2903
|
/**
|
|
2903
2904
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2904
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
2905
2906
|
*/
|
|
2906
2907
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
2907
2908
|
/**
|
|
2908
2909
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2909
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
2910
2911
|
*/
|
|
2911
2912
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
2912
2913
|
/**
|
|
2913
2914
|
* Forbid default exports.
|
|
2914
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
|
|
2915
2916
|
*/
|
|
2916
2917
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
2917
2918
|
/**
|
|
2918
2919
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2919
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
2920
2921
|
*/
|
|
2921
2922
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
2922
2923
|
/**
|
|
2923
2924
|
* Forbid repeated import of the same module in multiple places.
|
|
2924
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
|
|
2925
2926
|
*/
|
|
2926
2927
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
2927
2928
|
/**
|
|
2928
2929
|
* Forbid `require()` calls with expressions.
|
|
2929
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
2930
2931
|
*/
|
|
2931
2932
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
2932
2933
|
/**
|
|
2933
2934
|
* Forbid empty named import blocks.
|
|
2934
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2935
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
2935
2936
|
*/
|
|
2936
2937
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
2937
2938
|
/**
|
|
2938
2939
|
* Forbid the use of extraneous packages.
|
|
2939
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2940
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
2940
2941
|
*/
|
|
2941
2942
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
2942
2943
|
/**
|
|
2943
2944
|
* Forbid import statements with CommonJS module.exports.
|
|
2944
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2945
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
2945
2946
|
*/
|
|
2946
2947
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
2947
2948
|
/**
|
|
2948
2949
|
* Forbid importing the submodules of other modules.
|
|
2949
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2950
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
2950
2951
|
*/
|
|
2951
2952
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
2952
2953
|
/**
|
|
2953
2954
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2954
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2955
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
|
|
2955
2956
|
*/
|
|
2956
2957
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
2957
2958
|
/**
|
|
2958
2959
|
* Forbid use of exported name as identifier of default export.
|
|
2959
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2960
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
2960
2961
|
*/
|
|
2961
2962
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
2962
2963
|
/**
|
|
2963
2964
|
* Forbid use of exported name as property of default export.
|
|
2964
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2965
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
2965
2966
|
*/
|
|
2966
2967
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
2967
2968
|
/**
|
|
2968
2969
|
* Forbid named default exports.
|
|
2969
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2970
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
|
|
2970
2971
|
*/
|
|
2971
2972
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
2972
2973
|
/**
|
|
2973
2974
|
* Forbid named exports.
|
|
2974
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2975
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
2975
2976
|
*/
|
|
2976
2977
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
2977
2978
|
/**
|
|
2978
2979
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2979
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2980
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
2980
2981
|
*/
|
|
2981
2982
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
2982
2983
|
/**
|
|
2983
2984
|
* Forbid Node.js builtin modules.
|
|
2984
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2985
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
2985
2986
|
*/
|
|
2986
2987
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
2987
2988
|
/**
|
|
2988
2989
|
* Forbid importing packages through relative paths.
|
|
2989
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2990
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
2990
2991
|
*/
|
|
2991
2992
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
2992
2993
|
/**
|
|
2993
2994
|
* Forbid importing modules from parent directories.
|
|
2994
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2995
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
2995
2996
|
*/
|
|
2996
2997
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
2997
2998
|
/**
|
|
2998
2999
|
* Forbid importing a default export by a different name.
|
|
2999
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3000
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
3000
3001
|
*/
|
|
3001
3002
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
3002
3003
|
/**
|
|
3003
3004
|
* Enforce which files can be imported in a given folder.
|
|
3004
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3005
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
3005
3006
|
*/
|
|
3006
3007
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
3007
3008
|
/**
|
|
3008
3009
|
* Forbid a module from importing itself.
|
|
3009
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3010
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
3010
3011
|
*/
|
|
3011
3012
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
3012
3013
|
/**
|
|
3013
3014
|
* Forbid unassigned imports.
|
|
3014
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3015
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
3015
3016
|
*/
|
|
3016
3017
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
3017
3018
|
/**
|
|
3018
3019
|
* Ensure imports point to a file/module that can be resolved.
|
|
3019
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3020
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
3020
3021
|
*/
|
|
3021
3022
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
3022
3023
|
/**
|
|
3023
3024
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3024
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3025
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
3025
3026
|
*/
|
|
3026
3027
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
3027
3028
|
/**
|
|
3028
3029
|
* Forbid unnecessary path segments in import and require statements.
|
|
3029
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3030
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
3030
3031
|
*/
|
|
3031
3032
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
3032
3033
|
/**
|
|
3033
3034
|
* Forbid webpack loader syntax in imports.
|
|
3034
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3035
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
3035
3036
|
*/
|
|
3036
3037
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
3037
3038
|
/**
|
|
3038
3039
|
* Enforce a convention in module import order.
|
|
3039
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3040
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
3040
3041
|
*/
|
|
3041
3042
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
3042
3043
|
/**
|
|
3043
3044
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3044
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3045
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
3045
3046
|
*/
|
|
3046
3047
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
3048
|
+
/**
|
|
3049
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
3050
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
3051
|
+
*/
|
|
3052
|
+
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>
|
|
3047
3053
|
/**
|
|
3048
3054
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3049
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
3055
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
3050
3056
|
*/
|
|
3051
3057
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
3052
3058
|
/**
|
|
@@ -7196,6 +7202,16 @@ interface RuleOptions {
|
|
|
7196
7202
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
7197
7203
|
*/
|
|
7198
7204
|
'vitest/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
7205
|
+
/**
|
|
7206
|
+
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
7207
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
7208
|
+
*/
|
|
7209
|
+
'vitest/prefer-called-once'?: Linter.RuleEntry<[]>
|
|
7210
|
+
/**
|
|
7211
|
+
* enforce using `toBeCalledTimes(1)` or `toHaveBeenCalledTimes(1)`
|
|
7212
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
|
|
7213
|
+
*/
|
|
7214
|
+
'vitest/prefer-called-times'?: Linter.RuleEntry<[]>
|
|
7199
7215
|
/**
|
|
7200
7216
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
7201
7217
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -7361,6 +7377,11 @@ interface RuleOptions {
|
|
|
7361
7377
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
7362
7378
|
*/
|
|
7363
7379
|
'vitest/valid-title'?: Linter.RuleEntry<VitestValidTitle>
|
|
7380
|
+
/**
|
|
7381
|
+
* disallow `.todo` usage
|
|
7382
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/warn-todo.md
|
|
7383
|
+
*/
|
|
7384
|
+
'vitest/warn-todo'?: Linter.RuleEntry<[]>
|
|
7364
7385
|
/**
|
|
7365
7386
|
* Require parentheses around immediate `function` invocations
|
|
7366
7387
|
* @see https://eslint.org/docs/latest/rules/wrap-iife
|
|
@@ -7601,16 +7622,6 @@ type StylisticCurlyNewline = []|[(("always" | "never") | {
|
|
|
7601
7622
|
minElements?: number
|
|
7602
7623
|
consistent?: boolean
|
|
7603
7624
|
})
|
|
7604
|
-
TSEnumBody?: (("always" | "never") | {
|
|
7605
|
-
multiline?: boolean
|
|
7606
|
-
minElements?: number
|
|
7607
|
-
consistent?: boolean
|
|
7608
|
-
})
|
|
7609
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
7610
|
-
multiline?: boolean
|
|
7611
|
-
minElements?: number
|
|
7612
|
-
consistent?: boolean
|
|
7613
|
-
})
|
|
7614
7625
|
TSModuleBlock?: (("always" | "never") | {
|
|
7615
7626
|
multiline?: boolean
|
|
7616
7627
|
minElements?: number
|
|
@@ -7624,14 +7635,6 @@ type StylisticCurlyNewline = []|[(("always" | "never") | {
|
|
|
7624
7635
|
type StylisticDotLocation = []|[("object" | "property")]
|
|
7625
7636
|
// ----- @stylistic/eol-last -----
|
|
7626
7637
|
type StylisticEolLast = []|[("always" | "never" | "unix" | "windows")]
|
|
7627
|
-
// ----- @stylistic/func-call-spacing -----
|
|
7628
|
-
type StylisticFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
7629
|
-
allowNewlines?: boolean
|
|
7630
|
-
optionalChain?: {
|
|
7631
|
-
before?: boolean
|
|
7632
|
-
after?: boolean
|
|
7633
|
-
}
|
|
7634
|
-
}])
|
|
7635
7638
|
// ----- @stylistic/function-call-argument-newline -----
|
|
7636
7639
|
type StylisticFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
7637
7640
|
// ----- @stylistic/function-call-spacing -----
|
|
@@ -7672,6 +7675,7 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
7672
7675
|
var?: (number | ("first" | "off"))
|
|
7673
7676
|
let?: (number | ("first" | "off"))
|
|
7674
7677
|
const?: (number | ("first" | "off"))
|
|
7678
|
+
using?: (number | ("first" | "off"))
|
|
7675
7679
|
})
|
|
7676
7680
|
outerIIFEBody?: (number | "off")
|
|
7677
7681
|
MemberExpression?: (number | "off")
|
|
@@ -7806,8 +7810,8 @@ type StylisticJsxSortProps = []|[{
|
|
|
7806
7810
|
multiline?: ("ignore" | "first" | "last")
|
|
7807
7811
|
ignoreCase?: boolean
|
|
7808
7812
|
noSortAlphabetically?: boolean
|
|
7809
|
-
reservedFirst?: (
|
|
7810
|
-
reservedLast?:
|
|
7813
|
+
reservedFirst?: (string[] | boolean)
|
|
7814
|
+
reservedLast?: string[]
|
|
7811
7815
|
locale?: string
|
|
7812
7816
|
}]
|
|
7813
7817
|
// ----- @stylistic/jsx-tag-spacing -----
|
|
@@ -8152,6 +8156,10 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8152
8156
|
before?: boolean
|
|
8153
8157
|
after?: boolean
|
|
8154
8158
|
}
|
|
8159
|
+
using?: {
|
|
8160
|
+
before?: boolean
|
|
8161
|
+
after?: boolean
|
|
8162
|
+
}
|
|
8155
8163
|
yield?: {
|
|
8156
8164
|
before?: boolean
|
|
8157
8165
|
after?: boolean
|
|
@@ -8356,6 +8364,11 @@ type StylisticNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
8356
8364
|
enforceForFunctionPrototypeMethods?: boolean
|
|
8357
8365
|
allowParensAfterCommentPattern?: string
|
|
8358
8366
|
nestedConditionalExpressions?: boolean
|
|
8367
|
+
allowNodesInSpreadElement?: {
|
|
8368
|
+
ConditionalExpression?: boolean
|
|
8369
|
+
LogicalExpression?: boolean
|
|
8370
|
+
AwaitExpression?: boolean
|
|
8371
|
+
}
|
|
8359
8372
|
}])
|
|
8360
8373
|
// ----- @stylistic/no-mixed-operators -----
|
|
8361
8374
|
type StylisticNoMixedOperators = []|[{
|
|
@@ -8433,6 +8446,11 @@ type StylisticObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
8433
8446
|
minProperties?: number
|
|
8434
8447
|
consistent?: boolean
|
|
8435
8448
|
})
|
|
8449
|
+
TSEnumBody?: (("always" | "never") | {
|
|
8450
|
+
multiline?: boolean
|
|
8451
|
+
minProperties?: number
|
|
8452
|
+
consistent?: boolean
|
|
8453
|
+
})
|
|
8436
8454
|
})]
|
|
8437
8455
|
// ----- @stylistic/object-curly-spacing -----
|
|
8438
8456
|
type StylisticObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -8442,7 +8460,6 @@ type StylisticObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never
|
|
|
8442
8460
|
// ----- @stylistic/object-property-newline -----
|
|
8443
8461
|
type StylisticObjectPropertyNewline = []|[{
|
|
8444
8462
|
allowAllPropertiesOnSameLine?: boolean
|
|
8445
|
-
allowMultiplePropertiesPerLine?: boolean
|
|
8446
8463
|
}]
|
|
8447
8464
|
// ----- @stylistic/one-var-declaration-per-line -----
|
|
8448
8465
|
type StylisticOneVarDeclarationPerLine = []|[("always" | "initializations")]
|
|
@@ -8466,7 +8483,7 @@ type StylisticPaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
|
8466
8483
|
}]
|
|
8467
8484
|
// ----- @stylistic/padding-line-between-statements -----
|
|
8468
8485
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
8469
|
-
type _StylisticPaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
|
|
8486
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]])
|
|
8470
8487
|
type StylisticPaddingLineBetweenStatements = {
|
|
8471
8488
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType
|
|
8472
8489
|
prev: _StylisticPaddingLineBetweenStatementsStatementType
|
|
@@ -8505,12 +8522,14 @@ type StylisticSpaceBeforeBlocks = []|[(("always" | "never") | {
|
|
|
8505
8522
|
keywords?: ("always" | "never" | "off")
|
|
8506
8523
|
functions?: ("always" | "never" | "off")
|
|
8507
8524
|
classes?: ("always" | "never" | "off")
|
|
8525
|
+
modules?: ("always" | "never" | "off")
|
|
8508
8526
|
})]
|
|
8509
8527
|
// ----- @stylistic/space-before-function-paren -----
|
|
8510
8528
|
type StylisticSpaceBeforeFunctionParen = []|[(("always" | "never") | {
|
|
8511
8529
|
anonymous?: ("always" | "never" | "ignore")
|
|
8512
8530
|
named?: ("always" | "never" | "ignore")
|
|
8513
8531
|
asyncArrow?: ("always" | "never" | "ignore")
|
|
8532
|
+
catch?: ("always" | "never" | "ignore")
|
|
8514
8533
|
})]
|
|
8515
8534
|
// ----- @stylistic/space-in-parens -----
|
|
8516
8535
|
type StylisticSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -9078,6 +9097,8 @@ interface _TypescriptEslintNamingConvention_MatchRegexConfig {
|
|
|
9078
9097
|
// ----- @typescript-eslint/no-base-to-string -----
|
|
9079
9098
|
type TypescriptEslintNoBaseToString = []|[{
|
|
9080
9099
|
|
|
9100
|
+
checkUnknown?: boolean
|
|
9101
|
+
|
|
9081
9102
|
ignoredTypeNames?: string[]
|
|
9082
9103
|
}]
|
|
9083
9104
|
// ----- @typescript-eslint/no-confusing-void-expression -----
|
|
@@ -10439,6 +10460,10 @@ type ImportXOrder = []|[{
|
|
|
10439
10460
|
type ImportXPreferDefaultExport = []|[{
|
|
10440
10461
|
target?: ("single" | "any")
|
|
10441
10462
|
}]
|
|
10463
|
+
// ----- import-x/prefer-namespace-import -----
|
|
10464
|
+
type ImportXPreferNamespaceImport = []|[{
|
|
10465
|
+
patterns?: string[]
|
|
10466
|
+
}]
|
|
10442
10467
|
// ----- indent -----
|
|
10443
10468
|
type Indent = []|[("tab" | number)]|[("tab" | number), {
|
|
10444
10469
|
SwitchCase?: number
|
|
@@ -10719,6 +10744,7 @@ type JsdocLinesBeforeBlock = []|[{
|
|
|
10719
10744
|
checkBlockStarts?: boolean
|
|
10720
10745
|
excludedTags?: string[]
|
|
10721
10746
|
ignoreSameLine?: boolean
|
|
10747
|
+
ignoreSingleLines?: boolean
|
|
10722
10748
|
lines?: number
|
|
10723
10749
|
}]
|
|
10724
10750
|
// ----- jsdoc/match-description -----
|
|
@@ -10762,6 +10788,7 @@ type JsdocMultilineBlocks = []|[{
|
|
|
10762
10788
|
noMultilineBlocks?: boolean
|
|
10763
10789
|
noSingleLineBlocks?: boolean
|
|
10764
10790
|
noZeroLineText?: boolean
|
|
10791
|
+
requireSingleLineUnderCount?: number
|
|
10765
10792
|
singleLineTags?: string[]
|
|
10766
10793
|
}]
|
|
10767
10794
|
// ----- jsdoc/no-bad-blocks -----
|
|
@@ -12134,6 +12161,7 @@ type NoConstantCondition = []|[{
|
|
|
12134
12161
|
// ----- no-duplicate-imports -----
|
|
12135
12162
|
type NoDuplicateImports = []|[{
|
|
12136
12163
|
includeExports?: boolean
|
|
12164
|
+
allowSeparateTypeImports?: boolean
|
|
12137
12165
|
}]
|
|
12138
12166
|
// ----- no-else-return -----
|
|
12139
12167
|
type NoElseReturn = []|[{
|
|
@@ -16394,6 +16422,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
16394
16422
|
"@eslint-community/eslint-comments/no-unused-disable": "off";
|
|
16395
16423
|
"@eslint-community/eslint-comments/require-description": "error";
|
|
16396
16424
|
};
|
|
16425
|
+
basePath?: string;
|
|
16397
16426
|
files?: Array<string | string[]>;
|
|
16398
16427
|
ignores?: string[];
|
|
16399
16428
|
language?: string;
|
|
@@ -16490,6 +16519,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
16490
16519
|
startLines: number;
|
|
16491
16520
|
}];
|
|
16492
16521
|
};
|
|
16522
|
+
basePath?: string;
|
|
16493
16523
|
files?: Array<string | string[]>;
|
|
16494
16524
|
ignores?: string[];
|
|
16495
16525
|
language?: string;
|
|
@@ -16612,6 +16642,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
16612
16642
|
"unicorn/prefer-node-protocol": "off";
|
|
16613
16643
|
"unicorn/prevent-abbreviations": "off";
|
|
16614
16644
|
};
|
|
16645
|
+
basePath?: string;
|
|
16615
16646
|
files?: Array<string | string[]>;
|
|
16616
16647
|
ignores?: string[];
|
|
16617
16648
|
language?: string;
|
|
@@ -16680,6 +16711,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
16680
16711
|
rules: {
|
|
16681
16712
|
"@tanstack/query/exhaustive-deps": "error";
|
|
16682
16713
|
"@tanstack/query/infinite-query-property-order": "error";
|
|
16714
|
+
"@tanstack/query/mutation-property-order": "error";
|
|
16683
16715
|
"@tanstack/query/no-rest-destructuring": "error";
|
|
16684
16716
|
"@tanstack/query/no-unstable-deps": "error";
|
|
16685
16717
|
"@tanstack/query/no-void-query-fn": "error";
|
|
@@ -16852,6 +16884,7 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
16852
16884
|
"playwright/no-wait-for-timeout": "error";
|
|
16853
16885
|
"playwright/valid-title": "off";
|
|
16854
16886
|
};
|
|
16887
|
+
basePath?: string;
|
|
16855
16888
|
ignores?: string[];
|
|
16856
16889
|
language?: string;
|
|
16857
16890
|
languageOptions?: Linter.LanguageOptions;
|