@bfra.me/eslint-config 0.3.1 → 0.3.2
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 +57 -47
- package/package.json +21 -21
- package/src/types.ts +58 -47
package/lib/index.d.ts
CHANGED
|
@@ -222,7 +222,7 @@ interface Rules {
|
|
|
222
222
|
*/
|
|
223
223
|
'@typescript-eslint/no-array-delete'?: Linter.RuleEntry<[]>;
|
|
224
224
|
/**
|
|
225
|
-
* Require `.toString()` to only be called on objects which provide useful information when stringified
|
|
225
|
+
* Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified
|
|
226
226
|
* @see https://typescript-eslint.io/rules/no-base-to-string
|
|
227
227
|
*/
|
|
228
228
|
'@typescript-eslint/no-base-to-string'?: Linter.RuleEntry<TypescriptEslintNoBaseToString>;
|
|
@@ -1051,233 +1051,233 @@ interface Rules {
|
|
|
1051
1051
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1054
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1054
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/consistent-type-specifier-style.md
|
|
1055
1055
|
*/
|
|
1056
1056
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Ensure a default export is present, given a default import.
|
|
1059
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1059
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/default.md
|
|
1060
1060
|
*/
|
|
1061
1061
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1064
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1064
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/dynamic-import-chunkname.md
|
|
1065
1065
|
*/
|
|
1066
1066
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1069
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1069
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/export.md
|
|
1070
1070
|
*/
|
|
1071
1071
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Ensure all exports appear after other statements.
|
|
1074
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1074
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/exports-last.md
|
|
1075
1075
|
*/
|
|
1076
1076
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Ensure consistent use of file extension within the import path.
|
|
1079
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1079
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/extensions.md
|
|
1080
1080
|
*/
|
|
1081
1081
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Ensure all imports appear before other statements.
|
|
1084
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1084
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/first.md
|
|
1085
1085
|
*/
|
|
1086
1086
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1089
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1089
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/group-exports.md
|
|
1090
1090
|
*/
|
|
1091
1091
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Replaced by `import-x/first`.
|
|
1094
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1094
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/imports-first.md
|
|
1095
1095
|
* @deprecated
|
|
1096
1096
|
*/
|
|
1097
1097
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Enforce the maximum number of dependencies a module can have.
|
|
1100
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1100
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/max-dependencies.md
|
|
1101
1101
|
*/
|
|
1102
1102
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1105
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1105
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/named.md
|
|
1106
1106
|
*/
|
|
1107
1107
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1110
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1110
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/namespace.md
|
|
1111
1111
|
*/
|
|
1112
1112
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Enforce a newline after import statements.
|
|
1115
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1115
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/newline-after-import.md
|
|
1116
1116
|
*/
|
|
1117
1117
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Forbid import of modules using absolute paths.
|
|
1120
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1120
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-absolute-path.md
|
|
1121
1121
|
*/
|
|
1122
1122
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Forbid AMD `require` and `define` calls.
|
|
1125
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1125
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-amd.md
|
|
1126
1126
|
*/
|
|
1127
1127
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
1128
1128
|
/**
|
|
1129
1129
|
* Forbid anonymous values as default exports.
|
|
1130
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1130
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-anonymous-default-export.md
|
|
1131
1131
|
*/
|
|
1132
1132
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1135
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1135
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-commonjs.md
|
|
1136
1136
|
*/
|
|
1137
1137
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1140
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1140
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-cycle.md
|
|
1141
1141
|
*/
|
|
1142
1142
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Forbid default exports.
|
|
1145
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1145
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-default-export.md
|
|
1146
1146
|
*/
|
|
1147
1147
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1150
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1150
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-deprecated.md
|
|
1151
1151
|
*/
|
|
1152
1152
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Forbid repeated import of the same module in multiple places.
|
|
1155
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1155
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-duplicates.md
|
|
1156
1156
|
*/
|
|
1157
1157
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Forbid `require()` calls with expressions.
|
|
1160
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1160
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-dynamic-require.md
|
|
1161
1161
|
*/
|
|
1162
1162
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
1163
1163
|
/**
|
|
1164
1164
|
* Forbid empty named import blocks.
|
|
1165
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1165
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-empty-named-blocks.md
|
|
1166
1166
|
*/
|
|
1167
1167
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Forbid the use of extraneous packages.
|
|
1170
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1170
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-extraneous-dependencies.md
|
|
1171
1171
|
*/
|
|
1172
1172
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Forbid import statements with CommonJS module.exports.
|
|
1175
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1175
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-import-module-exports.md
|
|
1176
1176
|
*/
|
|
1177
1177
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
1178
1178
|
/**
|
|
1179
1179
|
* Forbid importing the submodules of other modules.
|
|
1180
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1180
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-internal-modules.md
|
|
1181
1181
|
*/
|
|
1182
1182
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1185
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1185
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-mutable-exports.md
|
|
1186
1186
|
*/
|
|
1187
1187
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
1188
1188
|
/**
|
|
1189
1189
|
* Forbid use of exported name as identifier of default export.
|
|
1190
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1190
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-as-default.md
|
|
1191
1191
|
*/
|
|
1192
1192
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Forbid use of exported name as property of default export.
|
|
1195
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1195
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-as-default-member.md
|
|
1196
1196
|
*/
|
|
1197
1197
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Forbid named default exports.
|
|
1200
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1200
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-default.md
|
|
1201
1201
|
*/
|
|
1202
1202
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
1203
1203
|
/**
|
|
1204
1204
|
* Forbid named exports.
|
|
1205
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1205
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-export.md
|
|
1206
1206
|
*/
|
|
1207
1207
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1210
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1210
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-namespace.md
|
|
1211
1211
|
*/
|
|
1212
1212
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
1213
1213
|
/**
|
|
1214
1214
|
* Forbid Node.js builtin modules.
|
|
1215
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1215
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-nodejs-modules.md
|
|
1216
1216
|
*/
|
|
1217
1217
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Forbid importing packages through relative paths.
|
|
1220
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1220
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-relative-packages.md
|
|
1221
1221
|
*/
|
|
1222
1222
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Forbid importing modules from parent directories.
|
|
1225
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1225
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-relative-parent-imports.md
|
|
1226
1226
|
*/
|
|
1227
1227
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Forbid importing a default export by a different name.
|
|
1230
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1230
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-rename-default.md
|
|
1231
1231
|
*/
|
|
1232
1232
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Enforce which files can be imported in a given folder.
|
|
1235
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1235
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-restricted-paths.md
|
|
1236
1236
|
*/
|
|
1237
1237
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
1238
1238
|
/**
|
|
1239
1239
|
* Forbid a module from importing itself.
|
|
1240
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1240
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-self-import.md
|
|
1241
1241
|
*/
|
|
1242
1242
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
1243
1243
|
/**
|
|
1244
1244
|
* Forbid unassigned imports.
|
|
1245
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1245
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-unassigned-import.md
|
|
1246
1246
|
*/
|
|
1247
1247
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Ensure imports point to a file/module that can be resolved.
|
|
1250
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1250
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-unresolved.md
|
|
1251
1251
|
*/
|
|
1252
1252
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
1253
1253
|
/**
|
|
1254
1254
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1255
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1255
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-unused-modules.md
|
|
1256
1256
|
*/
|
|
1257
1257
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Forbid unnecessary path segments in import and require statements.
|
|
1260
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1260
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-useless-path-segments.md
|
|
1261
1261
|
*/
|
|
1262
1262
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
1263
1263
|
/**
|
|
1264
1264
|
* Forbid webpack loader syntax in imports.
|
|
1265
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1265
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-webpack-loader-syntax.md
|
|
1266
1266
|
*/
|
|
1267
1267
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
1268
1268
|
/**
|
|
1269
1269
|
* Enforce a convention in module import order.
|
|
1270
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1270
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/order.md
|
|
1271
1271
|
*/
|
|
1272
1272
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
1273
1273
|
/**
|
|
1274
1274
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1275
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1275
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/prefer-default-export.md
|
|
1276
1276
|
*/
|
|
1277
1277
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/unambiguous.md
|
|
1281
1281
|
*/
|
|
1282
1282
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
1283
1283
|
/**
|
|
@@ -1428,6 +1428,7 @@ interface Rules {
|
|
|
1428
1428
|
*/
|
|
1429
1429
|
'jsdoc/no-missing-syntax'?: Linter.RuleEntry<JsdocNoMissingSyntax>;
|
|
1430
1430
|
/**
|
|
1431
|
+
* Prevents use of multiple asterisks at the beginning of lines.
|
|
1431
1432
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-multi-asterisks.md#repos-sticky-header
|
|
1432
1433
|
*/
|
|
1433
1434
|
'jsdoc/no-multi-asterisks'?: Linter.RuleEntry<JsdocNoMultiAsterisks>;
|
|
@@ -1572,6 +1573,7 @@ interface Rules {
|
|
|
1572
1573
|
*/
|
|
1573
1574
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>;
|
|
1574
1575
|
/**
|
|
1576
|
+
* Auto-escape certain characters that are input within block and tag descriptions.
|
|
1575
1577
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
1576
1578
|
*/
|
|
1577
1579
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
|
|
@@ -3200,6 +3202,11 @@ interface Rules {
|
|
|
3200
3202
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
3201
3203
|
*/
|
|
3202
3204
|
'vitest/prefer-todo'?: Linter.RuleEntry<[]>;
|
|
3205
|
+
/**
|
|
3206
|
+
* Prefer `vi.mocked()` over `fn as Mock`
|
|
3207
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
3208
|
+
*/
|
|
3209
|
+
'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
3203
3210
|
/**
|
|
3204
3211
|
* require setup and teardown to be within a hook
|
|
3205
3212
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -4173,6 +4180,7 @@ type TypescriptEslintStrictBooleanExpressions = [] | [
|
|
|
4173
4180
|
type TypescriptEslintSwitchExhaustivenessCheck = [] | [
|
|
4174
4181
|
{
|
|
4175
4182
|
allowDefaultCaseForExhaustiveSwitch?: boolean;
|
|
4183
|
+
considerDefaultExhaustiveForUnions?: boolean;
|
|
4176
4184
|
requireDefaultForNonUnion?: boolean;
|
|
4177
4185
|
}
|
|
4178
4186
|
];
|
|
@@ -4485,6 +4493,7 @@ type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] |
|
|
|
4485
4493
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
4486
4494
|
};
|
|
4487
4495
|
ignorePackages?: boolean;
|
|
4496
|
+
checkTypeImports?: boolean;
|
|
4488
4497
|
[k: string]: unknown | undefined;
|
|
4489
4498
|
}
|
|
4490
4499
|
] | [] | [
|
|
@@ -4493,6 +4502,7 @@ type ImportXExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] |
|
|
|
4493
4502
|
[k: string]: ("always" | "ignorePackages" | "never");
|
|
4494
4503
|
};
|
|
4495
4504
|
ignorePackages?: boolean;
|
|
4505
|
+
checkTypeImports?: boolean;
|
|
4496
4506
|
[k: string]: unknown | undefined;
|
|
4497
4507
|
}
|
|
4498
4508
|
] | [] | [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bfra.me/eslint-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Shared ESLint configuration for bfra.me",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bfra.me",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bugs": "https://github.com/bfra-me/works/issues",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/bfra-me/works.git",
|
|
18
|
+
"url": "git+https://github.com/bfra-me/works.git",
|
|
19
19
|
"directory": "packages/eslint-config"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
@@ -38,41 +38,41 @@
|
|
|
38
38
|
],
|
|
39
39
|
"prettier": "@bfra.me/prettier-config",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.4.
|
|
41
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
42
42
|
"eslint-config-flat-gitignore": "0.3.0",
|
|
43
43
|
"eslint-flat-config-utils": "0.4.0",
|
|
44
|
-
"eslint-plugin-command": "0.2.
|
|
45
|
-
"eslint-plugin-import-x": "4.
|
|
46
|
-
"eslint-plugin-jsdoc": "50.4.
|
|
47
|
-
"eslint-plugin-perfectionist": "3.9.
|
|
44
|
+
"eslint-plugin-command": "0.2.6",
|
|
45
|
+
"eslint-plugin-import-x": "4.4.0",
|
|
46
|
+
"eslint-plugin-jsdoc": "50.4.3",
|
|
47
|
+
"eslint-plugin-perfectionist": "3.9.1",
|
|
48
48
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
49
49
|
"globals": "15.11.0",
|
|
50
50
|
"is-in-ci": "1.0.0",
|
|
51
51
|
"local-pkg": "0.5.0",
|
|
52
|
-
"typescript-eslint": "8.
|
|
52
|
+
"typescript-eslint": "8.12.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@eslint/config-inspector": "0.5.
|
|
55
|
+
"@eslint/config-inspector": "0.5.6",
|
|
56
56
|
"@eslint/js": "9.13.0",
|
|
57
57
|
"@types/eslint__js": "8.42.3",
|
|
58
58
|
"@types/fs-extra": "11.0.4",
|
|
59
|
-
"@types/node": "20.
|
|
60
|
-
"@typescript-eslint/types": "8.
|
|
61
|
-
"@vitest/eslint-plugin": "1.1.
|
|
62
|
-
"eslint": "9.
|
|
59
|
+
"@types/node": "20.17.3",
|
|
60
|
+
"@typescript-eslint/types": "8.12.2",
|
|
61
|
+
"@vitest/eslint-plugin": "1.1.7",
|
|
62
|
+
"eslint": "9.13.0",
|
|
63
63
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
64
64
|
"eslint-typegen": "0.3.2",
|
|
65
|
-
"execa": "9.
|
|
65
|
+
"execa": "9.5.1",
|
|
66
66
|
"fast-glob": "3.3.2",
|
|
67
67
|
"fs-extra": "11.2.0",
|
|
68
|
-
"jiti": "2.3.
|
|
68
|
+
"jiti": "2.3.3",
|
|
69
69
|
"prettier": "3.3.3",
|
|
70
|
-
"tsup": "8.3.
|
|
71
|
-
"tsx": "4.19.
|
|
72
|
-
"vitest": "2.1.
|
|
73
|
-
"@bfra.me/eslint-config": "0.3.
|
|
74
|
-
"@bfra.me/
|
|
75
|
-
"@bfra.me/
|
|
70
|
+
"tsup": "8.3.5",
|
|
71
|
+
"tsx": "4.19.2",
|
|
72
|
+
"vitest": "2.1.4",
|
|
73
|
+
"@bfra.me/eslint-config": "0.3.2",
|
|
74
|
+
"@bfra.me/tsconfig": "0.9.0",
|
|
75
|
+
"@bfra.me/prettier-config": "0.8.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@vitest/eslint-plugin": "^1.1.4",
|
package/src/types.ts
CHANGED
|
@@ -136,7 +136,7 @@ export interface Rules {
|
|
|
136
136
|
*/
|
|
137
137
|
'@typescript-eslint/no-array-delete'?: Linter.RuleEntry<[]>
|
|
138
138
|
/**
|
|
139
|
-
* Require `.toString()` to only be called on objects which provide useful information when stringified
|
|
139
|
+
* Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified
|
|
140
140
|
* @see https://typescript-eslint.io/rules/no-base-to-string
|
|
141
141
|
*/
|
|
142
142
|
'@typescript-eslint/no-base-to-string'?: Linter.RuleEntry<TypescriptEslintNoBaseToString>
|
|
@@ -965,233 +965,233 @@ export interface Rules {
|
|
|
965
965
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
966
966
|
/**
|
|
967
967
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
968
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
968
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/consistent-type-specifier-style.md
|
|
969
969
|
*/
|
|
970
970
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
971
971
|
/**
|
|
972
972
|
* Ensure a default export is present, given a default import.
|
|
973
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
973
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/default.md
|
|
974
974
|
*/
|
|
975
975
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
976
976
|
/**
|
|
977
977
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
978
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
978
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/dynamic-import-chunkname.md
|
|
979
979
|
*/
|
|
980
980
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
981
981
|
/**
|
|
982
982
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
983
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
983
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/export.md
|
|
984
984
|
*/
|
|
985
985
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
986
986
|
/**
|
|
987
987
|
* Ensure all exports appear after other statements.
|
|
988
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
988
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/exports-last.md
|
|
989
989
|
*/
|
|
990
990
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
991
991
|
/**
|
|
992
992
|
* Ensure consistent use of file extension within the import path.
|
|
993
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
993
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/extensions.md
|
|
994
994
|
*/
|
|
995
995
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
996
996
|
/**
|
|
997
997
|
* Ensure all imports appear before other statements.
|
|
998
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
998
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/first.md
|
|
999
999
|
*/
|
|
1000
1000
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1003
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1003
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/group-exports.md
|
|
1004
1004
|
*/
|
|
1005
1005
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Replaced by `import-x/first`.
|
|
1008
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1008
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/imports-first.md
|
|
1009
1009
|
* @deprecated
|
|
1010
1010
|
*/
|
|
1011
1011
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Enforce the maximum number of dependencies a module can have.
|
|
1014
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1014
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/max-dependencies.md
|
|
1015
1015
|
*/
|
|
1016
1016
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1019
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1019
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/named.md
|
|
1020
1020
|
*/
|
|
1021
1021
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1024
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1024
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/namespace.md
|
|
1025
1025
|
*/
|
|
1026
1026
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Enforce a newline after import statements.
|
|
1029
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1029
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/newline-after-import.md
|
|
1030
1030
|
*/
|
|
1031
1031
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Forbid import of modules using absolute paths.
|
|
1034
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1034
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-absolute-path.md
|
|
1035
1035
|
*/
|
|
1036
1036
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Forbid AMD `require` and `define` calls.
|
|
1039
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1039
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-amd.md
|
|
1040
1040
|
*/
|
|
1041
1041
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Forbid anonymous values as default exports.
|
|
1044
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1044
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-anonymous-default-export.md
|
|
1045
1045
|
*/
|
|
1046
1046
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1049
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1049
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-commonjs.md
|
|
1050
1050
|
*/
|
|
1051
1051
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1054
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1054
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-cycle.md
|
|
1055
1055
|
*/
|
|
1056
1056
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Forbid default exports.
|
|
1059
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1059
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-default-export.md
|
|
1060
1060
|
*/
|
|
1061
1061
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1064
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1064
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-deprecated.md
|
|
1065
1065
|
*/
|
|
1066
1066
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Forbid repeated import of the same module in multiple places.
|
|
1069
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1069
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-duplicates.md
|
|
1070
1070
|
*/
|
|
1071
1071
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Forbid `require()` calls with expressions.
|
|
1074
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1074
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-dynamic-require.md
|
|
1075
1075
|
*/
|
|
1076
1076
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Forbid empty named import blocks.
|
|
1079
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1079
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-empty-named-blocks.md
|
|
1080
1080
|
*/
|
|
1081
1081
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Forbid the use of extraneous packages.
|
|
1084
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1084
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-extraneous-dependencies.md
|
|
1085
1085
|
*/
|
|
1086
1086
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Forbid import statements with CommonJS module.exports.
|
|
1089
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1089
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-import-module-exports.md
|
|
1090
1090
|
*/
|
|
1091
1091
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Forbid importing the submodules of other modules.
|
|
1094
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1094
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-internal-modules.md
|
|
1095
1095
|
*/
|
|
1096
1096
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1099
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1099
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-mutable-exports.md
|
|
1100
1100
|
*/
|
|
1101
1101
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Forbid use of exported name as identifier of default export.
|
|
1104
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1104
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-as-default.md
|
|
1105
1105
|
*/
|
|
1106
1106
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Forbid use of exported name as property of default export.
|
|
1109
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1109
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-as-default-member.md
|
|
1110
1110
|
*/
|
|
1111
1111
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Forbid named default exports.
|
|
1114
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1114
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-default.md
|
|
1115
1115
|
*/
|
|
1116
1116
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Forbid named exports.
|
|
1119
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1119
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-named-export.md
|
|
1120
1120
|
*/
|
|
1121
1121
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1124
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1124
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-namespace.md
|
|
1125
1125
|
*/
|
|
1126
1126
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Forbid Node.js builtin modules.
|
|
1129
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1129
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-nodejs-modules.md
|
|
1130
1130
|
*/
|
|
1131
1131
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Forbid importing packages through relative paths.
|
|
1134
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1134
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-relative-packages.md
|
|
1135
1135
|
*/
|
|
1136
1136
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Forbid importing modules from parent directories.
|
|
1139
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1139
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-relative-parent-imports.md
|
|
1140
1140
|
*/
|
|
1141
1141
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Forbid importing a default export by a different name.
|
|
1144
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1144
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-rename-default.md
|
|
1145
1145
|
*/
|
|
1146
1146
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Enforce which files can be imported in a given folder.
|
|
1149
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1149
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-restricted-paths.md
|
|
1150
1150
|
*/
|
|
1151
1151
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
1152
1152
|
/**
|
|
1153
1153
|
* Forbid a module from importing itself.
|
|
1154
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1154
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-self-import.md
|
|
1155
1155
|
*/
|
|
1156
1156
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Forbid unassigned imports.
|
|
1159
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1159
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-unassigned-import.md
|
|
1160
1160
|
*/
|
|
1161
1161
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Ensure imports point to a file/module that can be resolved.
|
|
1164
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1164
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-unresolved.md
|
|
1165
1165
|
*/
|
|
1166
1166
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1169
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1169
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-unused-modules.md
|
|
1170
1170
|
*/
|
|
1171
1171
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Forbid unnecessary path segments in import and require statements.
|
|
1174
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1174
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-useless-path-segments.md
|
|
1175
1175
|
*/
|
|
1176
1176
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Forbid webpack loader syntax in imports.
|
|
1179
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1179
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/no-webpack-loader-syntax.md
|
|
1180
1180
|
*/
|
|
1181
1181
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Enforce a convention in module import order.
|
|
1184
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1184
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/order.md
|
|
1185
1185
|
*/
|
|
1186
1186
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1189
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1189
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/prefer-default-export.md
|
|
1190
1190
|
*/
|
|
1191
1191
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1194
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1194
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.0/docs/rules/unambiguous.md
|
|
1195
1195
|
*/
|
|
1196
1196
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
1197
1197
|
/**
|
|
@@ -1342,6 +1342,7 @@ export interface Rules {
|
|
|
1342
1342
|
*/
|
|
1343
1343
|
'jsdoc/no-missing-syntax'?: Linter.RuleEntry<JsdocNoMissingSyntax>
|
|
1344
1344
|
/**
|
|
1345
|
+
* Prevents use of multiple asterisks at the beginning of lines.
|
|
1345
1346
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-multi-asterisks.md#repos-sticky-header
|
|
1346
1347
|
*/
|
|
1347
1348
|
'jsdoc/no-multi-asterisks'?: Linter.RuleEntry<JsdocNoMultiAsterisks>
|
|
@@ -1486,6 +1487,7 @@ export interface Rules {
|
|
|
1486
1487
|
*/
|
|
1487
1488
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>
|
|
1488
1489
|
/**
|
|
1490
|
+
* Auto-escape certain characters that are input within block and tag descriptions.
|
|
1489
1491
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
1490
1492
|
*/
|
|
1491
1493
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>
|
|
@@ -3114,6 +3116,11 @@ export interface Rules {
|
|
|
3114
3116
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
3115
3117
|
*/
|
|
3116
3118
|
'vitest/prefer-todo'?: Linter.RuleEntry<[]>
|
|
3119
|
+
/**
|
|
3120
|
+
* Prefer `vi.mocked()` over `fn as Mock`
|
|
3121
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
3122
|
+
*/
|
|
3123
|
+
'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>
|
|
3117
3124
|
/**
|
|
3118
3125
|
* require setup and teardown to be within a hook
|
|
3119
3126
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -4232,6 +4239,8 @@ type TypescriptEslintSwitchExhaustivenessCheck = []|[{
|
|
|
4232
4239
|
|
|
4233
4240
|
allowDefaultCaseForExhaustiveSwitch?: boolean
|
|
4234
4241
|
|
|
4242
|
+
considerDefaultExhaustiveForUnions?: boolean
|
|
4243
|
+
|
|
4235
4244
|
requireDefaultForNonUnion?: boolean
|
|
4236
4245
|
}]
|
|
4237
4246
|
// ----- @typescript-eslint/triple-slash-reference -----
|
|
@@ -4517,12 +4526,14 @@ type ImportXExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("a
|
|
|
4517
4526
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4518
4527
|
}
|
|
4519
4528
|
ignorePackages?: boolean
|
|
4529
|
+
checkTypeImports?: boolean
|
|
4520
4530
|
[k: string]: unknown | undefined
|
|
4521
4531
|
}] | []|[{
|
|
4522
4532
|
pattern?: {
|
|
4523
4533
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
4524
4534
|
}
|
|
4525
4535
|
ignorePackages?: boolean
|
|
4536
|
+
checkTypeImports?: boolean
|
|
4526
4537
|
[k: string]: unknown | undefined
|
|
4527
4538
|
}] | []|[{
|
|
4528
4539
|
[k: string]: ("always" | "ignorePackages" | "never")
|