@ncontiero/eslint-config 5.2.0 → 6.0.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/index.d.ts CHANGED
@@ -19,6 +19,11 @@ interface RuleOptions {
19
19
  * @see https://tanstack.com/query/latest/docs/eslint/infinite-query-property-order
20
20
  */
21
21
  '@tanstack/query/infinite-query-property-order'?: Linter.RuleEntry<[]>
22
+ /**
23
+ * Ensure correct order of inference-sensitive properties in useMutation()
24
+ * @see https://tanstack.com/query/latest/docs/eslint/mutation-property-order
25
+ */
26
+ '@tanstack/query/mutation-property-order'?: Linter.RuleEntry<[]>
22
27
  /**
23
28
  * Disallows rest destructuring in queries
24
29
  * @see https://tanstack.com/query/latest/docs/eslint/no-rest-destructuring
@@ -683,6 +688,7 @@ interface RuleOptions {
683
688
  /**
684
689
  * Require type annotations in certain places
685
690
  * @see https://typescript-eslint.io/rules/typedef
691
+ * @deprecated
686
692
  */
687
693
  '@typescript-eslint/typedef'?: Linter.RuleEntry<TypescriptEslintTypedef>
688
694
  /**
@@ -1084,233 +1090,238 @@ interface RuleOptions {
1084
1090
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
1085
1091
  /**
1086
1092
  * Enforce or ban the use of inline type-only markers for named imports.
1087
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/consistent-type-specifier-style.md
1093
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
1088
1094
  */
1089
1095
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
1090
1096
  /**
1091
1097
  * Ensure a default export is present, given a default import.
1092
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/default.md
1098
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
1093
1099
  */
1094
1100
  'import/default'?: Linter.RuleEntry<[]>
1095
1101
  /**
1096
1102
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1097
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/dynamic-import-chunkname.md
1103
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
1098
1104
  */
1099
1105
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
1100
1106
  /**
1101
1107
  * Forbid any invalid exports, i.e. re-export of the same name.
1102
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/export.md
1108
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
1103
1109
  */
1104
1110
  'import/export'?: Linter.RuleEntry<[]>
1105
1111
  /**
1106
1112
  * Ensure all exports appear after other statements.
1107
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/exports-last.md
1113
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
1108
1114
  */
1109
1115
  'import/exports-last'?: Linter.RuleEntry<[]>
1110
1116
  /**
1111
1117
  * Ensure consistent use of file extension within the import path.
1112
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/extensions.md
1118
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
1113
1119
  */
1114
1120
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
1115
1121
  /**
1116
1122
  * Ensure all imports appear before other statements.
1117
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/first.md
1123
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
1118
1124
  */
1119
1125
  'import/first'?: Linter.RuleEntry<ImportFirst>
1120
1126
  /**
1121
1127
  * Prefer named exports to be grouped together in a single export declaration.
1122
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/group-exports.md
1128
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
1123
1129
  */
1124
1130
  'import/group-exports'?: Linter.RuleEntry<[]>
1125
1131
  /**
1126
1132
  * Replaced by `import-x/first`.
1127
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/imports-first.md
1133
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
1128
1134
  * @deprecated
1129
1135
  */
1130
1136
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
1131
1137
  /**
1132
1138
  * Enforce the maximum number of dependencies a module can have.
1133
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/max-dependencies.md
1139
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
1134
1140
  */
1135
1141
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
1136
1142
  /**
1137
1143
  * Ensure named imports correspond to a named export in the remote file.
1138
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/named.md
1144
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
1139
1145
  */
1140
1146
  'import/named'?: Linter.RuleEntry<ImportNamed>
1141
1147
  /**
1142
1148
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1143
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/namespace.md
1149
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
1144
1150
  */
1145
1151
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
1146
1152
  /**
1147
1153
  * Enforce a newline after import statements.
1148
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/newline-after-import.md
1154
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
1149
1155
  */
1150
1156
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
1151
1157
  /**
1152
1158
  * Forbid import of modules using absolute paths.
1153
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-absolute-path.md
1159
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
1154
1160
  */
1155
1161
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
1156
1162
  /**
1157
1163
  * Forbid AMD `require` and `define` calls.
1158
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-amd.md
1164
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
1159
1165
  */
1160
1166
  'import/no-amd'?: Linter.RuleEntry<[]>
1161
1167
  /**
1162
1168
  * Forbid anonymous values as default exports.
1163
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-anonymous-default-export.md
1169
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
1164
1170
  */
1165
1171
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
1166
1172
  /**
1167
1173
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1168
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-commonjs.md
1174
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
1169
1175
  */
1170
1176
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
1171
1177
  /**
1172
1178
  * Forbid a module from importing a module with a dependency path back to itself.
1173
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-cycle.md
1179
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
1174
1180
  */
1175
1181
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
1176
1182
  /**
1177
1183
  * Forbid default exports.
1178
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-default-export.md
1184
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
1179
1185
  */
1180
1186
  'import/no-default-export'?: Linter.RuleEntry<[]>
1181
1187
  /**
1182
1188
  * Forbid imported names marked with `@deprecated` documentation tag.
1183
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-deprecated.md
1189
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
1184
1190
  */
1185
1191
  'import/no-deprecated'?: Linter.RuleEntry<[]>
1186
1192
  /**
1187
1193
  * Forbid repeated import of the same module in multiple places.
1188
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-duplicates.md
1194
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
1189
1195
  */
1190
1196
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
1191
1197
  /**
1192
1198
  * Forbid `require()` calls with expressions.
1193
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-dynamic-require.md
1199
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
1194
1200
  */
1195
1201
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
1196
1202
  /**
1197
1203
  * Forbid empty named import blocks.
1198
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-empty-named-blocks.md
1204
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
1199
1205
  */
1200
1206
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
1201
1207
  /**
1202
1208
  * Forbid the use of extraneous packages.
1203
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-extraneous-dependencies.md
1209
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
1204
1210
  */
1205
1211
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
1206
1212
  /**
1207
1213
  * Forbid import statements with CommonJS module.exports.
1208
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-import-module-exports.md
1214
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
1209
1215
  */
1210
1216
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
1211
1217
  /**
1212
1218
  * Forbid importing the submodules of other modules.
1213
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-internal-modules.md
1219
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
1214
1220
  */
1215
1221
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
1216
1222
  /**
1217
1223
  * Forbid the use of mutable exports with `var` or `let`.
1218
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-mutable-exports.md
1224
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
1219
1225
  */
1220
1226
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
1221
1227
  /**
1222
1228
  * Forbid use of exported name as identifier of default export.
1223
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-as-default.md
1229
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
1224
1230
  */
1225
1231
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
1226
1232
  /**
1227
1233
  * Forbid use of exported name as property of default export.
1228
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-as-default-member.md
1234
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
1229
1235
  */
1230
1236
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
1231
1237
  /**
1232
1238
  * Forbid named default exports.
1233
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-default.md
1239
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
1234
1240
  */
1235
1241
  'import/no-named-default'?: Linter.RuleEntry<[]>
1236
1242
  /**
1237
1243
  * Forbid named exports.
1238
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-export.md
1244
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
1239
1245
  */
1240
1246
  'import/no-named-export'?: Linter.RuleEntry<[]>
1241
1247
  /**
1242
1248
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1243
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-namespace.md
1249
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
1244
1250
  */
1245
1251
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
1246
1252
  /**
1247
1253
  * Forbid Node.js builtin modules.
1248
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-nodejs-modules.md
1254
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
1249
1255
  */
1250
1256
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
1251
1257
  /**
1252
1258
  * Forbid importing packages through relative paths.
1253
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-relative-packages.md
1259
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
1254
1260
  */
1255
1261
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
1256
1262
  /**
1257
1263
  * Forbid importing modules from parent directories.
1258
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-relative-parent-imports.md
1264
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
1259
1265
  */
1260
1266
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
1261
1267
  /**
1262
1268
  * Forbid importing a default export by a different name.
1263
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-rename-default.md
1269
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
1264
1270
  */
1265
1271
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
1266
1272
  /**
1267
1273
  * Enforce which files can be imported in a given folder.
1268
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-restricted-paths.md
1274
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
1269
1275
  */
1270
1276
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
1271
1277
  /**
1272
1278
  * Forbid a module from importing itself.
1273
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-self-import.md
1279
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
1274
1280
  */
1275
1281
  'import/no-self-import'?: Linter.RuleEntry<[]>
1276
1282
  /**
1277
1283
  * Forbid unassigned imports.
1278
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unassigned-import.md
1284
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
1279
1285
  */
1280
1286
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
1281
1287
  /**
1282
1288
  * Ensure imports point to a file/module that can be resolved.
1283
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unresolved.md
1289
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
1284
1290
  */
1285
1291
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
1286
1292
  /**
1287
1293
  * Forbid modules without exports, or exports without matching import in another module.
1288
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unused-modules.md
1294
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
1289
1295
  */
1290
1296
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
1291
1297
  /**
1292
1298
  * Forbid unnecessary path segments in import and require statements.
1293
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-useless-path-segments.md
1299
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
1294
1300
  */
1295
1301
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
1296
1302
  /**
1297
1303
  * Forbid webpack loader syntax in imports.
1298
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-webpack-loader-syntax.md
1304
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
1299
1305
  */
1300
1306
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
1301
1307
  /**
1302
1308
  * Enforce a convention in module import order.
1303
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/order.md
1309
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
1304
1310
  */
1305
1311
  'import/order'?: Linter.RuleEntry<ImportOrder>
1306
1312
  /**
1307
1313
  * Prefer a default export if module exports a single name or multiple names.
1308
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/prefer-default-export.md
1314
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
1309
1315
  */
1310
1316
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1317
+ /**
1318
+ * Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
1319
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
1320
+ */
1321
+ 'import/prefer-namespace-import'?: Linter.RuleEntry<ImportPreferNamespaceImport>
1311
1322
  /**
1312
1323
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1313
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/unambiguous.md
1324
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
1314
1325
  */
1315
1326
  'import/unambiguous'?: Linter.RuleEntry<[]>
1316
1327
  /**
@@ -1784,7 +1795,7 @@ interface RuleOptions {
1784
1795
  * disallow unnecessary escape usage
1785
1796
  * @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-useless-escape.html
1786
1797
  */
1787
- 'jsonc/no-useless-escape'?: Linter.RuleEntry<[]>
1798
+ 'jsonc/no-useless-escape'?: Linter.RuleEntry<JsoncNoUselessEscape>
1788
1799
  /**
1789
1800
  * enforce consistent line breaks inside braces
1790
1801
  * @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/object-curly-newline.html
@@ -2096,11 +2107,31 @@ interface RuleOptions {
2096
2107
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
2097
2108
  */
2098
2109
  'markdown/heading-increment'?: Linter.RuleEntry<[]>
2110
+ /**
2111
+ * Disallow bare URLs
2112
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
2113
+ */
2114
+ 'markdown/no-bare-urls'?: Linter.RuleEntry<[]>
2115
+ /**
2116
+ * Disallow duplicate definitions
2117
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
2118
+ */
2119
+ 'markdown/no-duplicate-definitions'?: Linter.RuleEntry<MarkdownNoDuplicateDefinitions>
2099
2120
  /**
2100
2121
  * Disallow duplicate headings in the same document
2101
2122
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
2102
2123
  */
2103
- 'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
2124
+ 'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>
2125
+ /**
2126
+ * Disallow empty definitions
2127
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
2128
+ */
2129
+ 'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>
2130
+ /**
2131
+ * Disallow empty images
2132
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
2133
+ */
2134
+ 'markdown/no-empty-images'?: Linter.RuleEntry<[]>
2104
2135
  /**
2105
2136
  * Disallow empty links
2106
2137
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
@@ -2116,11 +2147,41 @@ interface RuleOptions {
2116
2147
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
2117
2148
  */
2118
2149
  'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
2150
+ /**
2151
+ * Disallow headings without a space after the hash characters
2152
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
2153
+ */
2154
+ 'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<[]>
2119
2155
  /**
2120
2156
  * Disallow missing label references
2121
2157
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
2122
2158
  */
2123
2159
  'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
2160
+ /**
2161
+ * Disallow link fragments that do not reference valid headings
2162
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
2163
+ */
2164
+ 'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>
2165
+ /**
2166
+ * Disallow multiple H1 headings in the same document
2167
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
2168
+ */
2169
+ 'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>
2170
+ /**
2171
+ * Disallow reversed link and image syntax
2172
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
2173
+ */
2174
+ 'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
2175
+ /**
2176
+ * Require alternative text for images
2177
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
2178
+ */
2179
+ 'markdown/require-alt-text'?: Linter.RuleEntry<[]>
2180
+ /**
2181
+ * Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
2182
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
2183
+ */
2184
+ 'markdown/table-column-count'?: Linter.RuleEntry<[]>
2124
2185
  /**
2125
2186
  * Enforce a maximum number of classes per file
2126
2187
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -2953,6 +3014,11 @@ interface RuleOptions {
2953
3014
  * @deprecated
2954
3015
  */
2955
3016
  'no-trailing-spaces'?: Linter.RuleEntry<NoTrailingSpaces>
3017
+ /**
3018
+ * Disallow `let` or `var` variables that are read but never assigned
3019
+ * @see https://eslint.org/docs/latest/rules/no-unassigned-vars
3020
+ */
3021
+ 'no-unassigned-vars'?: Linter.RuleEntry<[]>
2956
3022
  /**
2957
3023
  * Disallow the use of undeclared variables unless mentioned in `/*global *\/` comments
2958
3024
  * @see https://eslint.org/docs/latest/rules/no-undef
@@ -3077,7 +3143,7 @@ interface RuleOptions {
3077
3143
  * Disallow unnecessary escape characters
3078
3144
  * @see https://eslint.org/docs/latest/rules/no-useless-escape
3079
3145
  */
3080
- 'no-useless-escape'?: Linter.RuleEntry<[]>
3146
+ 'no-useless-escape'?: Linter.RuleEntry<NoUselessEscape>
3081
3147
  /**
3082
3148
  * Disallow renaming import, export, and destructured assignments to the same name
3083
3149
  * @see https://eslint.org/docs/latest/rules/no-useless-rename
@@ -3225,6 +3291,11 @@ interface RuleOptions {
3225
3291
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
3226
3292
  */
3227
3293
  'node/no-sync'?: Linter.RuleEntry<NodeNoSync>
3294
+ /**
3295
+ * disallow top-level `await` in published modules
3296
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
3297
+ */
3298
+ 'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>
3228
3299
  /**
3229
3300
  * disallow `bin` files that npm ignores
3230
3301
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
@@ -4498,7 +4569,7 @@ interface RuleOptions {
4498
4569
  * enforce using quantifier
4499
4570
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
4500
4571
  */
4501
- 'regexp/prefer-quantifier'?: Linter.RuleEntry<[]>
4572
+ 'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>
4502
4573
  /**
4503
4574
  * enforce using `?` quantifier
4504
4575
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
@@ -6232,6 +6303,8 @@ interface _TypescriptEslintNamingConvention_MatchRegexConfig {
6232
6303
  // ----- @typescript-eslint/no-base-to-string -----
6233
6304
  type TypescriptEslintNoBaseToString = []|[{
6234
6305
 
6306
+ checkUnknown?: boolean
6307
+
6235
6308
  ignoredTypeNames?: string[]
6236
6309
  }]
6237
6310
  // ----- @typescript-eslint/no-confusing-void-expression -----
@@ -7115,6 +7188,7 @@ type _FuncNamesValue = ("always" | "as-needed" | "never")
7115
7188
  // ----- func-style -----
7116
7189
  type FuncStyle = []|[("declaration" | "expression")]|[("declaration" | "expression"), {
7117
7190
  allowArrowFunctions?: boolean
7191
+ allowTypeAnnotation?: boolean
7118
7192
  overrides?: {
7119
7193
  namedExports?: ("declaration" | "expression" | "ignore")
7120
7194
  }
@@ -7187,6 +7261,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
7187
7261
  }
7188
7262
  ignorePackages?: boolean
7189
7263
  checkTypeImports?: boolean
7264
+ pathGroupOverrides?: {
7265
+ pattern: string
7266
+ patternOptions?: {
7267
+ [k: string]: unknown | undefined
7268
+ }
7269
+ action: ("enforce" | "ignore")
7270
+ }[]
7271
+ fix?: boolean
7190
7272
  [k: string]: unknown | undefined
7191
7273
  }] | []|[{
7192
7274
  pattern?: {
@@ -7194,6 +7276,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
7194
7276
  }
7195
7277
  ignorePackages?: boolean
7196
7278
  checkTypeImports?: boolean
7279
+ pathGroupOverrides?: {
7280
+ pattern: string
7281
+ patternOptions?: {
7282
+ [k: string]: unknown | undefined
7283
+ }
7284
+ action: ("enforce" | "ignore")
7285
+ }[]
7286
+ fix?: boolean
7197
7287
  [k: string]: unknown | undefined
7198
7288
  }] | []|[("always" | "ignorePackages" | "never")]|[("always" | "ignorePackages" | "never"), {
7199
7289
  [k: string]: ("always" | "ignorePackages" | "never")
@@ -7414,6 +7504,10 @@ type ImportOrder = []|[{
7414
7504
  type ImportPreferDefaultExport = []|[{
7415
7505
  target?: ("single" | "any")
7416
7506
  }]
7507
+ // ----- import/prefer-namespace-import -----
7508
+ type ImportPreferNamespaceImport = []|[{
7509
+ patterns?: string[]
7510
+ }]
7417
7511
  // ----- indent -----
7418
7512
  type Indent = []|[("tab" | number)]|[("tab" | number), {
7419
7513
  SwitchCase?: number
@@ -7513,10 +7607,10 @@ type JsdocCheckLineAlignment = []|[("always" | "never" | "any")]|[("always" | "n
7513
7607
  postTag?: number
7514
7608
  postType?: number
7515
7609
  }
7610
+ disableWrapIndent?: boolean
7516
7611
  preserveMainDescriptionPostDelimiter?: boolean
7517
7612
  tags?: string[]
7518
7613
  wrapIndent?: string
7519
- disableWrapIndent?: boolean
7520
7614
  }]
7521
7615
  // ----- jsdoc/check-param-names -----
7522
7616
  type JsdocCheckParamNames = []|[{
@@ -7599,6 +7693,7 @@ type JsdocLinesBeforeBlock = []|[{
7599
7693
  checkBlockStarts?: boolean
7600
7694
  excludedTags?: string[]
7601
7695
  ignoreSameLine?: boolean
7696
+ ignoreSingleLines?: boolean
7602
7697
  lines?: number
7603
7698
  }]
7604
7699
  // ----- jsdoc/match-description -----
@@ -8070,6 +8165,10 @@ type JsoncNoIrregularWhitespace = []|[{
8070
8165
  skipRegExps?: boolean
8071
8166
  skipJSXText?: boolean
8072
8167
  }]
8168
+ // ----- jsonc/no-useless-escape -----
8169
+ type JsoncNoUselessEscape = []|[{
8170
+ allowRegexCharacters?: string[]
8171
+ }]
8073
8172
  // ----- jsonc/object-curly-newline -----
8074
8173
  type JsoncObjectCurlyNewline = []|[((("always" | "never") | {
8075
8174
  multiline?: boolean
@@ -8807,10 +8906,28 @@ type LogicalAssignmentOperators = (([]|["always"]|["always", {
8807
8906
  type MarkdownFencedCodeLanguage = []|[{
8808
8907
  required?: string[]
8809
8908
  }]
8909
+ // ----- markdown/no-duplicate-definitions -----
8910
+ type MarkdownNoDuplicateDefinitions = []|[{
8911
+ allowDefinitions?: string[]
8912
+ allowFootnoteDefinitions?: string[]
8913
+ }]
8914
+ // ----- markdown/no-duplicate-headings -----
8915
+ type MarkdownNoDuplicateHeadings = []|[{
8916
+ checkSiblingsOnly?: boolean
8917
+ }]
8810
8918
  // ----- markdown/no-html -----
8811
8919
  type MarkdownNoHtml = []|[{
8812
8920
  allowed?: string[]
8813
8921
  }]
8922
+ // ----- markdown/no-missing-link-fragments -----
8923
+ type MarkdownNoMissingLinkFragments = []|[{
8924
+ ignoreCase?: boolean
8925
+ allowPattern?: string
8926
+ }]
8927
+ // ----- markdown/no-multiple-h1 -----
8928
+ type MarkdownNoMultipleH1 = []|[{
8929
+ frontmatterTitle?: string
8930
+ }]
8814
8931
  // ----- max-classes-per-file -----
8815
8932
  type MaxClassesPerFile = []|[(number | {
8816
8933
  ignoreExpressions?: boolean
@@ -8911,6 +9028,8 @@ type MaxNestedCallbacks = []|[(number | {
8911
9028
  type MaxParams = []|[(number | {
8912
9029
  maximum?: number
8913
9030
  max?: number
9031
+
9032
+ countVoidThis?: boolean
8914
9033
  })]
8915
9034
  // ----- max-statements -----
8916
9035
  type MaxStatements = []|[(number | {
@@ -8976,6 +9095,7 @@ type NoConstantCondition = []|[{
8976
9095
  // ----- no-duplicate-imports -----
8977
9096
  type NoDuplicateImports = []|[{
8978
9097
  includeExports?: boolean
9098
+ allowSeparateTypeImports?: boolean
8979
9099
  }]
8980
9100
  // ----- no-else-return -----
8981
9101
  type NoElseReturn = []|[{
@@ -9079,6 +9199,10 @@ type NoMagicNumbers = []|[{
9079
9199
  ignoreArrayIndexes?: boolean
9080
9200
  ignoreDefaultValues?: boolean
9081
9201
  ignoreClassFieldInitialValues?: boolean
9202
+ ignoreEnums?: boolean
9203
+ ignoreNumericLiteralTypes?: boolean
9204
+ ignoreReadonlyClassProperties?: boolean
9205
+ ignoreTypeIndexes?: boolean
9082
9206
  }]
9083
9207
  // ----- no-misleading-character-class -----
9084
9208
  type NoMisleadingCharacterClass = []|[{
@@ -9211,9 +9335,11 @@ type NoSequences = []|[{
9211
9335
  // ----- no-shadow -----
9212
9336
  type NoShadow = []|[{
9213
9337
  builtinGlobals?: boolean
9214
- hoist?: ("all" | "functions" | "never")
9338
+ hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types")
9215
9339
  allow?: string[]
9216
9340
  ignoreOnInitialization?: boolean
9341
+ ignoreTypeValueShadow?: boolean
9342
+ ignoreFunctionTypeParameterNameValueShadow?: boolean
9217
9343
  }]
9218
9344
  // ----- no-shadow-restricted-names -----
9219
9345
  type NoShadowRestrictedNames = []|[{
@@ -9291,11 +9417,18 @@ type NoUseBeforeDefine = []|[("nofunc" | {
9291
9417
  classes?: boolean
9292
9418
  variables?: boolean
9293
9419
  allowNamedExports?: boolean
9420
+ enums?: boolean
9421
+ typedefs?: boolean
9422
+ ignoreTypeReferences?: boolean
9294
9423
  })]
9295
9424
  // ----- no-useless-computed-key -----
9296
9425
  type NoUselessComputedKey = []|[{
9297
9426
  enforceForClassMembers?: boolean
9298
9427
  }]
9428
+ // ----- no-useless-escape -----
9429
+ type NoUselessEscape = []|[{
9430
+ allowRegexCharacters?: string[]
9431
+ }]
9299
9432
  // ----- no-useless-rename -----
9300
9433
  type NoUselessRename = []|[{
9301
9434
  ignoreDestructuring?: boolean
@@ -9456,7 +9589,38 @@ type NodeNoRestrictedRequire = []|[(string | {
9456
9589
  // ----- node/no-sync -----
9457
9590
  type NodeNoSync = []|[{
9458
9591
  allowAtRootLevel?: boolean
9459
- ignores?: string[]
9592
+ ignores?: (string | {
9593
+ from?: "file"
9594
+ path?: string
9595
+ name?: string[]
9596
+ } | {
9597
+ from?: "lib"
9598
+ name?: string[]
9599
+ } | {
9600
+ from?: "package"
9601
+ package?: string
9602
+ name?: string[]
9603
+ })[]
9604
+ }]
9605
+ // ----- node/no-top-level-await -----
9606
+ type NodeNoTopLevelAwait = []|[{
9607
+ ignoreBin?: boolean
9608
+ convertPath?: ({
9609
+
9610
+ [k: string]: [string, string]
9611
+ } | [{
9612
+
9613
+ include: [string, ...(string)[]]
9614
+ exclude?: string[]
9615
+
9616
+ replace: [string, string]
9617
+ }, ...({
9618
+
9619
+ include: [string, ...(string)[]]
9620
+ exclude?: string[]
9621
+
9622
+ replace: [string, string]
9623
+ })[]])
9460
9624
  }]
9461
9625
  // ----- node/no-unpublished-bin -----
9462
9626
  type NodeNoUnpublishedBin = []|[{
@@ -9710,8 +9874,7 @@ type PerfectionistSortArrayIncludes = {
9710
9874
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
9711
9875
 
9712
9876
  customGroups?: ({
9713
-
9714
- newlinesInside?: ("always" | "never")
9877
+ newlinesInside?: (("always" | "never") | number)
9715
9878
 
9716
9879
  fallbackSort?: {
9717
9880
 
@@ -9742,8 +9905,7 @@ type PerfectionistSortArrayIncludes = {
9742
9905
  } | string))
9743
9906
  }[]
9744
9907
  } | {
9745
-
9746
- newlinesInside?: ("always" | "never")
9908
+ newlinesInside?: (("always" | "never") | number)
9747
9909
 
9748
9910
  fallbackSort?: {
9749
9911
 
@@ -9826,12 +9988,12 @@ type PerfectionistSortArrayIncludes = {
9826
9988
  })
9827
9989
 
9828
9990
  partitionByNewLine?: boolean
9829
-
9830
- newlinesBetween?: ("ignore" | "always" | "never")
9991
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
9831
9992
 
9832
9993
  groups?: (string | string[] | {
9994
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
9833
9995
 
9834
- newlinesBetween: ("ignore" | "always" | "never")
9996
+ commentAbove?: string
9835
9997
  })[]
9836
9998
  }[]
9837
9999
  // ----- perfectionist/sort-classes -----
@@ -9857,8 +10019,7 @@ type PerfectionistSortClasses = []|[{
9857
10019
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9858
10020
 
9859
10021
  customGroups?: ({
9860
-
9861
- newlinesInside?: ("always" | "never")
10022
+ newlinesInside?: (("always" | "never") | number)
9862
10023
 
9863
10024
  fallbackSort?: {
9864
10025
 
@@ -9915,8 +10076,7 @@ type PerfectionistSortClasses = []|[{
9915
10076
  } | string))
9916
10077
  }[]
9917
10078
  } | {
9918
-
9919
- newlinesInside?: ("always" | "never")
10079
+ newlinesInside?: (("always" | "never") | number)
9920
10080
 
9921
10081
  fallbackSort?: {
9922
10082
 
@@ -10022,12 +10182,12 @@ type PerfectionistSortClasses = []|[{
10022
10182
  })
10023
10183
 
10024
10184
  partitionByNewLine?: boolean
10025
-
10026
- newlinesBetween?: ("ignore" | "always" | "never")
10185
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10027
10186
 
10028
10187
  groups?: (string | string[] | {
10188
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10029
10189
 
10030
- newlinesBetween: ("ignore" | "always" | "never")
10190
+ commentAbove?: string
10031
10191
  })[]
10032
10192
  }]
10033
10193
  // ----- perfectionist/sort-decorators -----
@@ -10104,8 +10264,9 @@ type PerfectionistSortDecorators = []|[{
10104
10264
  }
10105
10265
 
10106
10266
  groups?: (string | string[] | {
10267
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10107
10268
 
10108
- newlinesBetween: ("ignore" | "always" | "never")
10269
+ commentAbove?: string
10109
10270
  })[]
10110
10271
  }]
10111
10272
  // ----- perfectionist/sort-enums -----
@@ -10132,8 +10293,7 @@ type PerfectionistSortEnums = []|[{
10132
10293
  customGroups?: ({
10133
10294
  [k: string]: (string | string[]) | undefined
10134
10295
  } | ({
10135
-
10136
- newlinesInside?: ("always" | "never")
10296
+ newlinesInside?: (("always" | "never") | number)
10137
10297
 
10138
10298
  fallbackSort?: {
10139
10299
 
@@ -10174,8 +10334,7 @@ type PerfectionistSortEnums = []|[{
10174
10334
  } | string))
10175
10335
  }[]
10176
10336
  } | {
10177
-
10178
- newlinesInside?: ("always" | "never")
10337
+ newlinesInside?: (("always" | "never") | number)
10179
10338
 
10180
10339
  fallbackSort?: {
10181
10340
 
@@ -10257,12 +10416,12 @@ type PerfectionistSortEnums = []|[{
10257
10416
  })
10258
10417
 
10259
10418
  partitionByNewLine?: boolean
10260
-
10261
- newlinesBetween?: ("ignore" | "always" | "never")
10419
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10262
10420
 
10263
10421
  groups?: (string | string[] | {
10422
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10264
10423
 
10265
- newlinesBetween: ("ignore" | "always" | "never")
10424
+ commentAbove?: string
10266
10425
  })[]
10267
10426
  }]
10268
10427
  // ----- perfectionist/sort-exports -----
@@ -10290,8 +10449,7 @@ type PerfectionistSortExports = {
10290
10449
  groupKind?: ("mixed" | "values-first" | "types-first")
10291
10450
 
10292
10451
  customGroups?: ({
10293
-
10294
- newlinesInside?: ("always" | "never")
10452
+ newlinesInside?: (("always" | "never") | number)
10295
10453
 
10296
10454
  fallbackSort?: {
10297
10455
 
@@ -10324,8 +10482,7 @@ type PerfectionistSortExports = {
10324
10482
  } | string))
10325
10483
  }[]
10326
10484
  } | {
10327
-
10328
- newlinesInside?: ("always" | "never")
10485
+ newlinesInside?: (("always" | "never") | number)
10329
10486
 
10330
10487
  fallbackSort?: {
10331
10488
 
@@ -10395,12 +10552,12 @@ type PerfectionistSortExports = {
10395
10552
  })
10396
10553
 
10397
10554
  partitionByNewLine?: boolean
10398
-
10399
- newlinesBetween?: ("ignore" | "always" | "never")
10555
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10400
10556
 
10401
10557
  groups?: (string | string[] | {
10558
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10402
10559
 
10403
- newlinesBetween: ("ignore" | "always" | "never")
10560
+ commentAbove?: string
10404
10561
  })[]
10405
10562
  }[]
10406
10563
  // ----- perfectionist/sort-heritage-clauses -----
@@ -10430,8 +10587,9 @@ type PerfectionistSortHeritageClauses = []|[{
10430
10587
  }
10431
10588
 
10432
10589
  groups?: (string | string[] | {
10590
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10433
10591
 
10434
- newlinesBetween: ("ignore" | "always" | "never")
10592
+ commentAbove?: string
10435
10593
  })[]
10436
10594
  }]
10437
10595
  // ----- perfectionist/sort-imports -----
@@ -10465,8 +10623,7 @@ type PerfectionistSortImports = {
10465
10623
  [k: string]: (string | string[]) | undefined
10466
10624
  }
10467
10625
  } | ({
10468
-
10469
- newlinesInside?: ("always" | "never")
10626
+ newlinesInside?: (("always" | "never") | number)
10470
10627
 
10471
10628
  fallbackSort?: {
10472
10629
 
@@ -10511,8 +10668,7 @@ type PerfectionistSortImports = {
10511
10668
  } | string))
10512
10669
  }[]
10513
10670
  } | {
10514
-
10515
- newlinesInside?: ("always" | "never")
10671
+ newlinesInside?: (("always" | "never") | number)
10516
10672
 
10517
10673
  fallbackSort?: {
10518
10674
 
@@ -10555,6 +10711,12 @@ type PerfectionistSortImports = {
10555
10711
  flags?: string
10556
10712
  } | string))
10557
10713
  })[])
10714
+ tsconfig?: {
10715
+
10716
+ rootDir: string
10717
+
10718
+ filename?: string
10719
+ }
10558
10720
 
10559
10721
  maxLineLength?: number
10560
10722
 
@@ -10602,8 +10764,7 @@ type PerfectionistSortImports = {
10602
10764
  })
10603
10765
 
10604
10766
  partitionByNewLine?: boolean
10605
-
10606
- newlinesBetween?: ("ignore" | "always" | "never")
10767
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10607
10768
 
10608
10769
  internalPattern?: (({
10609
10770
 
@@ -10618,8 +10779,9 @@ type PerfectionistSortImports = {
10618
10779
  } | string))
10619
10780
 
10620
10781
  groups?: (string | string[] | {
10782
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10621
10783
 
10622
- newlinesBetween: ("ignore" | "always" | "never")
10784
+ commentAbove?: string
10623
10785
  })[]
10624
10786
  }[]
10625
10787
  // ----- perfectionist/sort-interfaces -----
@@ -10647,8 +10809,7 @@ type PerfectionistSortInterfaces = {
10647
10809
  customGroups?: ({
10648
10810
  [k: string]: (string | string[]) | undefined
10649
10811
  } | ({
10650
-
10651
- newlinesInside?: ("always" | "never")
10812
+ newlinesInside?: (("always" | "never") | number)
10652
10813
 
10653
10814
  fallbackSort?: {
10654
10815
 
@@ -10695,8 +10856,7 @@ type PerfectionistSortInterfaces = {
10695
10856
  sortBy?: ("name" | "value")
10696
10857
  }[]
10697
10858
  } | {
10698
-
10699
- newlinesInside?: ("always" | "never")
10859
+ newlinesInside?: (("always" | "never") | number)
10700
10860
 
10701
10861
  fallbackSort?: {
10702
10862
 
@@ -10809,8 +10969,7 @@ type PerfectionistSortInterfaces = {
10809
10969
  })
10810
10970
 
10811
10971
  partitionByNewLine?: boolean
10812
-
10813
- newlinesBetween?: ("ignore" | "always" | "never")
10972
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10814
10973
 
10815
10974
  ignorePattern?: (({
10816
10975
 
@@ -10826,8 +10985,9 @@ type PerfectionistSortInterfaces = {
10826
10985
  sortBy?: ("name" | "value")
10827
10986
 
10828
10987
  groups?: (string | string[] | {
10988
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10829
10989
 
10830
- newlinesBetween: ("ignore" | "always" | "never")
10990
+ commentAbove?: string
10831
10991
  })[]
10832
10992
  }[]
10833
10993
  // ----- perfectionist/sort-intersection-types -----
@@ -10853,8 +11013,7 @@ type PerfectionistSortIntersectionTypes = {
10853
11013
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
10854
11014
 
10855
11015
  customGroups?: ({
10856
-
10857
- newlinesInside?: ("always" | "never")
11016
+ newlinesInside?: (("always" | "never") | number)
10858
11017
 
10859
11018
  fallbackSort?: {
10860
11019
 
@@ -10885,8 +11044,7 @@ type PerfectionistSortIntersectionTypes = {
10885
11044
  } | string))
10886
11045
  }[]
10887
11046
  } | {
10888
-
10889
- newlinesInside?: ("always" | "never")
11047
+ newlinesInside?: (("always" | "never") | number)
10890
11048
 
10891
11049
  fallbackSort?: {
10892
11050
 
@@ -10954,12 +11112,12 @@ type PerfectionistSortIntersectionTypes = {
10954
11112
  })
10955
11113
 
10956
11114
  partitionByNewLine?: boolean
10957
-
10958
- newlinesBetween?: ("ignore" | "always" | "never")
11115
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10959
11116
 
10960
11117
  groups?: (string | string[] | {
11118
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
10961
11119
 
10962
- newlinesBetween: ("ignore" | "always" | "never")
11120
+ commentAbove?: string
10963
11121
  })[]
10964
11122
  }[]
10965
11123
  // ----- perfectionist/sort-jsx-props -----
@@ -10986,8 +11144,7 @@ type PerfectionistSortJsxProps = {
10986
11144
  customGroups?: ({
10987
11145
  [k: string]: (string | string[]) | undefined
10988
11146
  } | ({
10989
-
10990
- newlinesInside?: ("always" | "never")
11147
+ newlinesInside?: (("always" | "never") | number)
10991
11148
 
10992
11149
  fallbackSort?: {
10993
11150
 
@@ -11032,8 +11189,7 @@ type PerfectionistSortJsxProps = {
11032
11189
  } | string))
11033
11190
  }[]
11034
11191
  } | {
11035
-
11036
- newlinesInside?: ("always" | "never")
11192
+ newlinesInside?: (("always" | "never") | number)
11037
11193
 
11038
11194
  fallbackSort?: {
11039
11195
 
@@ -11105,8 +11261,7 @@ type PerfectionistSortJsxProps = {
11105
11261
  }
11106
11262
 
11107
11263
  partitionByNewLine?: boolean
11108
-
11109
- newlinesBetween?: ("ignore" | "always" | "never")
11264
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11110
11265
 
11111
11266
  ignorePattern?: (({
11112
11267
 
@@ -11121,8 +11276,9 @@ type PerfectionistSortJsxProps = {
11121
11276
  } | string))
11122
11277
 
11123
11278
  groups?: (string | string[] | {
11279
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11124
11280
 
11125
- newlinesBetween: ("ignore" | "always" | "never")
11281
+ commentAbove?: string
11126
11282
  })[]
11127
11283
  }[]
11128
11284
  // ----- perfectionist/sort-maps -----
@@ -11148,8 +11304,7 @@ type PerfectionistSortMaps = {
11148
11304
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11149
11305
 
11150
11306
  customGroups?: ({
11151
-
11152
- newlinesInside?: ("always" | "never")
11307
+ newlinesInside?: (("always" | "never") | number)
11153
11308
 
11154
11309
  fallbackSort?: {
11155
11310
 
@@ -11178,8 +11333,7 @@ type PerfectionistSortMaps = {
11178
11333
  } | string))
11179
11334
  }[]
11180
11335
  } | {
11181
-
11182
- newlinesInside?: ("always" | "never")
11336
+ newlinesInside?: (("always" | "never") | number)
11183
11337
 
11184
11338
  fallbackSort?: {
11185
11339
 
@@ -11260,12 +11414,12 @@ type PerfectionistSortMaps = {
11260
11414
  })
11261
11415
 
11262
11416
  partitionByNewLine?: boolean
11263
-
11264
- newlinesBetween?: ("ignore" | "always" | "never")
11417
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11265
11418
 
11266
11419
  groups?: (string | string[] | {
11420
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11267
11421
 
11268
- newlinesBetween: ("ignore" | "always" | "never")
11422
+ commentAbove?: string
11269
11423
  })[]
11270
11424
  }[]
11271
11425
  // ----- perfectionist/sort-modules -----
@@ -11291,8 +11445,7 @@ type PerfectionistSortModules = []|[{
11291
11445
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11292
11446
 
11293
11447
  customGroups?: ({
11294
-
11295
- newlinesInside?: ("always" | "never")
11448
+ newlinesInside?: (("always" | "never") | number)
11296
11449
 
11297
11450
  fallbackSort?: {
11298
11451
 
@@ -11337,8 +11490,7 @@ type PerfectionistSortModules = []|[{
11337
11490
  } | string))
11338
11491
  }[]
11339
11492
  } | {
11340
-
11341
- newlinesInside?: ("always" | "never")
11493
+ newlinesInside?: (("always" | "never") | number)
11342
11494
 
11343
11495
  fallbackSort?: {
11344
11496
 
@@ -11420,12 +11572,12 @@ type PerfectionistSortModules = []|[{
11420
11572
  })
11421
11573
 
11422
11574
  partitionByNewLine?: boolean
11423
-
11424
- newlinesBetween?: ("ignore" | "always" | "never")
11575
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11425
11576
 
11426
11577
  groups?: (string | string[] | {
11578
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11427
11579
 
11428
- newlinesBetween: ("ignore" | "always" | "never")
11580
+ commentAbove?: string
11429
11581
  })[]
11430
11582
  }]
11431
11583
  // ----- perfectionist/sort-named-exports -----
@@ -11455,8 +11607,7 @@ type PerfectionistSortNamedExports = {
11455
11607
  ignoreAlias?: boolean
11456
11608
 
11457
11609
  customGroups?: ({
11458
-
11459
- newlinesInside?: ("always" | "never")
11610
+ newlinesInside?: (("always" | "never") | number)
11460
11611
 
11461
11612
  fallbackSort?: {
11462
11613
 
@@ -11489,8 +11640,7 @@ type PerfectionistSortNamedExports = {
11489
11640
  } | string))
11490
11641
  }[]
11491
11642
  } | {
11492
-
11493
- newlinesInside?: ("always" | "never")
11643
+ newlinesInside?: (("always" | "never") | number)
11494
11644
 
11495
11645
  fallbackSort?: {
11496
11646
 
@@ -11560,12 +11710,12 @@ type PerfectionistSortNamedExports = {
11560
11710
  })
11561
11711
 
11562
11712
  partitionByNewLine?: boolean
11563
-
11564
- newlinesBetween?: ("ignore" | "always" | "never")
11713
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11565
11714
 
11566
11715
  groups?: (string | string[] | {
11716
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11567
11717
 
11568
- newlinesBetween: ("ignore" | "always" | "never")
11718
+ commentAbove?: string
11569
11719
  })[]
11570
11720
  }[]
11571
11721
  // ----- perfectionist/sort-named-imports -----
@@ -11595,8 +11745,7 @@ type PerfectionistSortNamedImports = {
11595
11745
  ignoreAlias?: boolean
11596
11746
 
11597
11747
  customGroups?: ({
11598
-
11599
- newlinesInside?: ("always" | "never")
11748
+ newlinesInside?: (("always" | "never") | number)
11600
11749
 
11601
11750
  fallbackSort?: {
11602
11751
 
@@ -11629,8 +11778,7 @@ type PerfectionistSortNamedImports = {
11629
11778
  } | string))
11630
11779
  }[]
11631
11780
  } | {
11632
-
11633
- newlinesInside?: ("always" | "never")
11781
+ newlinesInside?: (("always" | "never") | number)
11634
11782
 
11635
11783
  fallbackSort?: {
11636
11784
 
@@ -11700,12 +11848,12 @@ type PerfectionistSortNamedImports = {
11700
11848
  })
11701
11849
 
11702
11850
  partitionByNewLine?: boolean
11703
-
11704
- newlinesBetween?: ("ignore" | "always" | "never")
11851
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11705
11852
 
11706
11853
  groups?: (string | string[] | {
11854
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11707
11855
 
11708
- newlinesBetween: ("ignore" | "always" | "never")
11856
+ commentAbove?: string
11709
11857
  })[]
11710
11858
  }[]
11711
11859
  // ----- perfectionist/sort-object-types -----
@@ -11733,8 +11881,7 @@ type PerfectionistSortObjectTypes = {
11733
11881
  customGroups?: ({
11734
11882
  [k: string]: (string | string[]) | undefined
11735
11883
  } | ({
11736
-
11737
- newlinesInside?: ("always" | "never")
11884
+ newlinesInside?: (("always" | "never") | number)
11738
11885
 
11739
11886
  fallbackSort?: {
11740
11887
 
@@ -11781,8 +11928,7 @@ type PerfectionistSortObjectTypes = {
11781
11928
  sortBy?: ("name" | "value")
11782
11929
  }[]
11783
11930
  } | {
11784
-
11785
- newlinesInside?: ("always" | "never")
11931
+ newlinesInside?: (("always" | "never") | number)
11786
11932
 
11787
11933
  fallbackSort?: {
11788
11934
 
@@ -11895,8 +12041,7 @@ type PerfectionistSortObjectTypes = {
11895
12041
  })
11896
12042
 
11897
12043
  partitionByNewLine?: boolean
11898
-
11899
- newlinesBetween?: ("ignore" | "always" | "never")
12044
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11900
12045
 
11901
12046
  ignorePattern?: (({
11902
12047
 
@@ -11912,8 +12057,9 @@ type PerfectionistSortObjectTypes = {
11912
12057
  sortBy?: ("name" | "value")
11913
12058
 
11914
12059
  groups?: (string | string[] | {
12060
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
11915
12061
 
11916
- newlinesBetween: ("ignore" | "always" | "never")
12062
+ commentAbove?: string
11917
12063
  })[]
11918
12064
  }[]
11919
12065
  // ----- perfectionist/sort-objects -----
@@ -11945,8 +12091,7 @@ type PerfectionistSortObjects = {
11945
12091
  customGroups?: ({
11946
12092
  [k: string]: (string | string[]) | undefined
11947
12093
  } | ({
11948
-
11949
- newlinesInside?: ("always" | "never")
12094
+ newlinesInside?: (("always" | "never") | number)
11950
12095
 
11951
12096
  fallbackSort?: {
11952
12097
 
@@ -11991,8 +12136,7 @@ type PerfectionistSortObjects = {
11991
12136
  } | string))
11992
12137
  }[]
11993
12138
  } | {
11994
-
11995
- newlinesInside?: ("always" | "never")
12139
+ newlinesInside?: (("always" | "never") | number)
11996
12140
 
11997
12141
  fallbackSort?: {
11998
12142
 
@@ -12107,8 +12251,7 @@ type PerfectionistSortObjects = {
12107
12251
  })
12108
12252
 
12109
12253
  partitionByNewLine?: boolean
12110
-
12111
- newlinesBetween?: ("ignore" | "always" | "never")
12254
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12112
12255
 
12113
12256
  ignorePattern?: (({
12114
12257
 
@@ -12123,8 +12266,9 @@ type PerfectionistSortObjects = {
12123
12266
  } | string))
12124
12267
 
12125
12268
  groups?: (string | string[] | {
12269
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12126
12270
 
12127
- newlinesBetween: ("ignore" | "always" | "never")
12271
+ commentAbove?: string
12128
12272
  })[]
12129
12273
  }[]
12130
12274
  // ----- perfectionist/sort-sets -----
@@ -12152,8 +12296,7 @@ type PerfectionistSortSets = {
12152
12296
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
12153
12297
 
12154
12298
  customGroups?: ({
12155
-
12156
- newlinesInside?: ("always" | "never")
12299
+ newlinesInside?: (("always" | "never") | number)
12157
12300
 
12158
12301
  fallbackSort?: {
12159
12302
 
@@ -12184,8 +12327,7 @@ type PerfectionistSortSets = {
12184
12327
  } | string))
12185
12328
  }[]
12186
12329
  } | {
12187
-
12188
- newlinesInside?: ("always" | "never")
12330
+ newlinesInside?: (("always" | "never") | number)
12189
12331
 
12190
12332
  fallbackSort?: {
12191
12333
 
@@ -12268,12 +12410,12 @@ type PerfectionistSortSets = {
12268
12410
  })
12269
12411
 
12270
12412
  partitionByNewLine?: boolean
12271
-
12272
- newlinesBetween?: ("ignore" | "always" | "never")
12413
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12273
12414
 
12274
12415
  groups?: (string | string[] | {
12416
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12275
12417
 
12276
- newlinesBetween: ("ignore" | "always" | "never")
12418
+ commentAbove?: string
12277
12419
  })[]
12278
12420
  }[]
12279
12421
  // ----- perfectionist/sort-switch-case -----
@@ -12321,8 +12463,7 @@ type PerfectionistSortUnionTypes = {
12321
12463
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12322
12464
 
12323
12465
  customGroups?: ({
12324
-
12325
- newlinesInside?: ("always" | "never")
12466
+ newlinesInside?: (("always" | "never") | number)
12326
12467
 
12327
12468
  fallbackSort?: {
12328
12469
 
@@ -12353,8 +12494,7 @@ type PerfectionistSortUnionTypes = {
12353
12494
  } | string))
12354
12495
  }[]
12355
12496
  } | {
12356
-
12357
- newlinesInside?: ("always" | "never")
12497
+ newlinesInside?: (("always" | "never") | number)
12358
12498
 
12359
12499
  fallbackSort?: {
12360
12500
 
@@ -12422,12 +12562,12 @@ type PerfectionistSortUnionTypes = {
12422
12562
  })
12423
12563
 
12424
12564
  partitionByNewLine?: boolean
12425
-
12426
- newlinesBetween?: ("ignore" | "always" | "never")
12565
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12427
12566
 
12428
12567
  groups?: (string | string[] | {
12568
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12429
12569
 
12430
- newlinesBetween: ("ignore" | "always" | "never")
12570
+ commentAbove?: string
12431
12571
  })[]
12432
12572
  }[]
12433
12573
  // ----- perfectionist/sort-variable-declarations -----
@@ -12453,8 +12593,7 @@ type PerfectionistSortVariableDeclarations = []|[{
12453
12593
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12454
12594
 
12455
12595
  customGroups?: ({
12456
-
12457
- newlinesInside?: ("always" | "never")
12596
+ newlinesInside?: (("always" | "never") | number)
12458
12597
 
12459
12598
  fallbackSort?: {
12460
12599
 
@@ -12485,8 +12624,7 @@ type PerfectionistSortVariableDeclarations = []|[{
12485
12624
  } | string))
12486
12625
  }[]
12487
12626
  } | {
12488
-
12489
- newlinesInside?: ("always" | "never")
12627
+ newlinesInside?: (("always" | "never") | number)
12490
12628
 
12491
12629
  fallbackSort?: {
12492
12630
 
@@ -12554,12 +12692,12 @@ type PerfectionistSortVariableDeclarations = []|[{
12554
12692
  })
12555
12693
 
12556
12694
  partitionByNewLine?: boolean
12557
-
12558
- newlinesBetween?: ("ignore" | "always" | "never")
12695
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12559
12696
 
12560
12697
  groups?: (string | string[] | {
12698
+ newlinesBetween?: (("ignore" | "always" | "never") | number)
12561
12699
 
12562
- newlinesBetween: ("ignore" | "always" | "never")
12700
+ commentAbove?: string
12563
12701
  })[]
12564
12702
  }]
12565
12703
  // ----- prefer-arrow-callback -----
@@ -13246,6 +13384,10 @@ type RegexpPreferLookaround = []|[{
13246
13384
  type RegexpPreferNamedReplacement = []|[{
13247
13385
  strictTypes?: boolean
13248
13386
  }]
13387
+ // ----- regexp/prefer-quantifier -----
13388
+ type RegexpPreferQuantifier = []|[{
13389
+ allows?: string[]
13390
+ }]
13249
13391
  // ----- regexp/prefer-range -----
13250
13392
  type RegexpPreferRange = []|[{
13251
13393
  target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])