@ntnyq/eslint-config 3.0.0-beta.17 → 3.0.0-beta.18

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.cts CHANGED
@@ -1065,233 +1065,233 @@ interface RuleOptions {
1065
1065
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
1066
1066
  /**
1067
1067
  * Enforce or ban the use of inline type-only markers for named imports.
1068
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
1068
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
1069
1069
  */
1070
1070
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
1071
1071
  /**
1072
1072
  * Ensure a default export is present, given a default import.
1073
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
1073
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
1074
1074
  */
1075
1075
  'import/default'?: Linter.RuleEntry<[]>;
1076
1076
  /**
1077
1077
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1078
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
1078
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
1079
1079
  */
1080
1080
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
1081
1081
  /**
1082
1082
  * Forbid any invalid exports, i.e. re-export of the same name.
1083
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
1083
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
1084
1084
  */
1085
1085
  'import/export'?: Linter.RuleEntry<[]>;
1086
1086
  /**
1087
1087
  * Ensure all exports appear after other statements.
1088
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
1088
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
1089
1089
  */
1090
1090
  'import/exports-last'?: Linter.RuleEntry<[]>;
1091
1091
  /**
1092
1092
  * Ensure consistent use of file extension within the import path.
1093
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
1093
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
1094
1094
  */
1095
1095
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
1096
1096
  /**
1097
1097
  * Ensure all imports appear before other statements.
1098
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
1098
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
1099
1099
  */
1100
1100
  'import/first'?: Linter.RuleEntry<ImportFirst>;
1101
1101
  /**
1102
1102
  * Prefer named exports to be grouped together in a single export declaration.
1103
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
1103
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
1104
1104
  */
1105
1105
  'import/group-exports'?: Linter.RuleEntry<[]>;
1106
1106
  /**
1107
1107
  * Replaced by `import-x/first`.
1108
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
1108
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
1109
1109
  * @deprecated
1110
1110
  */
1111
1111
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
1112
1112
  /**
1113
1113
  * Enforce the maximum number of dependencies a module can have.
1114
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
1114
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
1115
1115
  */
1116
1116
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
1117
1117
  /**
1118
1118
  * Ensure named imports correspond to a named export in the remote file.
1119
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
1119
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
1120
1120
  */
1121
1121
  'import/named'?: Linter.RuleEntry<ImportNamed>;
1122
1122
  /**
1123
1123
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1124
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
1124
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
1125
1125
  */
1126
1126
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
1127
1127
  /**
1128
1128
  * Enforce a newline after import statements.
1129
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
1129
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
1130
1130
  */
1131
1131
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
1132
1132
  /**
1133
1133
  * Forbid import of modules using absolute paths.
1134
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
1134
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
1135
1135
  */
1136
1136
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
1137
1137
  /**
1138
1138
  * Forbid AMD `require` and `define` calls.
1139
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
1139
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
1140
1140
  */
1141
1141
  'import/no-amd'?: Linter.RuleEntry<[]>;
1142
1142
  /**
1143
1143
  * Forbid anonymous values as default exports.
1144
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
1144
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
1145
1145
  */
1146
1146
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
1147
1147
  /**
1148
1148
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1149
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
1149
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
1150
1150
  */
1151
1151
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
1152
1152
  /**
1153
1153
  * Forbid a module from importing a module with a dependency path back to itself.
1154
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
1154
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
1155
1155
  */
1156
1156
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
1157
1157
  /**
1158
1158
  * Forbid default exports.
1159
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
1159
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
1160
1160
  */
1161
1161
  'import/no-default-export'?: Linter.RuleEntry<[]>;
1162
1162
  /**
1163
1163
  * Forbid imported names marked with `@deprecated` documentation tag.
1164
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
1164
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
1165
1165
  */
1166
1166
  'import/no-deprecated'?: Linter.RuleEntry<[]>;
1167
1167
  /**
1168
1168
  * Forbid repeated import of the same module in multiple places.
1169
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
1169
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
1170
1170
  */
1171
1171
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
1172
1172
  /**
1173
1173
  * Forbid `require()` calls with expressions.
1174
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
1174
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
1175
1175
  */
1176
1176
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
1177
1177
  /**
1178
1178
  * Forbid empty named import blocks.
1179
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
1179
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
1180
1180
  */
1181
1181
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
1182
1182
  /**
1183
1183
  * Forbid the use of extraneous packages.
1184
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
1184
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
1185
1185
  */
1186
1186
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
1187
1187
  /**
1188
1188
  * Forbid import statements with CommonJS module.exports.
1189
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
1189
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
1190
1190
  */
1191
1191
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
1192
1192
  /**
1193
1193
  * Forbid importing the submodules of other modules.
1194
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
1194
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
1195
1195
  */
1196
1196
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
1197
1197
  /**
1198
1198
  * Forbid the use of mutable exports with `var` or `let`.
1199
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
1199
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
1200
1200
  */
1201
1201
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
1202
1202
  /**
1203
1203
  * Forbid use of exported name as identifier of default export.
1204
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
1204
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
1205
1205
  */
1206
1206
  'import/no-named-as-default'?: Linter.RuleEntry<[]>;
1207
1207
  /**
1208
1208
  * Forbid use of exported name as property of default export.
1209
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
1209
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
1210
1210
  */
1211
1211
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
1212
1212
  /**
1213
1213
  * Forbid named default exports.
1214
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
1214
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
1215
1215
  */
1216
1216
  'import/no-named-default'?: Linter.RuleEntry<[]>;
1217
1217
  /**
1218
1218
  * Forbid named exports.
1219
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
1219
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
1220
1220
  */
1221
1221
  'import/no-named-export'?: Linter.RuleEntry<[]>;
1222
1222
  /**
1223
1223
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1224
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
1224
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
1225
1225
  */
1226
1226
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
1227
1227
  /**
1228
1228
  * Forbid Node.js builtin modules.
1229
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
1229
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
1230
1230
  */
1231
1231
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
1232
1232
  /**
1233
1233
  * Forbid importing packages through relative paths.
1234
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
1234
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
1235
1235
  */
1236
1236
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
1237
1237
  /**
1238
1238
  * Forbid importing modules from parent directories.
1239
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
1239
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
1240
1240
  */
1241
1241
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
1242
1242
  /**
1243
1243
  * Forbid importing a default export by a different name.
1244
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
1244
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
1245
1245
  */
1246
1246
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
1247
1247
  /**
1248
1248
  * Enforce which files can be imported in a given folder.
1249
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
1249
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
1250
1250
  */
1251
1251
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
1252
1252
  /**
1253
1253
  * Forbid a module from importing itself.
1254
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
1254
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
1255
1255
  */
1256
1256
  'import/no-self-import'?: Linter.RuleEntry<[]>;
1257
1257
  /**
1258
1258
  * Forbid unassigned imports.
1259
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
1259
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
1260
1260
  */
1261
1261
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
1262
1262
  /**
1263
1263
  * Ensure imports point to a file/module that can be resolved.
1264
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
1264
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
1265
1265
  */
1266
1266
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
1267
1267
  /**
1268
1268
  * Forbid modules without exports, or exports without matching import in another module.
1269
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
1269
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
1270
1270
  */
1271
1271
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
1272
1272
  /**
1273
1273
  * Forbid unnecessary path segments in import and require statements.
1274
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
1274
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
1275
1275
  */
1276
1276
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
1277
1277
  /**
1278
1278
  * Forbid webpack loader syntax in imports.
1279
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
1279
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
1280
1280
  */
1281
1281
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
1282
1282
  /**
1283
1283
  * Enforce a convention in module import order.
1284
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
1284
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
1285
1285
  */
1286
1286
  'import/order'?: Linter.RuleEntry<ImportOrder>;
1287
1287
  /**
1288
1288
  * Prefer a default export if module exports a single name or multiple names.
1289
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
1289
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
1290
1290
  */
1291
1291
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
1292
1292
  /**
1293
1293
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1294
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
1294
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
1295
1295
  */
1296
1296
  'import/unambiguous'?: Linter.RuleEntry<[]>;
1297
1297
  /**
@@ -6719,6 +6719,7 @@ type TypescriptEslintNoUnnecessaryCondition = [] | [
6719
6719
  {
6720
6720
  allowConstantLoopConditions?: boolean;
6721
6721
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
6722
+ checkTypePredicates?: boolean;
6722
6723
  }
6723
6724
  ];
6724
6725
  type TypescriptEslintNoUnnecessaryTypeAssertion = [] | [
@@ -7936,6 +7937,7 @@ type JsdocRequireParam = [] | [
7936
7937
  enableRestElementFixer?: boolean;
7937
7938
  enableRootFixer?: boolean;
7938
7939
  exemptedBy?: string[];
7940
+ ignoreWhenAllParamsMissing?: boolean;
7939
7941
  unnamedRootBase?: string[];
7940
7942
  useDefaultObjectProperties?: boolean;
7941
7943
  }
@@ -9724,14 +9726,18 @@ type PerfectionistSortArrayIncludes = [] | [
9724
9726
  {
9725
9727
  type?: ("alphabetical" | "natural" | "line-length");
9726
9728
  order?: ("asc" | "desc");
9729
+ matcher?: ("minimatch" | "regex");
9727
9730
  ignoreCase?: boolean;
9728
9731
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9732
+ partitionByComment?: (string[] | boolean | string);
9733
+ partitionByNewLine?: boolean;
9729
9734
  }
9730
9735
  ];
9731
9736
  type PerfectionistSortAstroAttributes = [] | [
9732
9737
  {
9733
9738
  type?: ("alphabetical" | "natural" | "line-length");
9734
9739
  order?: ("asc" | "desc");
9740
+ matcher?: ("minimatch" | "regex");
9735
9741
  ignoreCase?: boolean;
9736
9742
  groups?: (string | string[])[];
9737
9743
  customGroups?: {
@@ -9743,6 +9749,7 @@ type PerfectionistSortClasses = [] | [
9743
9749
  {
9744
9750
  type?: ("alphabetical" | "natural" | "line-length");
9745
9751
  order?: ("asc" | "desc");
9752
+ matcher?: ("minimatch" | "regex");
9746
9753
  ignoreCase?: boolean;
9747
9754
  partitionByComment?: (string[] | boolean | string);
9748
9755
  groups?: (string | string[])[];
@@ -9773,23 +9780,30 @@ type PerfectionistSortEnums = [] | [
9773
9780
  {
9774
9781
  type?: ("alphabetical" | "natural" | "line-length");
9775
9782
  order?: ("asc" | "desc");
9783
+ matcher?: ("minimatch" | "regex");
9776
9784
  ignoreCase?: boolean;
9777
9785
  sortByValue?: boolean;
9778
9786
  forceNumericSort?: boolean;
9779
9787
  partitionByComment?: (string[] | boolean | string);
9788
+ partitionByNewLine?: boolean;
9780
9789
  }
9781
9790
  ];
9782
9791
  type PerfectionistSortExports = [] | [
9783
9792
  {
9784
9793
  type?: ("alphabetical" | "natural" | "line-length");
9785
9794
  order?: ("asc" | "desc");
9795
+ matcher?: ("minimatch" | "regex");
9786
9796
  ignoreCase?: boolean;
9797
+ partitionByComment?: (string[] | boolean | string);
9798
+ partitionByNewLine?: boolean;
9799
+ groupKind?: ("mixed" | "values-first" | "types-first");
9787
9800
  }
9788
9801
  ];
9789
9802
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
9790
9803
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
9791
9804
  type?: ("alphabetical" | "natural" | "line-length");
9792
9805
  order?: ("asc" | "desc");
9806
+ matcher?: ("minimatch" | "regex");
9793
9807
  ignoreCase?: boolean;
9794
9808
  internalPattern?: string[];
9795
9809
  sortSideEffects?: boolean;
@@ -9817,8 +9831,10 @@ type PerfectionistSortInterfaces = [] | [
9817
9831
  {
9818
9832
  type?: ("alphabetical" | "natural" | "line-length");
9819
9833
  order?: ("asc" | "desc");
9834
+ matcher?: ("minimatch" | "regex");
9820
9835
  ignoreCase?: boolean;
9821
9836
  ignorePattern?: string[];
9837
+ partitionByComment?: (boolean | string | string[]);
9822
9838
  partitionByNewLine?: boolean;
9823
9839
  groupKind?: ("mixed" | "optional-first" | "required-first");
9824
9840
  groups?: (string | string[])[];
@@ -9831,14 +9847,18 @@ type PerfectionistSortIntersectionTypes = [] | [
9831
9847
  {
9832
9848
  type?: ("alphabetical" | "natural" | "line-length");
9833
9849
  order?: ("asc" | "desc");
9850
+ matcher?: ("minimatch" | "regex");
9834
9851
  ignoreCase?: boolean;
9835
9852
  groups?: (string | string[])[];
9853
+ partitionByComment?: (string[] | boolean | string);
9854
+ partitionByNewLine?: boolean;
9836
9855
  }
9837
9856
  ];
9838
9857
  type PerfectionistSortJsxProps = [] | [
9839
9858
  {
9840
9859
  type?: ("alphabetical" | "natural" | "line-length");
9841
9860
  order?: ("asc" | "desc");
9861
+ matcher?: ("minimatch" | "regex");
9842
9862
  ignoreCase?: boolean;
9843
9863
  ignorePattern?: string[];
9844
9864
  groups?: (string | string[])[];
@@ -9851,31 +9871,42 @@ type PerfectionistSortMaps = [] | [
9851
9871
  {
9852
9872
  type?: ("alphabetical" | "natural" | "line-length");
9853
9873
  order?: ("asc" | "desc");
9874
+ matcher?: ("minimatch" | "regex");
9854
9875
  ignoreCase?: boolean;
9876
+ partitionByComment?: (string[] | boolean | string);
9877
+ partitionByNewLine?: boolean;
9855
9878
  }
9856
9879
  ];
9857
9880
  type PerfectionistSortNamedExports = [] | [
9858
9881
  {
9859
9882
  type?: ("alphabetical" | "natural" | "line-length");
9860
9883
  order?: ("asc" | "desc");
9884
+ matcher?: ("minimatch" | "regex");
9861
9885
  ignoreCase?: boolean;
9862
9886
  groupKind?: ("mixed" | "values-first" | "types-first");
9887
+ partitionByComment?: (string[] | boolean | string);
9888
+ partitionByNewLine?: boolean;
9863
9889
  }
9864
9890
  ];
9865
9891
  type PerfectionistSortNamedImports = [] | [
9866
9892
  {
9867
9893
  type?: ("alphabetical" | "natural" | "line-length");
9868
9894
  order?: ("asc" | "desc");
9895
+ matcher?: ("minimatch" | "regex");
9869
9896
  ignoreCase?: boolean;
9870
9897
  ignoreAlias?: boolean;
9871
9898
  groupKind?: ("mixed" | "values-first" | "types-first");
9899
+ partitionByComment?: (string[] | boolean | string);
9900
+ partitionByNewLine?: boolean;
9872
9901
  }
9873
9902
  ];
9874
9903
  type PerfectionistSortObjectTypes = [] | [
9875
9904
  {
9876
9905
  type?: ("alphabetical" | "natural" | "line-length");
9877
9906
  order?: ("asc" | "desc");
9907
+ matcher?: ("minimatch" | "regex");
9878
9908
  ignoreCase?: boolean;
9909
+ partitionByComment?: (string[] | boolean | string);
9879
9910
  partitionByNewLine?: boolean;
9880
9911
  groupKind?: ("mixed" | "required-first" | "optional-first");
9881
9912
  groups?: (string | string[])[];
@@ -9888,6 +9919,7 @@ type PerfectionistSortObjects = [] | [
9888
9919
  {
9889
9920
  type?: ("alphabetical" | "natural" | "line-length");
9890
9921
  order?: ("asc" | "desc");
9922
+ matcher?: ("minimatch" | "regex");
9891
9923
  ignoreCase?: boolean;
9892
9924
  partitionByComment?: (string[] | boolean | string);
9893
9925
  partitionByNewLine?: boolean;
@@ -9904,14 +9936,18 @@ type PerfectionistSortSets = [] | [
9904
9936
  {
9905
9937
  type?: ("alphabetical" | "natural" | "line-length");
9906
9938
  order?: ("asc" | "desc");
9939
+ matcher?: ("minimatch" | "regex");
9907
9940
  ignoreCase?: boolean;
9908
9941
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9942
+ partitionByComment?: (string[] | boolean | string);
9943
+ partitionByNewLine?: boolean;
9909
9944
  }
9910
9945
  ];
9911
9946
  type PerfectionistSortSvelteAttributes = [] | [
9912
9947
  {
9913
9948
  type?: ("alphabetical" | "natural" | "line-length");
9914
9949
  order?: ("asc" | "desc");
9950
+ matcher?: ("minimatch" | "regex");
9915
9951
  ignoreCase?: boolean;
9916
9952
  groups?: (string | string[])[];
9917
9953
  customGroups?: {
@@ -9930,21 +9966,28 @@ type PerfectionistSortUnionTypes = [] | [
9930
9966
  {
9931
9967
  type?: ("alphabetical" | "natural" | "line-length");
9932
9968
  order?: ("asc" | "desc");
9969
+ matcher?: ("minimatch" | "regex");
9933
9970
  ignoreCase?: boolean;
9934
9971
  groups?: (string | string[])[];
9972
+ partitionByComment?: (string[] | boolean | string);
9973
+ partitionByNewLine?: boolean;
9935
9974
  }
9936
9975
  ];
9937
9976
  type PerfectionistSortVariableDeclarations = [] | [
9938
9977
  {
9939
9978
  type?: ("alphabetical" | "natural" | "line-length");
9940
9979
  order?: ("asc" | "desc");
9980
+ matcher?: ("minimatch" | "regex");
9941
9981
  ignoreCase?: boolean;
9982
+ partitionByComment?: (string[] | boolean | string);
9983
+ partitionByNewLine?: boolean;
9942
9984
  }
9943
9985
  ];
9944
9986
  type PerfectionistSortVueAttributes = [] | [
9945
9987
  {
9946
9988
  type?: ("alphabetical" | "natural" | "line-length");
9947
9989
  order?: ("asc" | "desc");
9990
+ matcher?: ("minimatch" | "regex");
9948
9991
  ignoreCase?: boolean;
9949
9992
  groups?: (string | string[])[];
9950
9993
  customGroups?: {
package/dist/index.d.ts CHANGED
@@ -1065,233 +1065,233 @@ interface RuleOptions {
1065
1065
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
1066
1066
  /**
1067
1067
  * Enforce or ban the use of inline type-only markers for named imports.
1068
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
1068
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
1069
1069
  */
1070
1070
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
1071
1071
  /**
1072
1072
  * Ensure a default export is present, given a default import.
1073
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
1073
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
1074
1074
  */
1075
1075
  'import/default'?: Linter.RuleEntry<[]>;
1076
1076
  /**
1077
1077
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1078
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
1078
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
1079
1079
  */
1080
1080
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
1081
1081
  /**
1082
1082
  * Forbid any invalid exports, i.e. re-export of the same name.
1083
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
1083
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
1084
1084
  */
1085
1085
  'import/export'?: Linter.RuleEntry<[]>;
1086
1086
  /**
1087
1087
  * Ensure all exports appear after other statements.
1088
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
1088
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
1089
1089
  */
1090
1090
  'import/exports-last'?: Linter.RuleEntry<[]>;
1091
1091
  /**
1092
1092
  * Ensure consistent use of file extension within the import path.
1093
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
1093
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
1094
1094
  */
1095
1095
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
1096
1096
  /**
1097
1097
  * Ensure all imports appear before other statements.
1098
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
1098
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
1099
1099
  */
1100
1100
  'import/first'?: Linter.RuleEntry<ImportFirst>;
1101
1101
  /**
1102
1102
  * Prefer named exports to be grouped together in a single export declaration.
1103
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
1103
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
1104
1104
  */
1105
1105
  'import/group-exports'?: Linter.RuleEntry<[]>;
1106
1106
  /**
1107
1107
  * Replaced by `import-x/first`.
1108
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
1108
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
1109
1109
  * @deprecated
1110
1110
  */
1111
1111
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
1112
1112
  /**
1113
1113
  * Enforce the maximum number of dependencies a module can have.
1114
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
1114
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
1115
1115
  */
1116
1116
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
1117
1117
  /**
1118
1118
  * Ensure named imports correspond to a named export in the remote file.
1119
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
1119
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
1120
1120
  */
1121
1121
  'import/named'?: Linter.RuleEntry<ImportNamed>;
1122
1122
  /**
1123
1123
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1124
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
1124
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
1125
1125
  */
1126
1126
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
1127
1127
  /**
1128
1128
  * Enforce a newline after import statements.
1129
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
1129
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
1130
1130
  */
1131
1131
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
1132
1132
  /**
1133
1133
  * Forbid import of modules using absolute paths.
1134
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
1134
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
1135
1135
  */
1136
1136
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
1137
1137
  /**
1138
1138
  * Forbid AMD `require` and `define` calls.
1139
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
1139
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
1140
1140
  */
1141
1141
  'import/no-amd'?: Linter.RuleEntry<[]>;
1142
1142
  /**
1143
1143
  * Forbid anonymous values as default exports.
1144
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
1144
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
1145
1145
  */
1146
1146
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
1147
1147
  /**
1148
1148
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1149
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
1149
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
1150
1150
  */
1151
1151
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
1152
1152
  /**
1153
1153
  * Forbid a module from importing a module with a dependency path back to itself.
1154
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
1154
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
1155
1155
  */
1156
1156
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
1157
1157
  /**
1158
1158
  * Forbid default exports.
1159
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
1159
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
1160
1160
  */
1161
1161
  'import/no-default-export'?: Linter.RuleEntry<[]>;
1162
1162
  /**
1163
1163
  * Forbid imported names marked with `@deprecated` documentation tag.
1164
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
1164
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
1165
1165
  */
1166
1166
  'import/no-deprecated'?: Linter.RuleEntry<[]>;
1167
1167
  /**
1168
1168
  * Forbid repeated import of the same module in multiple places.
1169
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
1169
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
1170
1170
  */
1171
1171
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
1172
1172
  /**
1173
1173
  * Forbid `require()` calls with expressions.
1174
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
1174
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
1175
1175
  */
1176
1176
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
1177
1177
  /**
1178
1178
  * Forbid empty named import blocks.
1179
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
1179
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
1180
1180
  */
1181
1181
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
1182
1182
  /**
1183
1183
  * Forbid the use of extraneous packages.
1184
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
1184
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
1185
1185
  */
1186
1186
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
1187
1187
  /**
1188
1188
  * Forbid import statements with CommonJS module.exports.
1189
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
1189
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
1190
1190
  */
1191
1191
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
1192
1192
  /**
1193
1193
  * Forbid importing the submodules of other modules.
1194
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
1194
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
1195
1195
  */
1196
1196
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
1197
1197
  /**
1198
1198
  * Forbid the use of mutable exports with `var` or `let`.
1199
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
1199
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
1200
1200
  */
1201
1201
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
1202
1202
  /**
1203
1203
  * Forbid use of exported name as identifier of default export.
1204
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
1204
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
1205
1205
  */
1206
1206
  'import/no-named-as-default'?: Linter.RuleEntry<[]>;
1207
1207
  /**
1208
1208
  * Forbid use of exported name as property of default export.
1209
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
1209
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
1210
1210
  */
1211
1211
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
1212
1212
  /**
1213
1213
  * Forbid named default exports.
1214
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
1214
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
1215
1215
  */
1216
1216
  'import/no-named-default'?: Linter.RuleEntry<[]>;
1217
1217
  /**
1218
1218
  * Forbid named exports.
1219
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
1219
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
1220
1220
  */
1221
1221
  'import/no-named-export'?: Linter.RuleEntry<[]>;
1222
1222
  /**
1223
1223
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1224
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
1224
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
1225
1225
  */
1226
1226
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
1227
1227
  /**
1228
1228
  * Forbid Node.js builtin modules.
1229
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
1229
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
1230
1230
  */
1231
1231
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
1232
1232
  /**
1233
1233
  * Forbid importing packages through relative paths.
1234
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
1234
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
1235
1235
  */
1236
1236
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
1237
1237
  /**
1238
1238
  * Forbid importing modules from parent directories.
1239
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
1239
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
1240
1240
  */
1241
1241
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
1242
1242
  /**
1243
1243
  * Forbid importing a default export by a different name.
1244
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
1244
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
1245
1245
  */
1246
1246
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
1247
1247
  /**
1248
1248
  * Enforce which files can be imported in a given folder.
1249
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
1249
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
1250
1250
  */
1251
1251
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
1252
1252
  /**
1253
1253
  * Forbid a module from importing itself.
1254
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
1254
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
1255
1255
  */
1256
1256
  'import/no-self-import'?: Linter.RuleEntry<[]>;
1257
1257
  /**
1258
1258
  * Forbid unassigned imports.
1259
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
1259
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
1260
1260
  */
1261
1261
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
1262
1262
  /**
1263
1263
  * Ensure imports point to a file/module that can be resolved.
1264
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
1264
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
1265
1265
  */
1266
1266
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
1267
1267
  /**
1268
1268
  * Forbid modules without exports, or exports without matching import in another module.
1269
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
1269
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
1270
1270
  */
1271
1271
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
1272
1272
  /**
1273
1273
  * Forbid unnecessary path segments in import and require statements.
1274
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
1274
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
1275
1275
  */
1276
1276
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
1277
1277
  /**
1278
1278
  * Forbid webpack loader syntax in imports.
1279
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
1279
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
1280
1280
  */
1281
1281
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
1282
1282
  /**
1283
1283
  * Enforce a convention in module import order.
1284
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
1284
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
1285
1285
  */
1286
1286
  'import/order'?: Linter.RuleEntry<ImportOrder>;
1287
1287
  /**
1288
1288
  * Prefer a default export if module exports a single name or multiple names.
1289
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
1289
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
1290
1290
  */
1291
1291
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
1292
1292
  /**
1293
1293
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1294
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
1294
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
1295
1295
  */
1296
1296
  'import/unambiguous'?: Linter.RuleEntry<[]>;
1297
1297
  /**
@@ -6719,6 +6719,7 @@ type TypescriptEslintNoUnnecessaryCondition = [] | [
6719
6719
  {
6720
6720
  allowConstantLoopConditions?: boolean;
6721
6721
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
6722
+ checkTypePredicates?: boolean;
6722
6723
  }
6723
6724
  ];
6724
6725
  type TypescriptEslintNoUnnecessaryTypeAssertion = [] | [
@@ -7936,6 +7937,7 @@ type JsdocRequireParam = [] | [
7936
7937
  enableRestElementFixer?: boolean;
7937
7938
  enableRootFixer?: boolean;
7938
7939
  exemptedBy?: string[];
7940
+ ignoreWhenAllParamsMissing?: boolean;
7939
7941
  unnamedRootBase?: string[];
7940
7942
  useDefaultObjectProperties?: boolean;
7941
7943
  }
@@ -9724,14 +9726,18 @@ type PerfectionistSortArrayIncludes = [] | [
9724
9726
  {
9725
9727
  type?: ("alphabetical" | "natural" | "line-length");
9726
9728
  order?: ("asc" | "desc");
9729
+ matcher?: ("minimatch" | "regex");
9727
9730
  ignoreCase?: boolean;
9728
9731
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9732
+ partitionByComment?: (string[] | boolean | string);
9733
+ partitionByNewLine?: boolean;
9729
9734
  }
9730
9735
  ];
9731
9736
  type PerfectionistSortAstroAttributes = [] | [
9732
9737
  {
9733
9738
  type?: ("alphabetical" | "natural" | "line-length");
9734
9739
  order?: ("asc" | "desc");
9740
+ matcher?: ("minimatch" | "regex");
9735
9741
  ignoreCase?: boolean;
9736
9742
  groups?: (string | string[])[];
9737
9743
  customGroups?: {
@@ -9743,6 +9749,7 @@ type PerfectionistSortClasses = [] | [
9743
9749
  {
9744
9750
  type?: ("alphabetical" | "natural" | "line-length");
9745
9751
  order?: ("asc" | "desc");
9752
+ matcher?: ("minimatch" | "regex");
9746
9753
  ignoreCase?: boolean;
9747
9754
  partitionByComment?: (string[] | boolean | string);
9748
9755
  groups?: (string | string[])[];
@@ -9773,23 +9780,30 @@ type PerfectionistSortEnums = [] | [
9773
9780
  {
9774
9781
  type?: ("alphabetical" | "natural" | "line-length");
9775
9782
  order?: ("asc" | "desc");
9783
+ matcher?: ("minimatch" | "regex");
9776
9784
  ignoreCase?: boolean;
9777
9785
  sortByValue?: boolean;
9778
9786
  forceNumericSort?: boolean;
9779
9787
  partitionByComment?: (string[] | boolean | string);
9788
+ partitionByNewLine?: boolean;
9780
9789
  }
9781
9790
  ];
9782
9791
  type PerfectionistSortExports = [] | [
9783
9792
  {
9784
9793
  type?: ("alphabetical" | "natural" | "line-length");
9785
9794
  order?: ("asc" | "desc");
9795
+ matcher?: ("minimatch" | "regex");
9786
9796
  ignoreCase?: boolean;
9797
+ partitionByComment?: (string[] | boolean | string);
9798
+ partitionByNewLine?: boolean;
9799
+ groupKind?: ("mixed" | "values-first" | "types-first");
9787
9800
  }
9788
9801
  ];
9789
9802
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
9790
9803
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
9791
9804
  type?: ("alphabetical" | "natural" | "line-length");
9792
9805
  order?: ("asc" | "desc");
9806
+ matcher?: ("minimatch" | "regex");
9793
9807
  ignoreCase?: boolean;
9794
9808
  internalPattern?: string[];
9795
9809
  sortSideEffects?: boolean;
@@ -9817,8 +9831,10 @@ type PerfectionistSortInterfaces = [] | [
9817
9831
  {
9818
9832
  type?: ("alphabetical" | "natural" | "line-length");
9819
9833
  order?: ("asc" | "desc");
9834
+ matcher?: ("minimatch" | "regex");
9820
9835
  ignoreCase?: boolean;
9821
9836
  ignorePattern?: string[];
9837
+ partitionByComment?: (boolean | string | string[]);
9822
9838
  partitionByNewLine?: boolean;
9823
9839
  groupKind?: ("mixed" | "optional-first" | "required-first");
9824
9840
  groups?: (string | string[])[];
@@ -9831,14 +9847,18 @@ type PerfectionistSortIntersectionTypes = [] | [
9831
9847
  {
9832
9848
  type?: ("alphabetical" | "natural" | "line-length");
9833
9849
  order?: ("asc" | "desc");
9850
+ matcher?: ("minimatch" | "regex");
9834
9851
  ignoreCase?: boolean;
9835
9852
  groups?: (string | string[])[];
9853
+ partitionByComment?: (string[] | boolean | string);
9854
+ partitionByNewLine?: boolean;
9836
9855
  }
9837
9856
  ];
9838
9857
  type PerfectionistSortJsxProps = [] | [
9839
9858
  {
9840
9859
  type?: ("alphabetical" | "natural" | "line-length");
9841
9860
  order?: ("asc" | "desc");
9861
+ matcher?: ("minimatch" | "regex");
9842
9862
  ignoreCase?: boolean;
9843
9863
  ignorePattern?: string[];
9844
9864
  groups?: (string | string[])[];
@@ -9851,31 +9871,42 @@ type PerfectionistSortMaps = [] | [
9851
9871
  {
9852
9872
  type?: ("alphabetical" | "natural" | "line-length");
9853
9873
  order?: ("asc" | "desc");
9874
+ matcher?: ("minimatch" | "regex");
9854
9875
  ignoreCase?: boolean;
9876
+ partitionByComment?: (string[] | boolean | string);
9877
+ partitionByNewLine?: boolean;
9855
9878
  }
9856
9879
  ];
9857
9880
  type PerfectionistSortNamedExports = [] | [
9858
9881
  {
9859
9882
  type?: ("alphabetical" | "natural" | "line-length");
9860
9883
  order?: ("asc" | "desc");
9884
+ matcher?: ("minimatch" | "regex");
9861
9885
  ignoreCase?: boolean;
9862
9886
  groupKind?: ("mixed" | "values-first" | "types-first");
9887
+ partitionByComment?: (string[] | boolean | string);
9888
+ partitionByNewLine?: boolean;
9863
9889
  }
9864
9890
  ];
9865
9891
  type PerfectionistSortNamedImports = [] | [
9866
9892
  {
9867
9893
  type?: ("alphabetical" | "natural" | "line-length");
9868
9894
  order?: ("asc" | "desc");
9895
+ matcher?: ("minimatch" | "regex");
9869
9896
  ignoreCase?: boolean;
9870
9897
  ignoreAlias?: boolean;
9871
9898
  groupKind?: ("mixed" | "values-first" | "types-first");
9899
+ partitionByComment?: (string[] | boolean | string);
9900
+ partitionByNewLine?: boolean;
9872
9901
  }
9873
9902
  ];
9874
9903
  type PerfectionistSortObjectTypes = [] | [
9875
9904
  {
9876
9905
  type?: ("alphabetical" | "natural" | "line-length");
9877
9906
  order?: ("asc" | "desc");
9907
+ matcher?: ("minimatch" | "regex");
9878
9908
  ignoreCase?: boolean;
9909
+ partitionByComment?: (string[] | boolean | string);
9879
9910
  partitionByNewLine?: boolean;
9880
9911
  groupKind?: ("mixed" | "required-first" | "optional-first");
9881
9912
  groups?: (string | string[])[];
@@ -9888,6 +9919,7 @@ type PerfectionistSortObjects = [] | [
9888
9919
  {
9889
9920
  type?: ("alphabetical" | "natural" | "line-length");
9890
9921
  order?: ("asc" | "desc");
9922
+ matcher?: ("minimatch" | "regex");
9891
9923
  ignoreCase?: boolean;
9892
9924
  partitionByComment?: (string[] | boolean | string);
9893
9925
  partitionByNewLine?: boolean;
@@ -9904,14 +9936,18 @@ type PerfectionistSortSets = [] | [
9904
9936
  {
9905
9937
  type?: ("alphabetical" | "natural" | "line-length");
9906
9938
  order?: ("asc" | "desc");
9939
+ matcher?: ("minimatch" | "regex");
9907
9940
  ignoreCase?: boolean;
9908
9941
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9942
+ partitionByComment?: (string[] | boolean | string);
9943
+ partitionByNewLine?: boolean;
9909
9944
  }
9910
9945
  ];
9911
9946
  type PerfectionistSortSvelteAttributes = [] | [
9912
9947
  {
9913
9948
  type?: ("alphabetical" | "natural" | "line-length");
9914
9949
  order?: ("asc" | "desc");
9950
+ matcher?: ("minimatch" | "regex");
9915
9951
  ignoreCase?: boolean;
9916
9952
  groups?: (string | string[])[];
9917
9953
  customGroups?: {
@@ -9930,21 +9966,28 @@ type PerfectionistSortUnionTypes = [] | [
9930
9966
  {
9931
9967
  type?: ("alphabetical" | "natural" | "line-length");
9932
9968
  order?: ("asc" | "desc");
9969
+ matcher?: ("minimatch" | "regex");
9933
9970
  ignoreCase?: boolean;
9934
9971
  groups?: (string | string[])[];
9972
+ partitionByComment?: (string[] | boolean | string);
9973
+ partitionByNewLine?: boolean;
9935
9974
  }
9936
9975
  ];
9937
9976
  type PerfectionistSortVariableDeclarations = [] | [
9938
9977
  {
9939
9978
  type?: ("alphabetical" | "natural" | "line-length");
9940
9979
  order?: ("asc" | "desc");
9980
+ matcher?: ("minimatch" | "regex");
9941
9981
  ignoreCase?: boolean;
9982
+ partitionByComment?: (string[] | boolean | string);
9983
+ partitionByNewLine?: boolean;
9942
9984
  }
9943
9985
  ];
9944
9986
  type PerfectionistSortVueAttributes = [] | [
9945
9987
  {
9946
9988
  type?: ("alphabetical" | "natural" | "line-length");
9947
9989
  order?: ("asc" | "desc");
9990
+ matcher?: ("minimatch" | "regex");
9948
9991
  ignoreCase?: boolean;
9949
9992
  groups?: (string | string[])[];
9950
9993
  customGroups?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.0-beta.17",
4
+ "version": "3.0.0-beta.18",
5
5
  "packageManager": "pnpm@9.11.0",
6
6
  "description": "An opinionated ESLint config preset of ntnyq",
7
7
  "keywords": [
@@ -56,22 +56,22 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
59
- "@eslint/js": "^9.11.0",
60
- "@eslint/markdown": "^6.1.0",
59
+ "@eslint/js": "^9.11.1",
60
+ "@eslint/markdown": "^6.1.1",
61
61
  "@types/eslint__js": "^8.42.3",
62
- "@unocss/eslint-plugin": "^0.62.4",
62
+ "@unocss/eslint-plugin": "^0.63.1",
63
63
  "@vitest/eslint-plugin": "^1.1.4",
64
64
  "eslint-config-flat-gitignore": "^0.3.0",
65
65
  "eslint-flat-config-utils": "^0.4.0",
66
66
  "eslint-merge-processors": "^0.1.0",
67
67
  "eslint-plugin-antfu": "^2.7.0",
68
- "eslint-plugin-command": "^0.2.5",
69
- "eslint-plugin-import-x": "^4.2.1",
70
- "eslint-plugin-jsdoc": "^50.2.4",
68
+ "eslint-plugin-command": "^0.2.6",
69
+ "eslint-plugin-import-x": "^4.3.1",
70
+ "eslint-plugin-jsdoc": "^50.3.0",
71
71
  "eslint-plugin-jsonc": "^2.16.0",
72
72
  "eslint-plugin-n": "^17.10.3",
73
73
  "eslint-plugin-ntnyq": "^0.5.0",
74
- "eslint-plugin-perfectionist": "^3.6.0",
74
+ "eslint-plugin-perfectionist": "^3.8.0",
75
75
  "eslint-plugin-prettier": "^5.2.1",
76
76
  "eslint-plugin-regexp": "^2.6.0",
77
77
  "eslint-plugin-toml": "^0.11.1",
@@ -84,18 +84,18 @@
84
84
  "local-pkg": "^0.5.0",
85
85
  "prettier": "^3.3.3",
86
86
  "toml-eslint-parser": "^0.10.0",
87
- "typescript-eslint": "^8.6.0",
87
+ "typescript-eslint": "^8.8.0",
88
88
  "vue-eslint-parser": "^9.4.3",
89
89
  "yaml-eslint-parser": "^1.2.3"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@ntnyq/prettier-config": "^1.21.3",
93
- "@types/node": "^22.5.5",
94
- "bumpp": "^9.5.2",
95
- "eslint": "^9.11.0",
93
+ "@types/node": "^22.7.4",
94
+ "bumpp": "^9.6.1",
95
+ "eslint": "^9.11.1",
96
96
  "eslint-typegen": "^0.3.2",
97
97
  "husky": "^9.1.6",
98
- "jiti": "^1.21.6",
98
+ "jiti": "^2.0.0",
99
99
  "nano-staged": "^0.8.0",
100
100
  "npm-run-all2": "^6.2.3",
101
101
  "rimraf": "^6.0.1",