@bfra.me/eslint-config 0.20.11 → 0.21.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.
package/lib/index.d.ts
CHANGED
|
@@ -997,233 +997,233 @@ interface Rules {
|
|
|
997
997
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
998
998
|
/**
|
|
999
999
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1000
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1000
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/consistent-type-specifier-style.md
|
|
1001
1001
|
*/
|
|
1002
1002
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
1003
1003
|
/**
|
|
1004
1004
|
* Ensure a default export is present, given a default import.
|
|
1005
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1005
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/default.md
|
|
1006
1006
|
*/
|
|
1007
1007
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1010
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1010
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/dynamic-import-chunkname.md
|
|
1011
1011
|
*/
|
|
1012
1012
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1015
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1015
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/export.md
|
|
1016
1016
|
*/
|
|
1017
1017
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Ensure all exports appear after other statements.
|
|
1020
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1020
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/exports-last.md
|
|
1021
1021
|
*/
|
|
1022
1022
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Ensure consistent use of file extension within the import path.
|
|
1025
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1025
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/extensions.md
|
|
1026
1026
|
*/
|
|
1027
1027
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Ensure all imports appear before other statements.
|
|
1030
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1030
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/first.md
|
|
1031
1031
|
*/
|
|
1032
1032
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1035
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1035
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/group-exports.md
|
|
1036
1036
|
*/
|
|
1037
1037
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Replaced by `import-x/first`.
|
|
1040
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1040
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/imports-first.md
|
|
1041
1041
|
* @deprecated
|
|
1042
1042
|
*/
|
|
1043
1043
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
1044
1044
|
/**
|
|
1045
1045
|
* Enforce the maximum number of dependencies a module can have.
|
|
1046
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1046
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/max-dependencies.md
|
|
1047
1047
|
*/
|
|
1048
1048
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1051
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1051
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/named.md
|
|
1052
1052
|
*/
|
|
1053
1053
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1056
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1056
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/namespace.md
|
|
1057
1057
|
*/
|
|
1058
1058
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
1059
1059
|
/**
|
|
1060
1060
|
* Enforce a newline after import statements.
|
|
1061
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1061
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/newline-after-import.md
|
|
1062
1062
|
*/
|
|
1063
1063
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Forbid import of modules using absolute paths.
|
|
1066
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1066
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-absolute-path.md
|
|
1067
1067
|
*/
|
|
1068
1068
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Forbid AMD `require` and `define` calls.
|
|
1071
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1071
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-amd.md
|
|
1072
1072
|
*/
|
|
1073
1073
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Forbid anonymous values as default exports.
|
|
1076
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1076
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-anonymous-default-export.md
|
|
1077
1077
|
*/
|
|
1078
1078
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1081
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1081
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-commonjs.md
|
|
1082
1082
|
*/
|
|
1083
1083
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1086
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1086
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-cycle.md
|
|
1087
1087
|
*/
|
|
1088
1088
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Forbid default exports.
|
|
1091
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1091
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-default-export.md
|
|
1092
1092
|
*/
|
|
1093
1093
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1096
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1096
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-deprecated.md
|
|
1097
1097
|
*/
|
|
1098
1098
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Forbid repeated import of the same module in multiple places.
|
|
1101
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1101
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-duplicates.md
|
|
1102
1102
|
*/
|
|
1103
1103
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Forbid `require()` calls with expressions.
|
|
1106
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1106
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-dynamic-require.md
|
|
1107
1107
|
*/
|
|
1108
1108
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Forbid empty named import blocks.
|
|
1111
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1111
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-empty-named-blocks.md
|
|
1112
1112
|
*/
|
|
1113
1113
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
1114
1114
|
/**
|
|
1115
1115
|
* Forbid the use of extraneous packages.
|
|
1116
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1116
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-extraneous-dependencies.md
|
|
1117
1117
|
*/
|
|
1118
1118
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
1119
1119
|
/**
|
|
1120
1120
|
* Forbid import statements with CommonJS module.exports.
|
|
1121
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1121
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-import-module-exports.md
|
|
1122
1122
|
*/
|
|
1123
1123
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Forbid importing the submodules of other modules.
|
|
1126
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1126
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-internal-modules.md
|
|
1127
1127
|
*/
|
|
1128
1128
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1131
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1131
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-mutable-exports.md
|
|
1132
1132
|
*/
|
|
1133
1133
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
1134
1134
|
/**
|
|
1135
1135
|
* Forbid use of exported name as identifier of default export.
|
|
1136
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1136
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default.md
|
|
1137
1137
|
*/
|
|
1138
1138
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Forbid use of exported name as property of default export.
|
|
1141
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1141
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default-member.md
|
|
1142
1142
|
*/
|
|
1143
1143
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Forbid named default exports.
|
|
1146
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1146
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-default.md
|
|
1147
1147
|
*/
|
|
1148
1148
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Forbid named exports.
|
|
1151
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1151
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-export.md
|
|
1152
1152
|
*/
|
|
1153
1153
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1156
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1156
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-namespace.md
|
|
1157
1157
|
*/
|
|
1158
1158
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Forbid Node.js builtin modules.
|
|
1161
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1161
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-nodejs-modules.md
|
|
1162
1162
|
*/
|
|
1163
1163
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
1164
1164
|
/**
|
|
1165
1165
|
* Forbid importing packages through relative paths.
|
|
1166
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1166
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-packages.md
|
|
1167
1167
|
*/
|
|
1168
1168
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Forbid importing modules from parent directories.
|
|
1171
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1171
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-parent-imports.md
|
|
1172
1172
|
*/
|
|
1173
1173
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Forbid importing a default export by a different name.
|
|
1176
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1176
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-rename-default.md
|
|
1177
1177
|
*/
|
|
1178
1178
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Enforce which files can be imported in a given folder.
|
|
1181
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1181
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-restricted-paths.md
|
|
1182
1182
|
*/
|
|
1183
1183
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Forbid a module from importing itself.
|
|
1186
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1186
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-self-import.md
|
|
1187
1187
|
*/
|
|
1188
1188
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Forbid unassigned imports.
|
|
1191
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1191
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unassigned-import.md
|
|
1192
1192
|
*/
|
|
1193
1193
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Ensure imports point to a file/module that can be resolved.
|
|
1196
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1196
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unresolved.md
|
|
1197
1197
|
*/
|
|
1198
1198
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1201
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1201
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unused-modules.md
|
|
1202
1202
|
*/
|
|
1203
1203
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
1204
1204
|
/**
|
|
1205
1205
|
* Forbid unnecessary path segments in import and require statements.
|
|
1206
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1206
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-useless-path-segments.md
|
|
1207
1207
|
*/
|
|
1208
1208
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Forbid webpack loader syntax in imports.
|
|
1211
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1211
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-webpack-loader-syntax.md
|
|
1212
1212
|
*/
|
|
1213
1213
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Enforce a convention in module import order.
|
|
1216
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1216
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/order.md
|
|
1217
1217
|
*/
|
|
1218
1218
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
1219
1219
|
/**
|
|
1220
1220
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1221
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1221
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/prefer-default-export.md
|
|
1222
1222
|
*/
|
|
1223
1223
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1226
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1226
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/unambiguous.md
|
|
1227
1227
|
*/
|
|
1228
1228
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
1229
1229
|
/**
|
package/lib/index.js
CHANGED
|
@@ -38,20 +38,19 @@ __name(requireOf, "requireOf");
|
|
|
38
38
|
|
|
39
39
|
// src/configs/fallback.ts
|
|
40
40
|
async function fallback(missingList, options) {
|
|
41
|
-
const rules = await interopDefault(import("./missing-module-for-config-
|
|
41
|
+
const rules = await interopDefault(import("./missing-module-for-config-6AHLDIAE.js"));
|
|
42
|
+
const pluginName = `@bfra.me${missingList.length > 0 ? `/missing-modules-${missingList.map((m) => m.replaceAll(/[^a-z0-9]/gi, "-").toLowerCase()).join("-")}` : ""}`;
|
|
42
43
|
return [
|
|
43
44
|
{
|
|
44
45
|
plugins: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
};
|
|
46
|
+
[pluginName]: {
|
|
47
|
+
rules: {
|
|
48
|
+
"missing-module-for-config": rules
|
|
49
|
+
}
|
|
51
50
|
}
|
|
52
51
|
},
|
|
53
52
|
rules: {
|
|
54
|
-
|
|
53
|
+
[`${pluginName}/missing-module-for-config`]: [
|
|
55
54
|
"error",
|
|
56
55
|
missingList
|
|
57
56
|
]
|
|
@@ -649,7 +648,7 @@ __name(jsdoc, "jsdoc");
|
|
|
649
648
|
import { fileURLToPath } from "url";
|
|
650
649
|
|
|
651
650
|
// package.json
|
|
652
|
-
var version = "0.
|
|
651
|
+
var version = "0.21.1";
|
|
653
652
|
|
|
654
653
|
// src/parsers/any-parser.ts
|
|
655
654
|
var lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
|
|
@@ -11,8 +11,8 @@ import { spawnSync } from "child_process";
|
|
|
11
11
|
import { existsSync } from "fs";
|
|
12
12
|
import { resolve } from "path";
|
|
13
13
|
import process from "process";
|
|
14
|
+
import { packageDirectorySync } from "package-directory";
|
|
14
15
|
import { resolveCommand } from "package-manager-detector";
|
|
15
|
-
import { packageDirectorySync } from "pkg-dir";
|
|
16
16
|
var installedModules = /* @__PURE__ */ new Set();
|
|
17
17
|
function tryInstall(module, targetFile = process.cwd()) {
|
|
18
18
|
if (installedModules.has(module)) {
|
|
@@ -173,4 +173,4 @@ export {
|
|
|
173
173
|
create,
|
|
174
174
|
meta
|
|
175
175
|
};
|
|
176
|
-
//# sourceMappingURL=missing-module-for-config-
|
|
176
|
+
//# sourceMappingURL=missing-module-for-config-6AHLDIAE.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bfra.me/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Shared ESLint configuration for bfra.me",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bfra.me",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
43
43
|
"eslint-flat-config-utils": "2.1.0",
|
|
44
44
|
"eslint-plugin-command": "3.2.1",
|
|
45
|
-
"eslint-plugin-import-x": "4.15.
|
|
46
|
-
"eslint-plugin-jsdoc": "50.
|
|
45
|
+
"eslint-plugin-import-x": "4.15.2",
|
|
46
|
+
"eslint-plugin-jsdoc": "50.8.0",
|
|
47
47
|
"eslint-plugin-json-schema-validator": "5.4.1",
|
|
48
48
|
"eslint-plugin-jsonc": "2.20.1",
|
|
49
49
|
"eslint-plugin-n": "17.19.0",
|
|
50
50
|
"eslint-plugin-perfectionist": "4.14.0",
|
|
51
|
-
"eslint-plugin-regexp": "2.
|
|
51
|
+
"eslint-plugin-regexp": "2.9.0",
|
|
52
52
|
"eslint-plugin-toml": "0.12.0",
|
|
53
53
|
"eslint-plugin-unicorn": "59.0.1",
|
|
54
54
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
"globals": "16.2.0",
|
|
57
57
|
"is-in-ci": "1.0.0",
|
|
58
58
|
"local-pkg": "1.1.1",
|
|
59
|
+
"package-directory": "8.1.0",
|
|
59
60
|
"package-manager-detector": "1.3.0",
|
|
60
|
-
"
|
|
61
|
-
"typescript-eslint": "8.33.1"
|
|
61
|
+
"typescript-eslint": "8.34.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@eslint/config-inspector": "1.0
|
|
64
|
+
"@eslint/config-inspector": "1.1.0",
|
|
65
65
|
"@eslint/js": "9.28.0",
|
|
66
66
|
"@types/eslint-config-prettier": "6.11.3",
|
|
67
|
-
"@typescript-eslint/types": "8.
|
|
68
|
-
"@vitest/eslint-plugin": "1.2.
|
|
67
|
+
"@typescript-eslint/types": "8.34.0",
|
|
68
|
+
"@vitest/eslint-plugin": "1.2.3",
|
|
69
69
|
"eslint": "9.28.0",
|
|
70
70
|
"eslint-config-prettier": "10.1.5",
|
|
71
71
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
72
|
-
"eslint-plugin-node-dependencies": "1.1.
|
|
72
|
+
"eslint-plugin-node-dependencies": "1.1.2",
|
|
73
73
|
"eslint-plugin-prettier": "5.4.1",
|
|
74
74
|
"eslint-typegen": "2.2.0",
|
|
75
75
|
"tsup": "8.5.0",
|
|
76
|
-
"tsx": "4.
|
|
76
|
+
"tsx": "4.20.1",
|
|
77
|
+
"@bfra.me/eslint-config": "0.21.1",
|
|
77
78
|
"@bfra.me/tsconfig": "0.9.7",
|
|
78
|
-
"@bfra.me/prettier-config": "0.15.5"
|
|
79
|
-
"@bfra.me/eslint-config": "0.20.11"
|
|
79
|
+
"@bfra.me/prettier-config": "0.15.5"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@vitest/eslint-plugin": "^1.1.21",
|
package/src/configs/fallback.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {ESLint} from 'eslint'
|
|
2
1
|
import type {Config} from '../config'
|
|
3
2
|
import {interopDefault} from '../plugins'
|
|
4
3
|
|
|
@@ -13,19 +12,26 @@ export async function fallback(
|
|
|
13
12
|
options?: FallbackOptions,
|
|
14
13
|
): Promise<Config[]> {
|
|
15
14
|
const rules = await interopDefault(import('../rules/missing-module-for-config'))
|
|
15
|
+
// Create a unique ID using the short hash of the missing modules to ensure the plugin name is unique
|
|
16
|
+
const pluginName = `@bfra.me${
|
|
17
|
+
missingList.length > 0
|
|
18
|
+
? `/missing-modules-${missingList
|
|
19
|
+
.map(m => m.replaceAll(/[^a-z0-9]/gi, '-').toLowerCase())
|
|
20
|
+
.join('-')}`
|
|
21
|
+
: ''
|
|
22
|
+
}`
|
|
23
|
+
|
|
16
24
|
return [
|
|
17
25
|
{
|
|
18
26
|
plugins: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
} as ESLint.Plugin
|
|
27
|
+
[pluginName]: {
|
|
28
|
+
rules: {
|
|
29
|
+
'missing-module-for-config': rules,
|
|
30
|
+
},
|
|
25
31
|
},
|
|
26
32
|
},
|
|
27
33
|
rules: {
|
|
28
|
-
|
|
34
|
+
[`${pluginName}/missing-module-for-config`]: ['error', missingList],
|
|
29
35
|
},
|
|
30
36
|
...(options ?? {}),
|
|
31
37
|
} as Config,
|
package/src/package-utils.ts
CHANGED
|
@@ -2,8 +2,8 @@ import {spawnSync} from 'node:child_process'
|
|
|
2
2
|
import {existsSync} from 'node:fs'
|
|
3
3
|
import {resolve} from 'node:path'
|
|
4
4
|
import process from 'node:process'
|
|
5
|
+
import {packageDirectorySync} from 'package-directory'
|
|
5
6
|
import {resolveCommand, type AgentName} from 'package-manager-detector'
|
|
6
|
-
import {packageDirectorySync} from 'pkg-dir'
|
|
7
7
|
|
|
8
8
|
const installedModules = new Set<string>()
|
|
9
9
|
|
package/src/rules.d.ts
CHANGED
|
@@ -990,233 +990,233 @@ export interface Rules {
|
|
|
990
990
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
991
991
|
/**
|
|
992
992
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
993
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
993
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/consistent-type-specifier-style.md
|
|
994
994
|
*/
|
|
995
995
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
996
996
|
/**
|
|
997
997
|
* Ensure a default export is present, given a default import.
|
|
998
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
998
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/default.md
|
|
999
999
|
*/
|
|
1000
1000
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1003
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1003
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/dynamic-import-chunkname.md
|
|
1004
1004
|
*/
|
|
1005
1005
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1008
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1008
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/export.md
|
|
1009
1009
|
*/
|
|
1010
1010
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Ensure all exports appear after other statements.
|
|
1013
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1013
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/exports-last.md
|
|
1014
1014
|
*/
|
|
1015
1015
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Ensure consistent use of file extension within the import path.
|
|
1018
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1018
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/extensions.md
|
|
1019
1019
|
*/
|
|
1020
1020
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Ensure all imports appear before other statements.
|
|
1023
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1023
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/first.md
|
|
1024
1024
|
*/
|
|
1025
1025
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1028
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1028
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/group-exports.md
|
|
1029
1029
|
*/
|
|
1030
1030
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Replaced by `import-x/first`.
|
|
1033
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1033
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/imports-first.md
|
|
1034
1034
|
* @deprecated
|
|
1035
1035
|
*/
|
|
1036
1036
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Enforce the maximum number of dependencies a module can have.
|
|
1039
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1039
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/max-dependencies.md
|
|
1040
1040
|
*/
|
|
1041
1041
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1044
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1044
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/named.md
|
|
1045
1045
|
*/
|
|
1046
1046
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1049
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1049
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/namespace.md
|
|
1050
1050
|
*/
|
|
1051
1051
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Enforce a newline after import statements.
|
|
1054
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1054
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/newline-after-import.md
|
|
1055
1055
|
*/
|
|
1056
1056
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Forbid import of modules using absolute paths.
|
|
1059
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1059
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-absolute-path.md
|
|
1060
1060
|
*/
|
|
1061
1061
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Forbid AMD `require` and `define` calls.
|
|
1064
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1064
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-amd.md
|
|
1065
1065
|
*/
|
|
1066
1066
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Forbid anonymous values as default exports.
|
|
1069
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1069
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-anonymous-default-export.md
|
|
1070
1070
|
*/
|
|
1071
1071
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1074
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1074
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-commonjs.md
|
|
1075
1075
|
*/
|
|
1076
1076
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1079
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1079
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-cycle.md
|
|
1080
1080
|
*/
|
|
1081
1081
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Forbid default exports.
|
|
1084
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1084
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-default-export.md
|
|
1085
1085
|
*/
|
|
1086
1086
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1089
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1089
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-deprecated.md
|
|
1090
1090
|
*/
|
|
1091
1091
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Forbid repeated import of the same module in multiple places.
|
|
1094
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1094
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-duplicates.md
|
|
1095
1095
|
*/
|
|
1096
1096
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Forbid `require()` calls with expressions.
|
|
1099
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1099
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-dynamic-require.md
|
|
1100
1100
|
*/
|
|
1101
1101
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Forbid empty named import blocks.
|
|
1104
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1104
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-empty-named-blocks.md
|
|
1105
1105
|
*/
|
|
1106
1106
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Forbid the use of extraneous packages.
|
|
1109
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1109
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-extraneous-dependencies.md
|
|
1110
1110
|
*/
|
|
1111
1111
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Forbid import statements with CommonJS module.exports.
|
|
1114
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1114
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-import-module-exports.md
|
|
1115
1115
|
*/
|
|
1116
1116
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Forbid importing the submodules of other modules.
|
|
1119
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1119
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-internal-modules.md
|
|
1120
1120
|
*/
|
|
1121
1121
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1124
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1124
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-mutable-exports.md
|
|
1125
1125
|
*/
|
|
1126
1126
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
1127
1127
|
/**
|
|
1128
1128
|
* Forbid use of exported name as identifier of default export.
|
|
1129
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1129
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default.md
|
|
1130
1130
|
*/
|
|
1131
1131
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Forbid use of exported name as property of default export.
|
|
1134
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1134
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default-member.md
|
|
1135
1135
|
*/
|
|
1136
1136
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Forbid named default exports.
|
|
1139
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1139
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-default.md
|
|
1140
1140
|
*/
|
|
1141
1141
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Forbid named exports.
|
|
1144
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1144
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-export.md
|
|
1145
1145
|
*/
|
|
1146
1146
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1149
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1149
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-namespace.md
|
|
1150
1150
|
*/
|
|
1151
1151
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
1152
1152
|
/**
|
|
1153
1153
|
* Forbid Node.js builtin modules.
|
|
1154
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1154
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-nodejs-modules.md
|
|
1155
1155
|
*/
|
|
1156
1156
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Forbid importing packages through relative paths.
|
|
1159
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1159
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-packages.md
|
|
1160
1160
|
*/
|
|
1161
1161
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Forbid importing modules from parent directories.
|
|
1164
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1164
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-parent-imports.md
|
|
1165
1165
|
*/
|
|
1166
1166
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Forbid importing a default export by a different name.
|
|
1169
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1169
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-rename-default.md
|
|
1170
1170
|
*/
|
|
1171
1171
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Enforce which files can be imported in a given folder.
|
|
1174
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1174
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-restricted-paths.md
|
|
1175
1175
|
*/
|
|
1176
1176
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Forbid a module from importing itself.
|
|
1179
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1179
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-self-import.md
|
|
1180
1180
|
*/
|
|
1181
1181
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Forbid unassigned imports.
|
|
1184
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1184
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unassigned-import.md
|
|
1185
1185
|
*/
|
|
1186
1186
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Ensure imports point to a file/module that can be resolved.
|
|
1189
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1189
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unresolved.md
|
|
1190
1190
|
*/
|
|
1191
1191
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1194
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1194
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unused-modules.md
|
|
1195
1195
|
*/
|
|
1196
1196
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Forbid unnecessary path segments in import and require statements.
|
|
1199
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1199
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-useless-path-segments.md
|
|
1200
1200
|
*/
|
|
1201
1201
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Forbid webpack loader syntax in imports.
|
|
1204
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1204
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-webpack-loader-syntax.md
|
|
1205
1205
|
*/
|
|
1206
1206
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Enforce a convention in module import order.
|
|
1209
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1209
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/order.md
|
|
1210
1210
|
*/
|
|
1211
1211
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1214
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1214
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/prefer-default-export.md
|
|
1215
1215
|
*/
|
|
1216
1216
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1219
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
1219
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/unambiguous.md
|
|
1220
1220
|
*/
|
|
1221
1221
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
1222
1222
|
/**
|