@sxzz/eslint-config 7.0.2 → 7.0.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +248 -121
  2. package/package.json +20 -20
package/dist/index.d.ts CHANGED
@@ -1073,233 +1073,233 @@ interface Rules {
1073
1073
  "implicit-arrow-linebreak"?: Linter.RuleEntry<ImplicitArrowLinebreak>;
1074
1074
  /**
1075
1075
  * Enforce or ban the use of inline type-only markers for named imports.
1076
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/consistent-type-specifier-style.md
1076
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/consistent-type-specifier-style.md
1077
1077
  */
1078
1078
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
1079
1079
  /**
1080
1080
  * Ensure a default export is present, given a default import.
1081
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/default.md
1081
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/default.md
1082
1082
  */
1083
1083
  "import/default"?: Linter.RuleEntry<[]>;
1084
1084
  /**
1085
1085
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1086
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/dynamic-import-chunkname.md
1086
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/dynamic-import-chunkname.md
1087
1087
  */
1088
1088
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
1089
1089
  /**
1090
1090
  * Forbid any invalid exports, i.e. re-export of the same name.
1091
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/export.md
1091
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/export.md
1092
1092
  */
1093
1093
  "import/export"?: Linter.RuleEntry<[]>;
1094
1094
  /**
1095
1095
  * Ensure all exports appear after other statements.
1096
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/exports-last.md
1096
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/exports-last.md
1097
1097
  */
1098
1098
  "import/exports-last"?: Linter.RuleEntry<[]>;
1099
1099
  /**
1100
1100
  * Ensure consistent use of file extension within the import path.
1101
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/extensions.md
1101
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/extensions.md
1102
1102
  */
1103
1103
  "import/extensions"?: Linter.RuleEntry<ImportExtensions>;
1104
1104
  /**
1105
1105
  * Ensure all imports appear before other statements.
1106
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/first.md
1106
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/first.md
1107
1107
  */
1108
1108
  "import/first"?: Linter.RuleEntry<ImportFirst>;
1109
1109
  /**
1110
1110
  * Prefer named exports to be grouped together in a single export declaration.
1111
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/group-exports.md
1111
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/group-exports.md
1112
1112
  */
1113
1113
  "import/group-exports"?: Linter.RuleEntry<[]>;
1114
1114
  /**
1115
1115
  * Replaced by `import-x/first`.
1116
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/imports-first.md
1116
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/imports-first.md
1117
1117
  * @deprecated
1118
1118
  */
1119
1119
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
1120
1120
  /**
1121
1121
  * Enforce the maximum number of dependencies a module can have.
1122
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/max-dependencies.md
1122
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/max-dependencies.md
1123
1123
  */
1124
1124
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
1125
1125
  /**
1126
1126
  * Ensure named imports correspond to a named export in the remote file.
1127
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/named.md
1127
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/named.md
1128
1128
  */
1129
1129
  "import/named"?: Linter.RuleEntry<ImportNamed>;
1130
1130
  /**
1131
1131
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1132
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/namespace.md
1132
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/namespace.md
1133
1133
  */
1134
1134
  "import/namespace"?: Linter.RuleEntry<ImportNamespace>;
1135
1135
  /**
1136
1136
  * Enforce a newline after import statements.
1137
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/newline-after-import.md
1137
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/newline-after-import.md
1138
1138
  */
1139
1139
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
1140
1140
  /**
1141
1141
  * Forbid import of modules using absolute paths.
1142
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-absolute-path.md
1142
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-absolute-path.md
1143
1143
  */
1144
1144
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
1145
1145
  /**
1146
1146
  * Forbid AMD `require` and `define` calls.
1147
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-amd.md
1147
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-amd.md
1148
1148
  */
1149
1149
  "import/no-amd"?: Linter.RuleEntry<[]>;
1150
1150
  /**
1151
1151
  * Forbid anonymous values as default exports.
1152
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-anonymous-default-export.md
1152
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-anonymous-default-export.md
1153
1153
  */
1154
1154
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
1155
1155
  /**
1156
1156
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1157
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-commonjs.md
1157
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-commonjs.md
1158
1158
  */
1159
1159
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
1160
1160
  /**
1161
1161
  * Forbid a module from importing a module with a dependency path back to itself.
1162
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-cycle.md
1162
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-cycle.md
1163
1163
  */
1164
1164
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
1165
1165
  /**
1166
1166
  * Forbid default exports.
1167
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-default-export.md
1167
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-default-export.md
1168
1168
  */
1169
1169
  "import/no-default-export"?: Linter.RuleEntry<[]>;
1170
1170
  /**
1171
1171
  * Forbid imported names marked with `@deprecated` documentation tag.
1172
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-deprecated.md
1172
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-deprecated.md
1173
1173
  */
1174
1174
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
1175
1175
  /**
1176
1176
  * Forbid repeated import of the same module in multiple places.
1177
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-duplicates.md
1177
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-duplicates.md
1178
1178
  */
1179
1179
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
1180
1180
  /**
1181
1181
  * Forbid `require()` calls with expressions.
1182
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-dynamic-require.md
1182
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-dynamic-require.md
1183
1183
  */
1184
1184
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
1185
1185
  /**
1186
1186
  * Forbid empty named import blocks.
1187
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-empty-named-blocks.md
1187
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-empty-named-blocks.md
1188
1188
  */
1189
1189
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
1190
1190
  /**
1191
1191
  * Forbid the use of extraneous packages.
1192
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-extraneous-dependencies.md
1192
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-extraneous-dependencies.md
1193
1193
  */
1194
1194
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
1195
1195
  /**
1196
1196
  * Forbid import statements with CommonJS module.exports.
1197
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-import-module-exports.md
1197
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-import-module-exports.md
1198
1198
  */
1199
1199
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
1200
1200
  /**
1201
1201
  * Forbid importing the submodules of other modules.
1202
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-internal-modules.md
1202
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-internal-modules.md
1203
1203
  */
1204
1204
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
1205
1205
  /**
1206
1206
  * Forbid the use of mutable exports with `var` or `let`.
1207
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-mutable-exports.md
1207
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-mutable-exports.md
1208
1208
  */
1209
1209
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
1210
1210
  /**
1211
1211
  * Forbid use of exported name as identifier of default export.
1212
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-named-as-default.md
1212
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default.md
1213
1213
  */
1214
1214
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
1215
1215
  /**
1216
1216
  * Forbid use of exported name as property of default export.
1217
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-named-as-default-member.md
1217
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default-member.md
1218
1218
  */
1219
1219
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
1220
1220
  /**
1221
1221
  * Forbid named default exports.
1222
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-named-default.md
1222
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-default.md
1223
1223
  */
1224
1224
  "import/no-named-default"?: Linter.RuleEntry<[]>;
1225
1225
  /**
1226
1226
  * Forbid named exports.
1227
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-named-export.md
1227
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-export.md
1228
1228
  */
1229
1229
  "import/no-named-export"?: Linter.RuleEntry<[]>;
1230
1230
  /**
1231
1231
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1232
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-namespace.md
1232
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-namespace.md
1233
1233
  */
1234
1234
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
1235
1235
  /**
1236
1236
  * Forbid Node.js builtin modules.
1237
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-nodejs-modules.md
1237
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-nodejs-modules.md
1238
1238
  */
1239
1239
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
1240
1240
  /**
1241
1241
  * Forbid importing packages through relative paths.
1242
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-relative-packages.md
1242
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-packages.md
1243
1243
  */
1244
1244
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
1245
1245
  /**
1246
1246
  * Forbid importing modules from parent directories.
1247
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-relative-parent-imports.md
1247
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-parent-imports.md
1248
1248
  */
1249
1249
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
1250
1250
  /**
1251
1251
  * Forbid importing a default export by a different name.
1252
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-rename-default.md
1252
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-rename-default.md
1253
1253
  */
1254
1254
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
1255
1255
  /**
1256
1256
  * Enforce which files can be imported in a given folder.
1257
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-restricted-paths.md
1257
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-restricted-paths.md
1258
1258
  */
1259
1259
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
1260
1260
  /**
1261
1261
  * Forbid a module from importing itself.
1262
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-self-import.md
1262
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-self-import.md
1263
1263
  */
1264
1264
  "import/no-self-import"?: Linter.RuleEntry<[]>;
1265
1265
  /**
1266
1266
  * Forbid unassigned imports.
1267
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-unassigned-import.md
1267
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unassigned-import.md
1268
1268
  */
1269
1269
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
1270
1270
  /**
1271
1271
  * Ensure imports point to a file/module that can be resolved.
1272
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-unresolved.md
1272
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unresolved.md
1273
1273
  */
1274
1274
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
1275
1275
  /**
1276
1276
  * Forbid modules without exports, or exports without matching import in another module.
1277
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-unused-modules.md
1277
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unused-modules.md
1278
1278
  */
1279
1279
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
1280
1280
  /**
1281
1281
  * Forbid unnecessary path segments in import and require statements.
1282
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-useless-path-segments.md
1282
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-useless-path-segments.md
1283
1283
  */
1284
1284
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
1285
1285
  /**
1286
1286
  * Forbid webpack loader syntax in imports.
1287
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/no-webpack-loader-syntax.md
1287
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-webpack-loader-syntax.md
1288
1288
  */
1289
1289
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
1290
1290
  /**
1291
1291
  * Enforce a convention in module import order.
1292
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/order.md
1292
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/order.md
1293
1293
  */
1294
1294
  "import/order"?: Linter.RuleEntry<ImportOrder>;
1295
1295
  /**
1296
1296
  * Prefer a default export if module exports a single name or multiple names.
1297
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/prefer-default-export.md
1297
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/prefer-default-export.md
1298
1298
  */
1299
1299
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
1300
1300
  /**
1301
1301
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1302
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.0/docs/rules/unambiguous.md
1302
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/unambiguous.md
1303
1303
  */
1304
1304
  "import/unambiguous"?: Linter.RuleEntry<[]>;
1305
1305
  /**
@@ -1888,10 +1888,30 @@ interface Rules {
1888
1888
  */
1889
1889
  "markdown/heading-increment"?: Linter.RuleEntry<[]>;
1890
1890
  /**
1891
+ * Disallow bare URLs
1892
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
1893
+ */
1894
+ "markdown/no-bare-urls"?: Linter.RuleEntry<[]>;
1895
+ /**
1896
+ * Disallow duplicate definitions
1897
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
1898
+ */
1899
+ "markdown/no-duplicate-definitions"?: Linter.RuleEntry<MarkdownNoDuplicateDefinitions>;
1900
+ /**
1891
1901
  * Disallow duplicate headings in the same document
1892
1902
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
1893
1903
  */
1894
- "markdown/no-duplicate-headings"?: Linter.RuleEntry<[]>;
1904
+ "markdown/no-duplicate-headings"?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>;
1905
+ /**
1906
+ * Disallow empty definitions
1907
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
1908
+ */
1909
+ "markdown/no-empty-definitions"?: Linter.RuleEntry<[]>;
1910
+ /**
1911
+ * Disallow empty images
1912
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
1913
+ */
1914
+ "markdown/no-empty-images"?: Linter.RuleEntry<[]>;
1895
1915
  /**
1896
1916
  * Disallow empty links
1897
1917
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
@@ -1908,11 +1928,41 @@ interface Rules {
1908
1928
  */
1909
1929
  "markdown/no-invalid-label-refs"?: Linter.RuleEntry<[]>;
1910
1930
  /**
1931
+ * Disallow headings without a space after the hash characters
1932
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
1933
+ */
1934
+ "markdown/no-missing-atx-heading-space"?: Linter.RuleEntry<[]>;
1935
+ /**
1911
1936
  * Disallow missing label references
1912
1937
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
1913
1938
  */
1914
1939
  "markdown/no-missing-label-refs"?: Linter.RuleEntry<[]>;
1915
1940
  /**
1941
+ * Disallow link fragments that do not reference valid headings
1942
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
1943
+ */
1944
+ "markdown/no-missing-link-fragments"?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>;
1945
+ /**
1946
+ * Disallow multiple H1 headings in the same document
1947
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
1948
+ */
1949
+ "markdown/no-multiple-h1"?: Linter.RuleEntry<MarkdownNoMultipleH1>;
1950
+ /**
1951
+ * Disallow reversed link and image syntax
1952
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
1953
+ */
1954
+ "markdown/no-reversed-media-syntax"?: Linter.RuleEntry<[]>;
1955
+ /**
1956
+ * Require alternative text for images
1957
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
1958
+ */
1959
+ "markdown/require-alt-text"?: Linter.RuleEntry<[]>;
1960
+ /**
1961
+ * Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
1962
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
1963
+ */
1964
+ "markdown/table-column-count"?: Linter.RuleEntry<[]>;
1965
+ /**
1916
1966
  * Enforce a maximum number of classes per file
1917
1967
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
1918
1968
  */
@@ -2918,6 +2968,11 @@ interface Rules {
2918
2968
  */
2919
2969
  "node/no-sync"?: Linter.RuleEntry<NodeNoSync>;
2920
2970
  /**
2971
+ * disallow top-level `await` in published modules
2972
+ * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
2973
+ */
2974
+ "node/no-top-level-await"?: Linter.RuleEntry<NodeNoTopLevelAwait>;
2975
+ /**
2921
2976
  * disallow `bin` files that npm ignores
2922
2977
  * @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
2923
2978
  */
@@ -3602,7 +3657,7 @@ interface Rules {
3602
3657
  * enforce using quantifier
3603
3658
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
3604
3659
  */
3605
- "regexp/prefer-quantifier"?: Linter.RuleEntry<[]>;
3660
+ "regexp/prefer-quantifier"?: Linter.RuleEntry<RegexpPreferQuantifier>;
3606
3661
  /**
3607
3662
  * enforce using `?` quantifier
3608
3663
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
@@ -7492,10 +7547,10 @@ type JsdocCheckLineAlignment = [] | [("always" | "never" | "any")] | [("always"
7492
7547
  postTag?: number;
7493
7548
  postType?: number;
7494
7549
  };
7550
+ disableWrapIndent?: boolean;
7495
7551
  preserveMainDescriptionPostDelimiter?: boolean;
7496
7552
  tags?: string[];
7497
7553
  wrapIndent?: string;
7498
- disableWrapIndent?: boolean;
7499
7554
  }];
7500
7555
  // ----- jsdoc/check-param-names -----
7501
7556
  type JsdocCheckParamNames = [] | [{
@@ -7578,6 +7633,7 @@ type JsdocLinesBeforeBlock = [] | [{
7578
7633
  checkBlockStarts?: boolean;
7579
7634
  excludedTags?: string[];
7580
7635
  ignoreSameLine?: boolean;
7636
+ ignoreSingleLines?: boolean;
7581
7637
  lines?: number;
7582
7638
  }];
7583
7639
  // ----- jsdoc/match-description -----
@@ -8573,10 +8629,28 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
8573
8629
  type MarkdownFencedCodeLanguage = [] | [{
8574
8630
  required?: string[];
8575
8631
  }];
8632
+ // ----- markdown/no-duplicate-definitions -----
8633
+ type MarkdownNoDuplicateDefinitions = [] | [{
8634
+ allowDefinitions?: string[];
8635
+ allowFootnoteDefinitions?: string[];
8636
+ }];
8637
+ // ----- markdown/no-duplicate-headings -----
8638
+ type MarkdownNoDuplicateHeadings = [] | [{
8639
+ checkSiblingsOnly?: boolean;
8640
+ }];
8576
8641
  // ----- markdown/no-html -----
8577
8642
  type MarkdownNoHtml = [] | [{
8578
8643
  allowed?: string[];
8579
8644
  }];
8645
+ // ----- markdown/no-missing-link-fragments -----
8646
+ type MarkdownNoMissingLinkFragments = [] | [{
8647
+ ignoreCase?: boolean;
8648
+ allowPattern?: string;
8649
+ }];
8650
+ // ----- markdown/no-multiple-h1 -----
8651
+ type MarkdownNoMultipleH1 = [] | [{
8652
+ frontmatterTitle?: string;
8653
+ }];
8580
8654
  // ----- max-classes-per-file -----
8581
8655
  type MaxClassesPerFile = [] | [(number | {
8582
8656
  ignoreExpressions?: boolean;
@@ -9217,7 +9291,33 @@ type NodeNoRestrictedRequire = [] | [(string | {
9217
9291
  // ----- node/no-sync -----
9218
9292
  type NodeNoSync = [] | [{
9219
9293
  allowAtRootLevel?: boolean;
9220
- ignores?: string[];
9294
+ ignores?: (string | {
9295
+ from?: "file";
9296
+ path?: string;
9297
+ name?: string[];
9298
+ } | {
9299
+ from?: "lib";
9300
+ name?: string[];
9301
+ } | {
9302
+ from?: "package";
9303
+ package?: string;
9304
+ name?: string[];
9305
+ })[];
9306
+ }];
9307
+ // ----- node/no-top-level-await -----
9308
+ type NodeNoTopLevelAwait = [] | [{
9309
+ ignoreBin?: boolean;
9310
+ convertPath?: ({
9311
+ [k: string]: [string, string];
9312
+ } | [{
9313
+ include: [string, ...(string)[]];
9314
+ exclude?: string[];
9315
+ replace: [string, string];
9316
+ }, ...({
9317
+ include: [string, ...(string)[]];
9318
+ exclude?: string[];
9319
+ replace: [string, string];
9320
+ })[]]);
9221
9321
  }];
9222
9322
  // ----- node/no-unpublished-bin -----
9223
9323
  type NodeNoUnpublishedBin = [] | [{
@@ -9440,7 +9540,7 @@ type PerfectionistSortArrayIncludes = {
9440
9540
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9441
9541
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9442
9542
  customGroups?: ({
9443
- newlinesInside?: ("always" | "never");
9543
+ newlinesInside?: (("always" | "never") | number);
9444
9544
  fallbackSort?: {
9445
9545
  order?: ("asc" | "desc");
9446
9546
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9459,7 +9559,7 @@ type PerfectionistSortArrayIncludes = {
9459
9559
  } | string));
9460
9560
  }[];
9461
9561
  } | {
9462
- newlinesInside?: ("always" | "never");
9562
+ newlinesInside?: (("always" | "never") | number);
9463
9563
  fallbackSort?: {
9464
9564
  order?: ("asc" | "desc");
9465
9565
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9508,9 +9608,10 @@ type PerfectionistSortArrayIncludes = {
9508
9608
  } | string)));
9509
9609
  });
9510
9610
  partitionByNewLine?: boolean;
9511
- newlinesBetween?: ("ignore" | "always" | "never");
9611
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9512
9612
  groups?: (string | string[] | {
9513
- newlinesBetween: ("ignore" | "always" | "never");
9613
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9614
+ commentAbove?: string;
9514
9615
  })[];
9515
9616
  }[];
9516
9617
  // ----- perfectionist/sort-classes -----
@@ -9526,7 +9627,7 @@ type PerfectionistSortClasses = [] | [{
9526
9627
  order?: ("asc" | "desc");
9527
9628
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9528
9629
  customGroups?: ({
9529
- newlinesInside?: ("always" | "never");
9630
+ newlinesInside?: (("always" | "never") | number);
9530
9631
  fallbackSort?: {
9531
9632
  order?: ("asc" | "desc");
9532
9633
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9560,7 +9661,7 @@ type PerfectionistSortClasses = [] | [{
9560
9661
  } | string));
9561
9662
  }[];
9562
9663
  } | {
9563
- newlinesInside?: ("always" | "never");
9664
+ newlinesInside?: (("always" | "never") | number);
9564
9665
  fallbackSort?: {
9565
9666
  order?: ("asc" | "desc");
9566
9667
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9622,9 +9723,10 @@ type PerfectionistSortClasses = [] | [{
9622
9723
  } | string)));
9623
9724
  });
9624
9725
  partitionByNewLine?: boolean;
9625
- newlinesBetween?: ("ignore" | "always" | "never");
9726
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9626
9727
  groups?: (string | string[] | {
9627
- newlinesBetween: ("ignore" | "always" | "never");
9728
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9729
+ commentAbove?: string;
9628
9730
  })[];
9629
9731
  }];
9630
9732
  // ----- perfectionist/sort-decorators -----
@@ -9670,7 +9772,8 @@ type PerfectionistSortDecorators = [] | [{
9670
9772
  [k: string]: (string | string[]) | undefined;
9671
9773
  };
9672
9774
  groups?: (string | string[] | {
9673
- newlinesBetween: ("ignore" | "always" | "never");
9775
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9776
+ commentAbove?: string;
9674
9777
  })[];
9675
9778
  }];
9676
9779
  // ----- perfectionist/sort-enums -----
@@ -9688,7 +9791,7 @@ type PerfectionistSortEnums = [] | [{
9688
9791
  customGroups?: ({
9689
9792
  [k: string]: (string | string[]) | undefined;
9690
9793
  } | ({
9691
- newlinesInside?: ("always" | "never");
9794
+ newlinesInside?: (("always" | "never") | number);
9692
9795
  fallbackSort?: {
9693
9796
  order?: ("asc" | "desc");
9694
9797
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9713,7 +9816,7 @@ type PerfectionistSortEnums = [] | [{
9713
9816
  } | string));
9714
9817
  }[];
9715
9818
  } | {
9716
- newlinesInside?: ("always" | "never");
9819
+ newlinesInside?: (("always" | "never") | number);
9717
9820
  fallbackSort?: {
9718
9821
  order?: ("asc" | "desc");
9719
9822
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9761,9 +9864,10 @@ type PerfectionistSortEnums = [] | [{
9761
9864
  } | string)));
9762
9865
  });
9763
9866
  partitionByNewLine?: boolean;
9764
- newlinesBetween?: ("ignore" | "always" | "never");
9867
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9765
9868
  groups?: (string | string[] | {
9766
- newlinesBetween: ("ignore" | "always" | "never");
9869
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9870
+ commentAbove?: string;
9767
9871
  })[];
9768
9872
  }];
9769
9873
  // ----- perfectionist/sort-exports -----
@@ -9780,7 +9884,7 @@ type PerfectionistSortExports = {
9780
9884
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9781
9885
  groupKind?: ("mixed" | "values-first" | "types-first");
9782
9886
  customGroups?: ({
9783
- newlinesInside?: ("always" | "never");
9887
+ newlinesInside?: (("always" | "never") | number);
9784
9888
  fallbackSort?: {
9785
9889
  order?: ("asc" | "desc");
9786
9890
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9800,7 +9904,7 @@ type PerfectionistSortExports = {
9800
9904
  } | string));
9801
9905
  }[];
9802
9906
  } | {
9803
- newlinesInside?: ("always" | "never");
9907
+ newlinesInside?: (("always" | "never") | number);
9804
9908
  fallbackSort?: {
9805
9909
  order?: ("asc" | "desc");
9806
9910
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9841,9 +9945,10 @@ type PerfectionistSortExports = {
9841
9945
  } | string)));
9842
9946
  });
9843
9947
  partitionByNewLine?: boolean;
9844
- newlinesBetween?: ("ignore" | "always" | "never");
9948
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9845
9949
  groups?: (string | string[] | {
9846
- newlinesBetween: ("ignore" | "always" | "never");
9950
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9951
+ commentAbove?: string;
9847
9952
  })[];
9848
9953
  }[];
9849
9954
  // ----- perfectionist/sort-heritage-clauses -----
@@ -9862,7 +9967,8 @@ type PerfectionistSortHeritageClauses = [] | [{
9862
9967
  [k: string]: (string | string[]) | undefined;
9863
9968
  };
9864
9969
  groups?: (string | string[] | {
9865
- newlinesBetween: ("ignore" | "always" | "never");
9970
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9971
+ commentAbove?: string;
9866
9972
  })[];
9867
9973
  }];
9868
9974
  // ----- perfectionist/sort-imports -----
@@ -9885,7 +9991,7 @@ type PerfectionistSortImports = {
9885
9991
  [k: string]: (string | string[]) | undefined;
9886
9992
  };
9887
9993
  } | ({
9888
- newlinesInside?: ("always" | "never");
9994
+ newlinesInside?: (("always" | "never") | number);
9889
9995
  fallbackSort?: {
9890
9996
  order?: ("asc" | "desc");
9891
9997
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9912,7 +10018,7 @@ type PerfectionistSortImports = {
9912
10018
  } | string));
9913
10019
  }[];
9914
10020
  } | {
9915
- newlinesInside?: ("always" | "never");
10021
+ newlinesInside?: (("always" | "never") | number);
9916
10022
  fallbackSort?: {
9917
10023
  order?: ("asc" | "desc");
9918
10024
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -9937,6 +10043,10 @@ type PerfectionistSortImports = {
9937
10043
  flags?: string;
9938
10044
  } | string));
9939
10045
  })[]);
10046
+ tsconfig?: {
10047
+ rootDir: string;
10048
+ filename?: string;
10049
+ };
9940
10050
  maxLineLength?: number;
9941
10051
  sortSideEffects?: boolean;
9942
10052
  environment?: ("node" | "bun");
@@ -9964,7 +10074,7 @@ type PerfectionistSortImports = {
9964
10074
  } | string)));
9965
10075
  });
9966
10076
  partitionByNewLine?: boolean;
9967
- newlinesBetween?: ("ignore" | "always" | "never");
10077
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
9968
10078
  internalPattern?: (({
9969
10079
  pattern: string;
9970
10080
  flags?: string;
@@ -9973,7 +10083,8 @@ type PerfectionistSortImports = {
9973
10083
  flags?: string;
9974
10084
  } | string));
9975
10085
  groups?: (string | string[] | {
9976
- newlinesBetween: ("ignore" | "always" | "never");
10086
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10087
+ commentAbove?: string;
9977
10088
  })[];
9978
10089
  }[];
9979
10090
  // ----- perfectionist/sort-interfaces -----
@@ -9992,7 +10103,7 @@ type PerfectionistSortInterfaces = {
9992
10103
  customGroups?: ({
9993
10104
  [k: string]: (string | string[]) | undefined;
9994
10105
  } | ({
9995
- newlinesInside?: ("always" | "never");
10106
+ newlinesInside?: (("always" | "never") | number);
9996
10107
  fallbackSort?: {
9997
10108
  order?: ("asc" | "desc");
9998
10109
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10021,7 +10132,7 @@ type PerfectionistSortInterfaces = {
10021
10132
  sortBy?: ("name" | "value");
10022
10133
  }[];
10023
10134
  } | {
10024
- newlinesInside?: ("always" | "never");
10135
+ newlinesInside?: (("always" | "never") | number);
10025
10136
  fallbackSort?: {
10026
10137
  order?: ("asc" | "desc");
10027
10138
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10088,7 +10199,7 @@ type PerfectionistSortInterfaces = {
10088
10199
  } | string)));
10089
10200
  });
10090
10201
  partitionByNewLine?: boolean;
10091
- newlinesBetween?: ("ignore" | "always" | "never");
10202
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10092
10203
  ignorePattern?: (({
10093
10204
  pattern: string;
10094
10205
  flags?: string;
@@ -10098,7 +10209,8 @@ type PerfectionistSortInterfaces = {
10098
10209
  } | string));
10099
10210
  sortBy?: ("name" | "value");
10100
10211
  groups?: (string | string[] | {
10101
- newlinesBetween: ("ignore" | "always" | "never");
10212
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10213
+ commentAbove?: string;
10102
10214
  })[];
10103
10215
  }[];
10104
10216
  // ----- perfectionist/sort-intersection-types -----
@@ -10114,7 +10226,7 @@ type PerfectionistSortIntersectionTypes = {
10114
10226
  order?: ("asc" | "desc");
10115
10227
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10116
10228
  customGroups?: ({
10117
- newlinesInside?: ("always" | "never");
10229
+ newlinesInside?: (("always" | "never") | number);
10118
10230
  fallbackSort?: {
10119
10231
  order?: ("asc" | "desc");
10120
10232
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10133,7 +10245,7 @@ type PerfectionistSortIntersectionTypes = {
10133
10245
  } | string));
10134
10246
  }[];
10135
10247
  } | {
10136
- newlinesInside?: ("always" | "never");
10248
+ newlinesInside?: (("always" | "never") | number);
10137
10249
  fallbackSort?: {
10138
10250
  order?: ("asc" | "desc");
10139
10251
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10173,9 +10285,10 @@ type PerfectionistSortIntersectionTypes = {
10173
10285
  } | string)));
10174
10286
  });
10175
10287
  partitionByNewLine?: boolean;
10176
- newlinesBetween?: ("ignore" | "always" | "never");
10288
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10177
10289
  groups?: (string | string[] | {
10178
- newlinesBetween: ("ignore" | "always" | "never");
10290
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10291
+ commentAbove?: string;
10179
10292
  })[];
10180
10293
  }[];
10181
10294
  // ----- perfectionist/sort-jsx-props -----
@@ -10193,7 +10306,7 @@ type PerfectionistSortJsxProps = {
10193
10306
  customGroups?: ({
10194
10307
  [k: string]: (string | string[]) | undefined;
10195
10308
  } | ({
10196
- newlinesInside?: ("always" | "never");
10309
+ newlinesInside?: (("always" | "never") | number);
10197
10310
  fallbackSort?: {
10198
10311
  order?: ("asc" | "desc");
10199
10312
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10220,7 +10333,7 @@ type PerfectionistSortJsxProps = {
10220
10333
  } | string));
10221
10334
  }[];
10222
10335
  } | {
10223
- newlinesInside?: ("always" | "never");
10336
+ newlinesInside?: (("always" | "never") | number);
10224
10337
  fallbackSort?: {
10225
10338
  order?: ("asc" | "desc");
10226
10339
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10262,7 +10375,7 @@ type PerfectionistSortJsxProps = {
10262
10375
  } | string));
10263
10376
  };
10264
10377
  partitionByNewLine?: boolean;
10265
- newlinesBetween?: ("ignore" | "always" | "never");
10378
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10266
10379
  ignorePattern?: (({
10267
10380
  pattern: string;
10268
10381
  flags?: string;
@@ -10271,7 +10384,8 @@ type PerfectionistSortJsxProps = {
10271
10384
  flags?: string;
10272
10385
  } | string));
10273
10386
  groups?: (string | string[] | {
10274
- newlinesBetween: ("ignore" | "always" | "never");
10387
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10388
+ commentAbove?: string;
10275
10389
  })[];
10276
10390
  }[];
10277
10391
  // ----- perfectionist/sort-maps -----
@@ -10287,7 +10401,7 @@ type PerfectionistSortMaps = {
10287
10401
  order?: ("asc" | "desc");
10288
10402
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10289
10403
  customGroups?: ({
10290
- newlinesInside?: ("always" | "never");
10404
+ newlinesInside?: (("always" | "never") | number);
10291
10405
  fallbackSort?: {
10292
10406
  order?: ("asc" | "desc");
10293
10407
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10305,7 +10419,7 @@ type PerfectionistSortMaps = {
10305
10419
  } | string));
10306
10420
  }[];
10307
10421
  } | {
10308
- newlinesInside?: ("always" | "never");
10422
+ newlinesInside?: (("always" | "never") | number);
10309
10423
  fallbackSort?: {
10310
10424
  order?: ("asc" | "desc");
10311
10425
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10353,9 +10467,10 @@ type PerfectionistSortMaps = {
10353
10467
  } | string)));
10354
10468
  });
10355
10469
  partitionByNewLine?: boolean;
10356
- newlinesBetween?: ("ignore" | "always" | "never");
10470
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10357
10471
  groups?: (string | string[] | {
10358
- newlinesBetween: ("ignore" | "always" | "never");
10472
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10473
+ commentAbove?: string;
10359
10474
  })[];
10360
10475
  }[];
10361
10476
  // ----- perfectionist/sort-modules -----
@@ -10371,7 +10486,7 @@ type PerfectionistSortModules = [] | [{
10371
10486
  order?: ("asc" | "desc");
10372
10487
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10373
10488
  customGroups?: ({
10374
- newlinesInside?: ("always" | "never");
10489
+ newlinesInside?: (("always" | "never") | number);
10375
10490
  fallbackSort?: {
10376
10491
  order?: ("asc" | "desc");
10377
10492
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10398,7 +10513,7 @@ type PerfectionistSortModules = [] | [{
10398
10513
  } | string));
10399
10514
  }[];
10400
10515
  } | {
10401
- newlinesInside?: ("always" | "never");
10516
+ newlinesInside?: (("always" | "never") | number);
10402
10517
  fallbackSort?: {
10403
10518
  order?: ("asc" | "desc");
10404
10519
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10446,9 +10561,10 @@ type PerfectionistSortModules = [] | [{
10446
10561
  } | string)));
10447
10562
  });
10448
10563
  partitionByNewLine?: boolean;
10449
- newlinesBetween?: ("ignore" | "always" | "never");
10564
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10450
10565
  groups?: (string | string[] | {
10451
- newlinesBetween: ("ignore" | "always" | "never");
10566
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10567
+ commentAbove?: string;
10452
10568
  })[];
10453
10569
  }];
10454
10570
  // ----- perfectionist/sort-named-exports -----
@@ -10466,7 +10582,7 @@ type PerfectionistSortNamedExports = {
10466
10582
  groupKind?: ("mixed" | "values-first" | "types-first");
10467
10583
  ignoreAlias?: boolean;
10468
10584
  customGroups?: ({
10469
- newlinesInside?: ("always" | "never");
10585
+ newlinesInside?: (("always" | "never") | number);
10470
10586
  fallbackSort?: {
10471
10587
  order?: ("asc" | "desc");
10472
10588
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10486,7 +10602,7 @@ type PerfectionistSortNamedExports = {
10486
10602
  } | string));
10487
10603
  }[];
10488
10604
  } | {
10489
- newlinesInside?: ("always" | "never");
10605
+ newlinesInside?: (("always" | "never") | number);
10490
10606
  fallbackSort?: {
10491
10607
  order?: ("asc" | "desc");
10492
10608
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10527,9 +10643,10 @@ type PerfectionistSortNamedExports = {
10527
10643
  } | string)));
10528
10644
  });
10529
10645
  partitionByNewLine?: boolean;
10530
- newlinesBetween?: ("ignore" | "always" | "never");
10646
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10531
10647
  groups?: (string | string[] | {
10532
- newlinesBetween: ("ignore" | "always" | "never");
10648
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10649
+ commentAbove?: string;
10533
10650
  })[];
10534
10651
  }[];
10535
10652
  // ----- perfectionist/sort-named-imports -----
@@ -10547,7 +10664,7 @@ type PerfectionistSortNamedImports = {
10547
10664
  groupKind?: ("mixed" | "values-first" | "types-first");
10548
10665
  ignoreAlias?: boolean;
10549
10666
  customGroups?: ({
10550
- newlinesInside?: ("always" | "never");
10667
+ newlinesInside?: (("always" | "never") | number);
10551
10668
  fallbackSort?: {
10552
10669
  order?: ("asc" | "desc");
10553
10670
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10567,7 +10684,7 @@ type PerfectionistSortNamedImports = {
10567
10684
  } | string));
10568
10685
  }[];
10569
10686
  } | {
10570
- newlinesInside?: ("always" | "never");
10687
+ newlinesInside?: (("always" | "never") | number);
10571
10688
  fallbackSort?: {
10572
10689
  order?: ("asc" | "desc");
10573
10690
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10608,9 +10725,10 @@ type PerfectionistSortNamedImports = {
10608
10725
  } | string)));
10609
10726
  });
10610
10727
  partitionByNewLine?: boolean;
10611
- newlinesBetween?: ("ignore" | "always" | "never");
10728
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10612
10729
  groups?: (string | string[] | {
10613
- newlinesBetween: ("ignore" | "always" | "never");
10730
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10731
+ commentAbove?: string;
10614
10732
  })[];
10615
10733
  }[];
10616
10734
  // ----- perfectionist/sort-object-types -----
@@ -10629,7 +10747,7 @@ type PerfectionistSortObjectTypes = {
10629
10747
  customGroups?: ({
10630
10748
  [k: string]: (string | string[]) | undefined;
10631
10749
  } | ({
10632
- newlinesInside?: ("always" | "never");
10750
+ newlinesInside?: (("always" | "never") | number);
10633
10751
  fallbackSort?: {
10634
10752
  order?: ("asc" | "desc");
10635
10753
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10658,7 +10776,7 @@ type PerfectionistSortObjectTypes = {
10658
10776
  sortBy?: ("name" | "value");
10659
10777
  }[];
10660
10778
  } | {
10661
- newlinesInside?: ("always" | "never");
10779
+ newlinesInside?: (("always" | "never") | number);
10662
10780
  fallbackSort?: {
10663
10781
  order?: ("asc" | "desc");
10664
10782
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10725,7 +10843,7 @@ type PerfectionistSortObjectTypes = {
10725
10843
  } | string)));
10726
10844
  });
10727
10845
  partitionByNewLine?: boolean;
10728
- newlinesBetween?: ("ignore" | "always" | "never");
10846
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10729
10847
  ignorePattern?: (({
10730
10848
  pattern: string;
10731
10849
  flags?: string;
@@ -10735,7 +10853,8 @@ type PerfectionistSortObjectTypes = {
10735
10853
  } | string));
10736
10854
  sortBy?: ("name" | "value");
10737
10855
  groups?: (string | string[] | {
10738
- newlinesBetween: ("ignore" | "always" | "never");
10856
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10857
+ commentAbove?: string;
10739
10858
  })[];
10740
10859
  }[];
10741
10860
  // ----- perfectionist/sort-objects -----
@@ -10756,7 +10875,7 @@ type PerfectionistSortObjects = {
10756
10875
  customGroups?: ({
10757
10876
  [k: string]: (string | string[]) | undefined;
10758
10877
  } | ({
10759
- newlinesInside?: ("always" | "never");
10878
+ newlinesInside?: (("always" | "never") | number);
10760
10879
  fallbackSort?: {
10761
10880
  order?: ("asc" | "desc");
10762
10881
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10783,7 +10902,7 @@ type PerfectionistSortObjects = {
10783
10902
  } | string));
10784
10903
  }[];
10785
10904
  } | {
10786
- newlinesInside?: ("always" | "never");
10905
+ newlinesInside?: (("always" | "never") | number);
10787
10906
  fallbackSort?: {
10788
10907
  order?: ("asc" | "desc");
10789
10908
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10850,7 +10969,7 @@ type PerfectionistSortObjects = {
10850
10969
  } | string)));
10851
10970
  });
10852
10971
  partitionByNewLine?: boolean;
10853
- newlinesBetween?: ("ignore" | "always" | "never");
10972
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10854
10973
  ignorePattern?: (({
10855
10974
  pattern: string;
10856
10975
  flags?: string;
@@ -10859,7 +10978,8 @@ type PerfectionistSortObjects = {
10859
10978
  flags?: string;
10860
10979
  } | string));
10861
10980
  groups?: (string | string[] | {
10862
- newlinesBetween: ("ignore" | "always" | "never");
10981
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10982
+ commentAbove?: string;
10863
10983
  })[];
10864
10984
  }[];
10865
10985
  // ----- perfectionist/sort-sets -----
@@ -10876,7 +10996,7 @@ type PerfectionistSortSets = {
10876
10996
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10877
10997
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
10878
10998
  customGroups?: ({
10879
- newlinesInside?: ("always" | "never");
10999
+ newlinesInside?: (("always" | "never") | number);
10880
11000
  fallbackSort?: {
10881
11001
  order?: ("asc" | "desc");
10882
11002
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10895,7 +11015,7 @@ type PerfectionistSortSets = {
10895
11015
  } | string));
10896
11016
  }[];
10897
11017
  } | {
10898
- newlinesInside?: ("always" | "never");
11018
+ newlinesInside?: (("always" | "never") | number);
10899
11019
  fallbackSort?: {
10900
11020
  order?: ("asc" | "desc");
10901
11021
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10944,9 +11064,10 @@ type PerfectionistSortSets = {
10944
11064
  } | string)));
10945
11065
  });
10946
11066
  partitionByNewLine?: boolean;
10947
- newlinesBetween?: ("ignore" | "always" | "never");
11067
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
10948
11068
  groups?: (string | string[] | {
10949
- newlinesBetween: ("ignore" | "always" | "never");
11069
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
11070
+ commentAbove?: string;
10950
11071
  })[];
10951
11072
  }[];
10952
11073
  // ----- perfectionist/sort-switch-case -----
@@ -10975,7 +11096,7 @@ type PerfectionistSortUnionTypes = {
10975
11096
  order?: ("asc" | "desc");
10976
11097
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10977
11098
  customGroups?: ({
10978
- newlinesInside?: ("always" | "never");
11099
+ newlinesInside?: (("always" | "never") | number);
10979
11100
  fallbackSort?: {
10980
11101
  order?: ("asc" | "desc");
10981
11102
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -10994,7 +11115,7 @@ type PerfectionistSortUnionTypes = {
10994
11115
  } | string));
10995
11116
  }[];
10996
11117
  } | {
10997
- newlinesInside?: ("always" | "never");
11118
+ newlinesInside?: (("always" | "never") | number);
10998
11119
  fallbackSort?: {
10999
11120
  order?: ("asc" | "desc");
11000
11121
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -11034,9 +11155,10 @@ type PerfectionistSortUnionTypes = {
11034
11155
  } | string)));
11035
11156
  });
11036
11157
  partitionByNewLine?: boolean;
11037
- newlinesBetween?: ("ignore" | "always" | "never");
11158
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
11038
11159
  groups?: (string | string[] | {
11039
- newlinesBetween: ("ignore" | "always" | "never");
11160
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
11161
+ commentAbove?: string;
11040
11162
  })[];
11041
11163
  }[];
11042
11164
  // ----- perfectionist/sort-variable-declarations -----
@@ -11052,7 +11174,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
11052
11174
  order?: ("asc" | "desc");
11053
11175
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11054
11176
  customGroups?: ({
11055
- newlinesInside?: ("always" | "never");
11177
+ newlinesInside?: (("always" | "never") | number);
11056
11178
  fallbackSort?: {
11057
11179
  order?: ("asc" | "desc");
11058
11180
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -11071,7 +11193,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
11071
11193
  } | string));
11072
11194
  }[];
11073
11195
  } | {
11074
- newlinesInside?: ("always" | "never");
11196
+ newlinesInside?: (("always" | "never") | number);
11075
11197
  fallbackSort?: {
11076
11198
  order?: ("asc" | "desc");
11077
11199
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
@@ -11111,9 +11233,10 @@ type PerfectionistSortVariableDeclarations = [] | [{
11111
11233
  } | string)));
11112
11234
  });
11113
11235
  partitionByNewLine?: boolean;
11114
- newlinesBetween?: ("ignore" | "always" | "never");
11236
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
11115
11237
  groups?: (string | string[] | {
11116
- newlinesBetween: ("ignore" | "always" | "never");
11238
+ newlinesBetween?: (("ignore" | "always" | "never") | number);
11239
+ commentAbove?: string;
11117
11240
  })[];
11118
11241
  }];
11119
11242
  // ----- pnpm/json-enforce-catalog -----
@@ -11309,6 +11432,10 @@ type RegexpPreferLookaround = [] | [{
11309
11432
  type RegexpPreferNamedReplacement = [] | [{
11310
11433
  strictTypes?: boolean;
11311
11434
  }];
11435
+ // ----- regexp/prefer-quantifier -----
11436
+ type RegexpPreferQuantifier = [] | [{
11437
+ allows?: string[];
11438
+ }];
11312
11439
  // ----- regexp/prefer-range -----
11313
11440
  type RegexpPreferRange = [] | [{
11314
11441
  target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
@@ -12564,7 +12691,7 @@ type VueNoRestrictedCustomEvent = (string | {
12564
12691
  })[];
12565
12692
  // ----- vue/no-restricted-html-elements -----
12566
12693
  type VueNoRestrictedHtmlElements = (string | {
12567
- element: string;
12694
+ element: (string | string[]);
12568
12695
  message?: string;
12569
12696
  })[];
12570
12697
  // ----- vue/no-restricted-props -----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "7.0.2",
3
+ "version": "7.0.4",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,46 +38,46 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
41
- "@eslint/js": "^9.28.0",
42
- "@eslint/markdown": "^6.4.0",
41
+ "@eslint/js": "^9.29.0",
42
+ "@eslint/markdown": "^6.6.0",
43
43
  "eslint-config-flat-gitignore": "^2.1.0",
44
44
  "eslint-config-prettier": "^10.1.5",
45
45
  "eslint-flat-config-utils": "^2.1.0",
46
46
  "eslint-plugin-antfu": "^3.1.1",
47
- "eslint-plugin-command": "^3.2.1",
48
- "eslint-plugin-de-morgan": "^1.2.1",
49
- "eslint-plugin-import-x": "^4.15.0",
50
- "eslint-plugin-jsdoc": "^50.6.17",
47
+ "eslint-plugin-command": "^3.3.0",
48
+ "eslint-plugin-de-morgan": "^1.3.0",
49
+ "eslint-plugin-import-x": "^4.15.2",
50
+ "eslint-plugin-jsdoc": "^51.1.1",
51
51
  "eslint-plugin-jsonc": "^2.20.1",
52
- "eslint-plugin-n": "^17.18.0",
53
- "eslint-plugin-perfectionist": "^4.13.0",
52
+ "eslint-plugin-n": "^17.20.0",
53
+ "eslint-plugin-perfectionist": "^4.15.0",
54
54
  "eslint-plugin-pnpm": "^0.3.1",
55
- "eslint-plugin-prettier": "^5.4.1",
56
- "eslint-plugin-regexp": "^2.7.0",
55
+ "eslint-plugin-prettier": "^5.5.0",
56
+ "eslint-plugin-regexp": "^2.9.0",
57
57
  "eslint-plugin-sxzz": "^0.3.0",
58
58
  "eslint-plugin-unicorn": "^59.0.1",
59
59
  "eslint-plugin-unused-imports": "^4.1.4",
60
- "eslint-plugin-vue": "^10.1.0",
60
+ "eslint-plugin-vue": "^10.2.0",
61
61
  "eslint-plugin-yml": "^1.18.0",
62
62
  "globals": "^16.2.0",
63
63
  "jsonc-eslint-parser": "^2.4.0",
64
64
  "local-pkg": "^1.1.1",
65
65
  "prettier": "^3.5.3",
66
- "typescript-eslint": "^8.33.0",
66
+ "typescript-eslint": "^8.34.1",
67
67
  "vue-eslint-parser": "^10.1.3",
68
68
  "yaml-eslint-parser": "^1.3.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@eslint/config-inspector": "^1.0.2",
71
+ "@eslint/config-inspector": "^1.1.0",
72
72
  "@sxzz/prettier-config": "^2.2.1",
73
- "@types/node": "^22.15.29",
74
- "@unocss/eslint-plugin": "^66.1.3",
73
+ "@types/node": "^24.0.3",
74
+ "@unocss/eslint-plugin": "^66.2.3",
75
75
  "ansis": "^4.1.0",
76
- "bumpp": "^10.1.1",
77
- "eslint": "^9.28.0",
76
+ "bumpp": "^10.2.0",
77
+ "eslint": "^9.29.0",
78
78
  "eslint-typegen": "^2.2.0",
79
- "tsdown": "^0.12.5",
80
- "tsx": "^4.19.4",
79
+ "tsdown": "^0.12.8",
80
+ "tsx": "^4.20.3",
81
81
  "typescript": "^5.8.3"
82
82
  },
83
83
  "engines": {