@sxzz/eslint-config 4.2.0 → 4.2.1

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 +87 -47
  2. package/package.json +19 -19
package/dist/index.d.ts CHANGED
@@ -713,6 +713,11 @@ interface Rules {
713
713
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
714
714
  */
715
715
  'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>;
716
+ /**
717
+ * Prevent using top-level await
718
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
719
+ */
720
+ 'antfu/no-top-level-await'?: Linter.RuleEntry<[]>;
716
721
  /**
717
722
  * Do not use `exports =`
718
723
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
@@ -1037,233 +1042,233 @@ interface Rules {
1037
1042
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
1038
1043
  /**
1039
1044
  * Enforce or ban the use of inline type-only markers for named imports.
1040
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
1045
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
1041
1046
  */
1042
1047
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
1043
1048
  /**
1044
1049
  * Ensure a default export is present, given a default import.
1045
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
1050
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
1046
1051
  */
1047
1052
  'import/default'?: Linter.RuleEntry<[]>;
1048
1053
  /**
1049
1054
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1050
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
1055
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
1051
1056
  */
1052
1057
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
1053
1058
  /**
1054
1059
  * Forbid any invalid exports, i.e. re-export of the same name.
1055
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
1060
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
1056
1061
  */
1057
1062
  'import/export'?: Linter.RuleEntry<[]>;
1058
1063
  /**
1059
1064
  * Ensure all exports appear after other statements.
1060
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
1065
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
1061
1066
  */
1062
1067
  'import/exports-last'?: Linter.RuleEntry<[]>;
1063
1068
  /**
1064
1069
  * Ensure consistent use of file extension within the import path.
1065
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
1070
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
1066
1071
  */
1067
1072
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
1068
1073
  /**
1069
1074
  * Ensure all imports appear before other statements.
1070
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
1075
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
1071
1076
  */
1072
1077
  'import/first'?: Linter.RuleEntry<ImportFirst>;
1073
1078
  /**
1074
1079
  * Prefer named exports to be grouped together in a single export declaration.
1075
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
1080
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
1076
1081
  */
1077
1082
  'import/group-exports'?: Linter.RuleEntry<[]>;
1078
1083
  /**
1079
1084
  * Replaced by `import-x/first`.
1080
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
1085
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
1081
1086
  * @deprecated
1082
1087
  */
1083
1088
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
1084
1089
  /**
1085
1090
  * Enforce the maximum number of dependencies a module can have.
1086
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
1091
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
1087
1092
  */
1088
1093
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
1089
1094
  /**
1090
1095
  * Ensure named imports correspond to a named export in the remote file.
1091
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
1096
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
1092
1097
  */
1093
1098
  'import/named'?: Linter.RuleEntry<ImportNamed>;
1094
1099
  /**
1095
1100
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1096
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
1101
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
1097
1102
  */
1098
1103
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
1099
1104
  /**
1100
1105
  * Enforce a newline after import statements.
1101
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
1106
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
1102
1107
  */
1103
1108
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
1104
1109
  /**
1105
1110
  * Forbid import of modules using absolute paths.
1106
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
1111
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
1107
1112
  */
1108
1113
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
1109
1114
  /**
1110
1115
  * Forbid AMD `require` and `define` calls.
1111
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
1116
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
1112
1117
  */
1113
1118
  'import/no-amd'?: Linter.RuleEntry<[]>;
1114
1119
  /**
1115
1120
  * Forbid anonymous values as default exports.
1116
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
1121
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
1117
1122
  */
1118
1123
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
1119
1124
  /**
1120
1125
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1121
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
1126
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
1122
1127
  */
1123
1128
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
1124
1129
  /**
1125
1130
  * Forbid a module from importing a module with a dependency path back to itself.
1126
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
1131
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
1127
1132
  */
1128
1133
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
1129
1134
  /**
1130
1135
  * Forbid default exports.
1131
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
1136
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
1132
1137
  */
1133
1138
  'import/no-default-export'?: Linter.RuleEntry<[]>;
1134
1139
  /**
1135
1140
  * Forbid imported names marked with `@deprecated` documentation tag.
1136
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
1141
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
1137
1142
  */
1138
1143
  'import/no-deprecated'?: Linter.RuleEntry<[]>;
1139
1144
  /**
1140
1145
  * Forbid repeated import of the same module in multiple places.
1141
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
1146
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
1142
1147
  */
1143
1148
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
1144
1149
  /**
1145
1150
  * Forbid `require()` calls with expressions.
1146
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
1151
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
1147
1152
  */
1148
1153
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
1149
1154
  /**
1150
1155
  * Forbid empty named import blocks.
1151
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
1156
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
1152
1157
  */
1153
1158
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
1154
1159
  /**
1155
1160
  * Forbid the use of extraneous packages.
1156
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
1161
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
1157
1162
  */
1158
1163
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
1159
1164
  /**
1160
1165
  * Forbid import statements with CommonJS module.exports.
1161
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
1166
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
1162
1167
  */
1163
1168
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
1164
1169
  /**
1165
1170
  * Forbid importing the submodules of other modules.
1166
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
1171
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
1167
1172
  */
1168
1173
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
1169
1174
  /**
1170
1175
  * Forbid the use of mutable exports with `var` or `let`.
1171
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
1176
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
1172
1177
  */
1173
1178
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
1174
1179
  /**
1175
1180
  * Forbid use of exported name as identifier of default export.
1176
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
1181
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
1177
1182
  */
1178
1183
  'import/no-named-as-default'?: Linter.RuleEntry<[]>;
1179
1184
  /**
1180
1185
  * Forbid use of exported name as property of default export.
1181
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
1186
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
1182
1187
  */
1183
1188
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
1184
1189
  /**
1185
1190
  * Forbid named default exports.
1186
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
1191
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
1187
1192
  */
1188
1193
  'import/no-named-default'?: Linter.RuleEntry<[]>;
1189
1194
  /**
1190
1195
  * Forbid named exports.
1191
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
1196
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
1192
1197
  */
1193
1198
  'import/no-named-export'?: Linter.RuleEntry<[]>;
1194
1199
  /**
1195
1200
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1196
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
1201
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
1197
1202
  */
1198
1203
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
1199
1204
  /**
1200
1205
  * Forbid Node.js builtin modules.
1201
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
1206
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
1202
1207
  */
1203
1208
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
1204
1209
  /**
1205
1210
  * Forbid importing packages through relative paths.
1206
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
1211
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
1207
1212
  */
1208
1213
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
1209
1214
  /**
1210
1215
  * Forbid importing modules from parent directories.
1211
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
1216
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
1212
1217
  */
1213
1218
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
1214
1219
  /**
1215
1220
  * Forbid importing a default export by a different name.
1216
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
1221
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
1217
1222
  */
1218
1223
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
1219
1224
  /**
1220
1225
  * Enforce which files can be imported in a given folder.
1221
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
1226
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
1222
1227
  */
1223
1228
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
1224
1229
  /**
1225
1230
  * Forbid a module from importing itself.
1226
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
1231
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
1227
1232
  */
1228
1233
  'import/no-self-import'?: Linter.RuleEntry<[]>;
1229
1234
  /**
1230
1235
  * Forbid unassigned imports.
1231
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
1236
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
1232
1237
  */
1233
1238
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
1234
1239
  /**
1235
1240
  * Ensure imports point to a file/module that can be resolved.
1236
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
1241
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
1237
1242
  */
1238
1243
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
1239
1244
  /**
1240
1245
  * Forbid modules without exports, or exports without matching import in another module.
1241
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
1246
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
1242
1247
  */
1243
1248
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
1244
1249
  /**
1245
1250
  * Forbid unnecessary path segments in import and require statements.
1246
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
1251
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
1247
1252
  */
1248
1253
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
1249
1254
  /**
1250
1255
  * Forbid webpack loader syntax in imports.
1251
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
1256
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
1252
1257
  */
1253
1258
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
1254
1259
  /**
1255
1260
  * Enforce a convention in module import order.
1256
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
1261
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
1257
1262
  */
1258
1263
  'import/order'?: Linter.RuleEntry<ImportOrder>;
1259
1264
  /**
1260
1265
  * Prefer a default export if module exports a single name or multiple names.
1261
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
1266
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
1262
1267
  */
1263
1268
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
1264
1269
  /**
1265
1270
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1266
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
1271
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
1267
1272
  */
1268
1273
  'import/unambiguous'?: Linter.RuleEntry<[]>;
1269
1274
  /**
@@ -6755,6 +6760,18 @@ type TypescriptEslintRestrictTemplateExpressions = [] | [
6755
6760
  allowNumber?: boolean;
6756
6761
  allowRegExp?: boolean;
6757
6762
  allowNever?: boolean;
6763
+ allow?: (string | {
6764
+ from: "file";
6765
+ name: (string | [string, ...(string)[]]);
6766
+ path?: string;
6767
+ } | {
6768
+ from: "lib";
6769
+ name: (string | [string, ...(string)[]]);
6770
+ } | {
6771
+ from: "package";
6772
+ name: (string | [string, ...(string)[]]);
6773
+ package: string;
6774
+ })[];
6758
6775
  }
6759
6776
  ];
6760
6777
  type TypescriptEslintReturnAwait = [] | [(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)];
@@ -6823,7 +6840,7 @@ type AccessorPairs = [] | [
6823
6840
  ];
6824
6841
  type AntfuConsistentChaining = [] | [
6825
6842
  {
6826
- allowFirstPropertyAccess?: boolean;
6843
+ allowLeadingPropertyAccess?: boolean;
6827
6844
  }
6828
6845
  ];
6829
6846
  type AntfuConsistentListNewline = [] | [
@@ -7785,6 +7802,7 @@ type JsdocRequireParam = [] | [
7785
7802
  enableRestElementFixer?: boolean;
7786
7803
  enableRootFixer?: boolean;
7787
7804
  exemptedBy?: string[];
7805
+ ignoreWhenAllParamsMissing?: boolean;
7788
7806
  unnamedRootBase?: string[];
7789
7807
  useDefaultObjectProperties?: boolean;
7790
7808
  }
@@ -9575,6 +9593,8 @@ type PerfectionistSortArrayIncludes = [] | [
9575
9593
  order?: ("asc" | "desc");
9576
9594
  ignoreCase?: boolean;
9577
9595
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9596
+ partitionByComment?: (string[] | boolean | string);
9597
+ partitionByNewLine?: boolean;
9578
9598
  }
9579
9599
  ];
9580
9600
  type PerfectionistSortAstroAttributes = [] | [
@@ -9626,6 +9646,7 @@ type PerfectionistSortEnums = [] | [
9626
9646
  sortByValue?: boolean;
9627
9647
  forceNumericSort?: boolean;
9628
9648
  partitionByComment?: (string[] | boolean | string);
9649
+ partitionByNewLine?: boolean;
9629
9650
  }
9630
9651
  ];
9631
9652
  type PerfectionistSortExports = [] | [
@@ -9633,6 +9654,9 @@ type PerfectionistSortExports = [] | [
9633
9654
  type?: ("alphabetical" | "natural" | "line-length");
9634
9655
  order?: ("asc" | "desc");
9635
9656
  ignoreCase?: boolean;
9657
+ partitionByComment?: (string[] | boolean | string);
9658
+ partitionByNewLine?: boolean;
9659
+ groupKind?: ("mixed" | "values-first" | "types-first");
9636
9660
  }
9637
9661
  ];
9638
9662
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
@@ -9668,6 +9692,7 @@ type PerfectionistSortInterfaces = [] | [
9668
9692
  order?: ("asc" | "desc");
9669
9693
  ignoreCase?: boolean;
9670
9694
  ignorePattern?: string[];
9695
+ partitionByComment?: (boolean | string | string[]);
9671
9696
  partitionByNewLine?: boolean;
9672
9697
  groupKind?: ("mixed" | "optional-first" | "required-first");
9673
9698
  groups?: (string | string[])[];
@@ -9682,6 +9707,8 @@ type PerfectionistSortIntersectionTypes = [] | [
9682
9707
  order?: ("asc" | "desc");
9683
9708
  ignoreCase?: boolean;
9684
9709
  groups?: (string | string[])[];
9710
+ partitionByComment?: (string[] | boolean | string);
9711
+ partitionByNewLine?: boolean;
9685
9712
  }
9686
9713
  ];
9687
9714
  type PerfectionistSortJsxProps = [] | [
@@ -9701,6 +9728,8 @@ type PerfectionistSortMaps = [] | [
9701
9728
  type?: ("alphabetical" | "natural" | "line-length");
9702
9729
  order?: ("asc" | "desc");
9703
9730
  ignoreCase?: boolean;
9731
+ partitionByComment?: (string[] | boolean | string);
9732
+ partitionByNewLine?: boolean;
9704
9733
  }
9705
9734
  ];
9706
9735
  type PerfectionistSortNamedExports = [] | [
@@ -9709,6 +9738,8 @@ type PerfectionistSortNamedExports = [] | [
9709
9738
  order?: ("asc" | "desc");
9710
9739
  ignoreCase?: boolean;
9711
9740
  groupKind?: ("mixed" | "values-first" | "types-first");
9741
+ partitionByComment?: (string[] | boolean | string);
9742
+ partitionByNewLine?: boolean;
9712
9743
  }
9713
9744
  ];
9714
9745
  type PerfectionistSortNamedImports = [] | [
@@ -9718,6 +9749,8 @@ type PerfectionistSortNamedImports = [] | [
9718
9749
  ignoreCase?: boolean;
9719
9750
  ignoreAlias?: boolean;
9720
9751
  groupKind?: ("mixed" | "values-first" | "types-first");
9752
+ partitionByComment?: (string[] | boolean | string);
9753
+ partitionByNewLine?: boolean;
9721
9754
  }
9722
9755
  ];
9723
9756
  type PerfectionistSortObjectTypes = [] | [
@@ -9725,6 +9758,7 @@ type PerfectionistSortObjectTypes = [] | [
9725
9758
  type?: ("alphabetical" | "natural" | "line-length");
9726
9759
  order?: ("asc" | "desc");
9727
9760
  ignoreCase?: boolean;
9761
+ partitionByComment?: (string[] | boolean | string);
9728
9762
  partitionByNewLine?: boolean;
9729
9763
  groupKind?: ("mixed" | "required-first" | "optional-first");
9730
9764
  groups?: (string | string[])[];
@@ -9755,6 +9789,8 @@ type PerfectionistSortSets = [] | [
9755
9789
  order?: ("asc" | "desc");
9756
9790
  ignoreCase?: boolean;
9757
9791
  groupKind?: ("mixed" | "literals-first" | "spreads-first");
9792
+ partitionByComment?: (string[] | boolean | string);
9793
+ partitionByNewLine?: boolean;
9758
9794
  }
9759
9795
  ];
9760
9796
  type PerfectionistSortSvelteAttributes = [] | [
@@ -9781,6 +9817,8 @@ type PerfectionistSortUnionTypes = [] | [
9781
9817
  order?: ("asc" | "desc");
9782
9818
  ignoreCase?: boolean;
9783
9819
  groups?: (string | string[])[];
9820
+ partitionByComment?: (string[] | boolean | string);
9821
+ partitionByNewLine?: boolean;
9784
9822
  }
9785
9823
  ];
9786
9824
  type PerfectionistSortVariableDeclarations = [] | [
@@ -9788,6 +9826,8 @@ type PerfectionistSortVariableDeclarations = [] | [
9788
9826
  type?: ("alphabetical" | "natural" | "line-length");
9789
9827
  order?: ("asc" | "desc");
9790
9828
  ignoreCase?: boolean;
9829
+ partitionByComment?: (string[] | boolean | string);
9830
+ partitionByNewLine?: boolean;
9791
9831
  }
9792
9832
  ];
9793
9833
  type PerfectionistSortVueAttributes = [] | [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,46 +30,46 @@
30
30
  "eslint": "^9.5.0"
31
31
  },
32
32
  "dependencies": {
33
- "@eslint/js": "^9.10.0",
34
- "@eslint/markdown": "^6.1.0",
35
- "@unocss/eslint-plugin": "^0.62.3",
33
+ "@eslint/js": "^9.11.1",
34
+ "@eslint/markdown": "^6.1.1",
35
+ "@unocss/eslint-plugin": "^0.63.1",
36
36
  "eslint-config-flat-gitignore": "^0.3.0",
37
37
  "eslint-config-prettier": "^9.1.0",
38
- "eslint-plugin-antfu": "^2.5.0",
39
- "eslint-plugin-command": "^0.2.4",
38
+ "eslint-plugin-antfu": "^2.7.0",
39
+ "eslint-plugin-command": "^0.2.6",
40
40
  "eslint-plugin-eslint-comments": "^3.2.0",
41
- "eslint-plugin-import-x": "^4.2.1",
42
- "eslint-plugin-jsdoc": "^50.2.2",
41
+ "eslint-plugin-import-x": "^4.3.1",
42
+ "eslint-plugin-jsdoc": "^50.3.0",
43
43
  "eslint-plugin-jsonc": "^2.16.0",
44
- "eslint-plugin-n": "^17.10.2",
45
- "eslint-plugin-perfectionist": "^3.5.0",
44
+ "eslint-plugin-n": "^17.10.3",
45
+ "eslint-plugin-perfectionist": "^3.7.0",
46
46
  "eslint-plugin-prettier": "^5.2.1",
47
47
  "eslint-plugin-regexp": "^2.6.0",
48
48
  "eslint-plugin-sxzz": "^0.1.0",
49
49
  "eslint-plugin-unicorn": "^55.0.0",
50
- "eslint-plugin-unused-imports": "^4.1.3",
50
+ "eslint-plugin-unused-imports": "^4.1.4",
51
51
  "eslint-plugin-vue": "^9.28.0",
52
52
  "eslint-plugin-yml": "^1.14.0",
53
53
  "globals": "^15.9.0",
54
54
  "jsonc-eslint-parser": "^2.4.0",
55
55
  "local-pkg": "^0.5.0",
56
56
  "prettier": "^3.3.3",
57
- "typescript-eslint": "^8.4.0",
57
+ "typescript-eslint": "^8.7.0",
58
58
  "vue-eslint-parser": "^9.4.3",
59
59
  "yaml-eslint-parser": "^1.2.3"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@eslint/config-inspector": "^0.5.4",
63
63
  "@sxzz/prettier-config": "^2.0.2",
64
- "@types/node": "^22.5.4",
65
- "bumpp": "^9.5.2",
66
- "eslint": "^9.10.0",
64
+ "@types/node": "^22.7.4",
65
+ "bumpp": "^9.6.1",
66
+ "eslint": "^9.11.1",
67
67
  "eslint-typegen": "^0.3.2",
68
- "importx": "^0.4.4",
68
+ "importx": "^0.5.0",
69
69
  "picocolors": "^1.1.0",
70
- "tsup": "^8.2.4",
71
- "tsx": "^4.19.0",
72
- "typescript": "^5.5.4"
70
+ "tsup": "^8.3.0",
71
+ "tsx": "^4.19.1",
72
+ "typescript": "^5.6.2"
73
73
  },
74
74
  "engines": {
75
75
  "node": "^18.18.0 || >=20.0.0"