@bfra.me/eslint-config 0.20.2 → 0.20.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.
package/lib/index.d.ts CHANGED
@@ -991,233 +991,233 @@ interface Rules {
991
991
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
992
992
  /**
993
993
  * Enforce or ban the use of inline type-only markers for named imports.
994
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/consistent-type-specifier-style.md
994
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/consistent-type-specifier-style.md
995
995
  */
996
996
  'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
997
997
  /**
998
998
  * Ensure a default export is present, given a default import.
999
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/default.md
999
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/default.md
1000
1000
  */
1001
1001
  'import-x/default'?: Linter.RuleEntry<[]>
1002
1002
  /**
1003
1003
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
1004
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/dynamic-import-chunkname.md
1004
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/dynamic-import-chunkname.md
1005
1005
  */
1006
1006
  'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
1007
1007
  /**
1008
1008
  * Forbid any invalid exports, i.e. re-export of the same name.
1009
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/export.md
1009
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/export.md
1010
1010
  */
1011
1011
  'import-x/export'?: Linter.RuleEntry<[]>
1012
1012
  /**
1013
1013
  * Ensure all exports appear after other statements.
1014
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/exports-last.md
1014
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/exports-last.md
1015
1015
  */
1016
1016
  'import-x/exports-last'?: Linter.RuleEntry<[]>
1017
1017
  /**
1018
1018
  * Ensure consistent use of file extension within the import path.
1019
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/extensions.md
1019
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/extensions.md
1020
1020
  */
1021
1021
  'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
1022
1022
  /**
1023
1023
  * Ensure all imports appear before other statements.
1024
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/first.md
1024
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/first.md
1025
1025
  */
1026
1026
  'import-x/first'?: Linter.RuleEntry<ImportXFirst>
1027
1027
  /**
1028
1028
  * Prefer named exports to be grouped together in a single export declaration.
1029
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/group-exports.md
1029
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/group-exports.md
1030
1030
  */
1031
1031
  'import-x/group-exports'?: Linter.RuleEntry<[]>
1032
1032
  /**
1033
1033
  * Replaced by `import-x/first`.
1034
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/imports-first.md
1034
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/imports-first.md
1035
1035
  * @deprecated
1036
1036
  */
1037
1037
  'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
1038
1038
  /**
1039
1039
  * Enforce the maximum number of dependencies a module can have.
1040
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/max-dependencies.md
1040
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/max-dependencies.md
1041
1041
  */
1042
1042
  'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
1043
1043
  /**
1044
1044
  * Ensure named imports correspond to a named export in the remote file.
1045
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/named.md
1045
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/named.md
1046
1046
  */
1047
1047
  'import-x/named'?: Linter.RuleEntry<ImportXNamed>
1048
1048
  /**
1049
1049
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1050
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/namespace.md
1050
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/namespace.md
1051
1051
  */
1052
1052
  'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
1053
1053
  /**
1054
1054
  * Enforce a newline after import statements.
1055
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/newline-after-import.md
1055
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/newline-after-import.md
1056
1056
  */
1057
1057
  'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
1058
1058
  /**
1059
1059
  * Forbid import of modules using absolute paths.
1060
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-absolute-path.md
1060
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-absolute-path.md
1061
1061
  */
1062
1062
  'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
1063
1063
  /**
1064
1064
  * Forbid AMD `require` and `define` calls.
1065
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-amd.md
1065
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-amd.md
1066
1066
  */
1067
1067
  'import-x/no-amd'?: Linter.RuleEntry<[]>
1068
1068
  /**
1069
1069
  * Forbid anonymous values as default exports.
1070
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-anonymous-default-export.md
1070
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-anonymous-default-export.md
1071
1071
  */
1072
1072
  'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
1073
1073
  /**
1074
1074
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1075
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-commonjs.md
1075
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-commonjs.md
1076
1076
  */
1077
1077
  'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
1078
1078
  /**
1079
1079
  * Forbid a module from importing a module with a dependency path back to itself.
1080
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-cycle.md
1080
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-cycle.md
1081
1081
  */
1082
1082
  'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
1083
1083
  /**
1084
1084
  * Forbid default exports.
1085
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-default-export.md
1085
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-default-export.md
1086
1086
  */
1087
1087
  'import-x/no-default-export'?: Linter.RuleEntry<[]>
1088
1088
  /**
1089
1089
  * Forbid imported names marked with `@deprecated` documentation tag.
1090
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-deprecated.md
1090
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-deprecated.md
1091
1091
  */
1092
1092
  'import-x/no-deprecated'?: Linter.RuleEntry<[]>
1093
1093
  /**
1094
1094
  * Forbid repeated import of the same module in multiple places.
1095
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-duplicates.md
1095
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-duplicates.md
1096
1096
  */
1097
1097
  'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
1098
1098
  /**
1099
1099
  * Forbid `require()` calls with expressions.
1100
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-dynamic-require.md
1100
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-dynamic-require.md
1101
1101
  */
1102
1102
  'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
1103
1103
  /**
1104
1104
  * Forbid empty named import blocks.
1105
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-empty-named-blocks.md
1105
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-empty-named-blocks.md
1106
1106
  */
1107
1107
  'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
1108
1108
  /**
1109
1109
  * Forbid the use of extraneous packages.
1110
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-extraneous-dependencies.md
1110
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-extraneous-dependencies.md
1111
1111
  */
1112
1112
  'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
1113
1113
  /**
1114
1114
  * Forbid import statements with CommonJS module.exports.
1115
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-import-module-exports.md
1115
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-import-module-exports.md
1116
1116
  */
1117
1117
  'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
1118
1118
  /**
1119
1119
  * Forbid importing the submodules of other modules.
1120
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-internal-modules.md
1120
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-internal-modules.md
1121
1121
  */
1122
1122
  'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
1123
1123
  /**
1124
1124
  * Forbid the use of mutable exports with `var` or `let`.
1125
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-mutable-exports.md
1125
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-mutable-exports.md
1126
1126
  */
1127
1127
  'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
1128
1128
  /**
1129
1129
  * Forbid use of exported name as identifier of default export.
1130
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-as-default.md
1130
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default.md
1131
1131
  */
1132
1132
  'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
1133
1133
  /**
1134
1134
  * Forbid use of exported name as property of default export.
1135
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-as-default-member.md
1135
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default-member.md
1136
1136
  */
1137
1137
  'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
1138
1138
  /**
1139
1139
  * Forbid named default exports.
1140
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-default.md
1140
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-default.md
1141
1141
  */
1142
1142
  'import-x/no-named-default'?: Linter.RuleEntry<[]>
1143
1143
  /**
1144
1144
  * Forbid named exports.
1145
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-export.md
1145
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-export.md
1146
1146
  */
1147
1147
  'import-x/no-named-export'?: Linter.RuleEntry<[]>
1148
1148
  /**
1149
1149
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1150
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-namespace.md
1150
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-namespace.md
1151
1151
  */
1152
1152
  'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
1153
1153
  /**
1154
1154
  * Forbid Node.js builtin modules.
1155
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-nodejs-modules.md
1155
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-nodejs-modules.md
1156
1156
  */
1157
1157
  'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
1158
1158
  /**
1159
1159
  * Forbid importing packages through relative paths.
1160
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-relative-packages.md
1160
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-packages.md
1161
1161
  */
1162
1162
  'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
1163
1163
  /**
1164
1164
  * Forbid importing modules from parent directories.
1165
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-relative-parent-imports.md
1165
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-parent-imports.md
1166
1166
  */
1167
1167
  'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
1168
1168
  /**
1169
1169
  * Forbid importing a default export by a different name.
1170
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-rename-default.md
1170
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-rename-default.md
1171
1171
  */
1172
1172
  'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
1173
1173
  /**
1174
1174
  * Enforce which files can be imported in a given folder.
1175
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-restricted-paths.md
1175
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-restricted-paths.md
1176
1176
  */
1177
1177
  'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
1178
1178
  /**
1179
1179
  * Forbid a module from importing itself.
1180
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-self-import.md
1180
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-self-import.md
1181
1181
  */
1182
1182
  'import-x/no-self-import'?: Linter.RuleEntry<[]>
1183
1183
  /**
1184
1184
  * Forbid unassigned imports.
1185
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-unassigned-import.md
1185
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unassigned-import.md
1186
1186
  */
1187
1187
  'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
1188
1188
  /**
1189
1189
  * Ensure imports point to a file/module that can be resolved.
1190
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-unresolved.md
1190
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unresolved.md
1191
1191
  */
1192
1192
  'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
1193
1193
  /**
1194
1194
  * Forbid modules without exports, or exports without matching import in another module.
1195
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-unused-modules.md
1195
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unused-modules.md
1196
1196
  */
1197
1197
  'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
1198
1198
  /**
1199
1199
  * Forbid unnecessary path segments in import and require statements.
1200
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-useless-path-segments.md
1200
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-useless-path-segments.md
1201
1201
  */
1202
1202
  'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
1203
1203
  /**
1204
1204
  * Forbid webpack loader syntax in imports.
1205
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-webpack-loader-syntax.md
1205
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-webpack-loader-syntax.md
1206
1206
  */
1207
1207
  'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
1208
1208
  /**
1209
1209
  * Enforce a convention in module import order.
1210
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/order.md
1210
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/order.md
1211
1211
  */
1212
1212
  'import-x/order'?: Linter.RuleEntry<ImportXOrder>
1213
1213
  /**
1214
1214
  * Prefer a default export if module exports a single name or multiple names.
1215
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/prefer-default-export.md
1215
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/prefer-default-export.md
1216
1216
  */
1217
1217
  'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
1218
1218
  /**
1219
1219
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1220
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/unambiguous.md
1220
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/unambiguous.md
1221
1221
  */
1222
1222
  'import-x/unambiguous'?: Linter.RuleEntry<[]>
1223
1223
  /**
package/lib/index.js CHANGED
@@ -649,7 +649,7 @@ __name(jsdoc, "jsdoc");
649
649
  import { fileURLToPath } from "node:url";
650
650
 
651
651
  // package.json
652
- var version = "0.20.2";
652
+ var version = "0.20.4";
653
653
 
654
654
  // src/parsers/any-parser.ts
655
655
  var lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/eslint-config",
3
- "version": "0.20.2",
3
+ "version": "0.20.4",
4
4
  "description": "Shared ESLint configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -42,8 +42,8 @@
42
42
  "eslint-config-flat-gitignore": "2.1.0",
43
43
  "eslint-flat-config-utils": "2.0.1",
44
44
  "eslint-plugin-command": "3.2.0",
45
- "eslint-plugin-import-x": "4.10.6",
46
- "eslint-plugin-jsdoc": "50.6.10",
45
+ "eslint-plugin-import-x": "4.11.0",
46
+ "eslint-plugin-jsdoc": "50.6.11",
47
47
  "eslint-plugin-json-schema-validator": "5.4.0",
48
48
  "eslint-plugin-jsonc": "2.20.0",
49
49
  "eslint-plugin-n": "17.17.0",
@@ -58,13 +58,13 @@
58
58
  "local-pkg": "1.1.1",
59
59
  "package-manager-detector": "1.2.0",
60
60
  "pkg-dir": "8.0.0",
61
- "typescript-eslint": "8.31.0"
61
+ "typescript-eslint": "8.31.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@eslint/config-inspector": "1.0.2",
65
65
  "@eslint/js": "9.25.1",
66
66
  "@types/eslint-config-prettier": "6.11.3",
67
- "@typescript-eslint/types": "8.31.0",
67
+ "@typescript-eslint/types": "8.31.1",
68
68
  "@vitest/eslint-plugin": "1.1.43",
69
69
  "eslint": "9.25.1",
70
70
  "eslint-config-prettier": "10.1.2",
@@ -73,10 +73,10 @@
73
73
  "eslint-plugin-prettier": "5.2.6",
74
74
  "eslint-typegen": "2.1.0",
75
75
  "tsup": "8.4.0",
76
- "tsx": "4.19.3",
77
- "@bfra.me/eslint-config": "0.20.2",
78
- "@bfra.me/prettier-config": "0.15.4",
79
- "@bfra.me/tsconfig": "0.9.7"
76
+ "tsx": "4.19.4",
77
+ "@bfra.me/eslint-config": "0.20.4",
78
+ "@bfra.me/tsconfig": "0.9.7",
79
+ "@bfra.me/prettier-config": "0.15.4"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@vitest/eslint-plugin": "^1.1.21",
package/src/rules.d.ts CHANGED
@@ -984,233 +984,233 @@ export interface Rules {
984
984
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
985
985
  /**
986
986
  * Enforce or ban the use of inline type-only markers for named imports.
987
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/consistent-type-specifier-style.md
987
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/consistent-type-specifier-style.md
988
988
  */
989
989
  'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
990
990
  /**
991
991
  * Ensure a default export is present, given a default import.
992
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/default.md
992
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/default.md
993
993
  */
994
994
  'import-x/default'?: Linter.RuleEntry<[]>
995
995
  /**
996
996
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
997
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/dynamic-import-chunkname.md
997
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/dynamic-import-chunkname.md
998
998
  */
999
999
  'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
1000
1000
  /**
1001
1001
  * Forbid any invalid exports, i.e. re-export of the same name.
1002
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/export.md
1002
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/export.md
1003
1003
  */
1004
1004
  'import-x/export'?: Linter.RuleEntry<[]>
1005
1005
  /**
1006
1006
  * Ensure all exports appear after other statements.
1007
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/exports-last.md
1007
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/exports-last.md
1008
1008
  */
1009
1009
  'import-x/exports-last'?: Linter.RuleEntry<[]>
1010
1010
  /**
1011
1011
  * Ensure consistent use of file extension within the import path.
1012
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/extensions.md
1012
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/extensions.md
1013
1013
  */
1014
1014
  'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
1015
1015
  /**
1016
1016
  * Ensure all imports appear before other statements.
1017
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/first.md
1017
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/first.md
1018
1018
  */
1019
1019
  'import-x/first'?: Linter.RuleEntry<ImportXFirst>
1020
1020
  /**
1021
1021
  * Prefer named exports to be grouped together in a single export declaration.
1022
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/group-exports.md
1022
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/group-exports.md
1023
1023
  */
1024
1024
  'import-x/group-exports'?: Linter.RuleEntry<[]>
1025
1025
  /**
1026
1026
  * Replaced by `import-x/first`.
1027
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/imports-first.md
1027
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/imports-first.md
1028
1028
  * @deprecated
1029
1029
  */
1030
1030
  'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
1031
1031
  /**
1032
1032
  * Enforce the maximum number of dependencies a module can have.
1033
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/max-dependencies.md
1033
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/max-dependencies.md
1034
1034
  */
1035
1035
  'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
1036
1036
  /**
1037
1037
  * Ensure named imports correspond to a named export in the remote file.
1038
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/named.md
1038
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/named.md
1039
1039
  */
1040
1040
  'import-x/named'?: Linter.RuleEntry<ImportXNamed>
1041
1041
  /**
1042
1042
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
1043
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/namespace.md
1043
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/namespace.md
1044
1044
  */
1045
1045
  'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
1046
1046
  /**
1047
1047
  * Enforce a newline after import statements.
1048
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/newline-after-import.md
1048
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/newline-after-import.md
1049
1049
  */
1050
1050
  'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
1051
1051
  /**
1052
1052
  * Forbid import of modules using absolute paths.
1053
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-absolute-path.md
1053
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-absolute-path.md
1054
1054
  */
1055
1055
  'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
1056
1056
  /**
1057
1057
  * Forbid AMD `require` and `define` calls.
1058
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-amd.md
1058
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-amd.md
1059
1059
  */
1060
1060
  'import-x/no-amd'?: Linter.RuleEntry<[]>
1061
1061
  /**
1062
1062
  * Forbid anonymous values as default exports.
1063
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-anonymous-default-export.md
1063
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-anonymous-default-export.md
1064
1064
  */
1065
1065
  'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
1066
1066
  /**
1067
1067
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
1068
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-commonjs.md
1068
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-commonjs.md
1069
1069
  */
1070
1070
  'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
1071
1071
  /**
1072
1072
  * Forbid a module from importing a module with a dependency path back to itself.
1073
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-cycle.md
1073
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-cycle.md
1074
1074
  */
1075
1075
  'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
1076
1076
  /**
1077
1077
  * Forbid default exports.
1078
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-default-export.md
1078
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-default-export.md
1079
1079
  */
1080
1080
  'import-x/no-default-export'?: Linter.RuleEntry<[]>
1081
1081
  /**
1082
1082
  * Forbid imported names marked with `@deprecated` documentation tag.
1083
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-deprecated.md
1083
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-deprecated.md
1084
1084
  */
1085
1085
  'import-x/no-deprecated'?: Linter.RuleEntry<[]>
1086
1086
  /**
1087
1087
  * Forbid repeated import of the same module in multiple places.
1088
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-duplicates.md
1088
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-duplicates.md
1089
1089
  */
1090
1090
  'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
1091
1091
  /**
1092
1092
  * Forbid `require()` calls with expressions.
1093
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-dynamic-require.md
1093
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-dynamic-require.md
1094
1094
  */
1095
1095
  'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
1096
1096
  /**
1097
1097
  * Forbid empty named import blocks.
1098
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-empty-named-blocks.md
1098
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-empty-named-blocks.md
1099
1099
  */
1100
1100
  'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
1101
1101
  /**
1102
1102
  * Forbid the use of extraneous packages.
1103
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-extraneous-dependencies.md
1103
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-extraneous-dependencies.md
1104
1104
  */
1105
1105
  'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
1106
1106
  /**
1107
1107
  * Forbid import statements with CommonJS module.exports.
1108
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-import-module-exports.md
1108
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-import-module-exports.md
1109
1109
  */
1110
1110
  'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
1111
1111
  /**
1112
1112
  * Forbid importing the submodules of other modules.
1113
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-internal-modules.md
1113
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-internal-modules.md
1114
1114
  */
1115
1115
  'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
1116
1116
  /**
1117
1117
  * Forbid the use of mutable exports with `var` or `let`.
1118
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-mutable-exports.md
1118
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-mutable-exports.md
1119
1119
  */
1120
1120
  'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
1121
1121
  /**
1122
1122
  * Forbid use of exported name as identifier of default export.
1123
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-as-default.md
1123
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default.md
1124
1124
  */
1125
1125
  'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
1126
1126
  /**
1127
1127
  * Forbid use of exported name as property of default export.
1128
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-as-default-member.md
1128
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default-member.md
1129
1129
  */
1130
1130
  'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
1131
1131
  /**
1132
1132
  * Forbid named default exports.
1133
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-default.md
1133
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-default.md
1134
1134
  */
1135
1135
  'import-x/no-named-default'?: Linter.RuleEntry<[]>
1136
1136
  /**
1137
1137
  * Forbid named exports.
1138
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-named-export.md
1138
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-export.md
1139
1139
  */
1140
1140
  'import-x/no-named-export'?: Linter.RuleEntry<[]>
1141
1141
  /**
1142
1142
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
1143
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-namespace.md
1143
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-namespace.md
1144
1144
  */
1145
1145
  'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
1146
1146
  /**
1147
1147
  * Forbid Node.js builtin modules.
1148
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-nodejs-modules.md
1148
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-nodejs-modules.md
1149
1149
  */
1150
1150
  'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
1151
1151
  /**
1152
1152
  * Forbid importing packages through relative paths.
1153
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-relative-packages.md
1153
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-packages.md
1154
1154
  */
1155
1155
  'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
1156
1156
  /**
1157
1157
  * Forbid importing modules from parent directories.
1158
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-relative-parent-imports.md
1158
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-parent-imports.md
1159
1159
  */
1160
1160
  'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
1161
1161
  /**
1162
1162
  * Forbid importing a default export by a different name.
1163
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-rename-default.md
1163
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-rename-default.md
1164
1164
  */
1165
1165
  'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
1166
1166
  /**
1167
1167
  * Enforce which files can be imported in a given folder.
1168
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-restricted-paths.md
1168
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-restricted-paths.md
1169
1169
  */
1170
1170
  'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
1171
1171
  /**
1172
1172
  * Forbid a module from importing itself.
1173
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-self-import.md
1173
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-self-import.md
1174
1174
  */
1175
1175
  'import-x/no-self-import'?: Linter.RuleEntry<[]>
1176
1176
  /**
1177
1177
  * Forbid unassigned imports.
1178
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-unassigned-import.md
1178
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unassigned-import.md
1179
1179
  */
1180
1180
  'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
1181
1181
  /**
1182
1182
  * Ensure imports point to a file/module that can be resolved.
1183
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-unresolved.md
1183
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unresolved.md
1184
1184
  */
1185
1185
  'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
1186
1186
  /**
1187
1187
  * Forbid modules without exports, or exports without matching import in another module.
1188
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-unused-modules.md
1188
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unused-modules.md
1189
1189
  */
1190
1190
  'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
1191
1191
  /**
1192
1192
  * Forbid unnecessary path segments in import and require statements.
1193
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-useless-path-segments.md
1193
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-useless-path-segments.md
1194
1194
  */
1195
1195
  'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
1196
1196
  /**
1197
1197
  * Forbid webpack loader syntax in imports.
1198
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/no-webpack-loader-syntax.md
1198
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-webpack-loader-syntax.md
1199
1199
  */
1200
1200
  'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
1201
1201
  /**
1202
1202
  * Enforce a convention in module import order.
1203
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/order.md
1203
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/order.md
1204
1204
  */
1205
1205
  'import-x/order'?: Linter.RuleEntry<ImportXOrder>
1206
1206
  /**
1207
1207
  * Prefer a default export if module exports a single name or multiple names.
1208
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/prefer-default-export.md
1208
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/prefer-default-export.md
1209
1209
  */
1210
1210
  'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
1211
1211
  /**
1212
1212
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1213
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.6/docs/rules/unambiguous.md
1213
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/unambiguous.md
1214
1214
  */
1215
1215
  'import-x/unambiguous'?: Linter.RuleEntry<[]>
1216
1216
  /**