@ntnyq/eslint-config 2.7.0 → 2.7.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/dist/index.cjs CHANGED
@@ -173,7 +173,8 @@ var GLOB_LOCKFILE = [
173
173
  "**/package-lock.json",
174
174
  "**/yarn.lock",
175
175
  "**/pnpm-lock.yaml",
176
- "**/bun.lockb"
176
+ "**/bun.lockb",
177
+ "**/deno.lock"
177
178
  ];
178
179
  var GLOB_EXCLUDE = [
179
180
  GLOB_NODE_MODULES,
@@ -194,12 +195,14 @@ var GLOB_EXCLUDE = [
194
195
  "**/components.d.ts",
195
196
  // unplugin-vue-router
196
197
  "**/typed-router.d.ts",
198
+ // vite-plugin-uni-pages
199
+ "**/uni-pages.d.ts",
197
200
  "**/coverage",
198
201
  "**/fixtures",
199
202
  "**/output",
200
203
  "**/public",
201
204
  "**/static",
202
- // VitePress VuePress
205
+ // VitePress and VuePress
203
206
  "**/?(.)temp",
204
207
  "**/?(.)cache",
205
208
  "**/.eslintcache",
@@ -1268,7 +1271,7 @@ var sortTsConfig = defineConfig([
1268
1271
  var jsonc = defineConfig([
1269
1272
  {
1270
1273
  name: "ntnyq/jsonc",
1271
- files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
1274
+ files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
1272
1275
  plugins: {
1273
1276
  jsonc: import_eslint_plugin_jsonc.default
1274
1277
  },
package/dist/index.d.cts CHANGED
@@ -984,42 +984,42 @@ interface RuleOptions {
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/v3.0.1/docs/rules/consistent-type-specifier-style.md
987
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/consistent-type-specifier-style.md
988
988
  */
989
989
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
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/v3.0.1/docs/rules/default.md
992
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
993
993
  */
994
994
  'import/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/v3.0.1/docs/rules/dynamic-import-chunkname.md
997
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
998
998
  */
999
999
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
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/v3.0.1/docs/rules/export.md
1002
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
1003
1003
  */
1004
1004
  'import/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/v3.0.1/docs/rules/exports-last.md
1007
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
1008
1008
  */
1009
1009
  'import/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/v3.0.1/docs/rules/extensions.md
1012
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
1013
1013
  */
1014
1014
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
1015
1015
  /**
1016
1016
  * Ensure all imports appear before other statements.
1017
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/first.md
1017
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
1018
1018
  */
1019
1019
  'import/first'?: Linter.RuleEntry<ImportFirst>
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/v3.0.1/docs/rules/group-exports.md
1022
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
1023
1023
  */
1024
1024
  'import/group-exports'?: Linter.RuleEntry<[]>
1025
1025
  /**
@@ -1030,182 +1030,182 @@ interface RuleOptions {
1030
1030
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
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/v3.0.1/docs/rules/max-dependencies.md
1033
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
1034
1034
  */
1035
1035
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
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/v3.0.1/docs/rules/named.md
1038
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
1039
1039
  */
1040
1040
  'import/named'?: Linter.RuleEntry<ImportNamed>
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/v3.0.1/docs/rules/namespace.md
1043
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
1044
1044
  */
1045
1045
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
1046
1046
  /**
1047
1047
  * Enforce a newline after import statements.
1048
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/newline-after-import.md
1048
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
1049
1049
  */
1050
1050
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
1051
1051
  /**
1052
1052
  * Forbid import of modules using absolute paths.
1053
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-absolute-path.md
1053
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
1054
1054
  */
1055
1055
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
1056
1056
  /**
1057
1057
  * Forbid AMD `require` and `define` calls.
1058
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-amd.md
1058
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
1059
1059
  */
1060
1060
  'import/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/v3.0.1/docs/rules/no-anonymous-default-export.md
1063
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
1064
1064
  */
1065
1065
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
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/v3.0.1/docs/rules/no-commonjs.md
1068
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
1069
1069
  */
1070
1070
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
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/v3.0.1/docs/rules/no-cycle.md
1073
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-cycle.md
1074
1074
  */
1075
1075
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
1076
1076
  /**
1077
1077
  * Forbid default exports.
1078
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-default-export.md
1078
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
1079
1079
  */
1080
1080
  'import/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/v3.0.1/docs/rules/no-deprecated.md
1083
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
1084
1084
  */
1085
1085
  'import/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/v3.0.1/docs/rules/no-duplicates.md
1088
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
1089
1089
  */
1090
1090
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
1091
1091
  /**
1092
1092
  * Forbid `require()` calls with expressions.
1093
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-dynamic-require.md
1093
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
1094
1094
  */
1095
1095
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
1096
1096
  /**
1097
1097
  * Forbid empty named import blocks.
1098
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-empty-named-blocks.md
1098
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
1099
1099
  */
1100
1100
  'import/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/v3.0.1/docs/rules/no-extraneous-dependencies.md
1103
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
1104
1104
  */
1105
1105
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
1106
1106
  /**
1107
1107
  * Forbid import statements with CommonJS module.exports.
1108
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-import-module-exports.md
1108
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
1109
1109
  */
1110
1110
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
1111
1111
  /**
1112
1112
  * Forbid importing the submodules of other modules.
1113
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-internal-modules.md
1113
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
1114
1114
  */
1115
1115
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
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/v3.0.1/docs/rules/no-mutable-exports.md
1118
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
1119
1119
  */
1120
1120
  'import/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/v3.0.1/docs/rules/no-named-as-default.md
1123
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
1124
1124
  */
1125
1125
  'import/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/v3.0.1/docs/rules/no-named-as-default-member.md
1128
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
1129
1129
  */
1130
1130
  'import/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/v3.0.1/docs/rules/no-named-default.md
1133
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
1134
1134
  */
1135
1135
  'import/no-named-default'?: Linter.RuleEntry<[]>
1136
1136
  /**
1137
1137
  * Forbid named exports.
1138
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-export.md
1138
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
1139
1139
  */
1140
1140
  'import/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/v3.0.1/docs/rules/no-namespace.md
1143
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
1144
1144
  */
1145
1145
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
1146
1146
  /**
1147
1147
  * Forbid Node.js builtin modules.
1148
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-nodejs-modules.md
1148
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
1149
1149
  */
1150
1150
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
1151
1151
  /**
1152
1152
  * Forbid importing packages through relative paths.
1153
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-packages.md
1153
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
1154
1154
  */
1155
1155
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
1156
1156
  /**
1157
1157
  * Forbid importing modules from parent directories.
1158
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-parent-imports.md
1158
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
1159
1159
  */
1160
1160
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
1161
1161
  /**
1162
1162
  * Enforce which files can be imported in a given folder.
1163
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-restricted-paths.md
1163
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
1164
1164
  */
1165
1165
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
1166
1166
  /**
1167
1167
  * Forbid a module from importing itself.
1168
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-self-import.md
1168
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
1169
1169
  */
1170
1170
  'import/no-self-import'?: Linter.RuleEntry<[]>
1171
1171
  /**
1172
1172
  * Forbid unassigned imports.
1173
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unassigned-import.md
1173
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
1174
1174
  */
1175
1175
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
1176
1176
  /**
1177
1177
  * Ensure imports point to a file/module that can be resolved.
1178
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unresolved.md
1178
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
1179
1179
  */
1180
1180
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
1181
1181
  /**
1182
1182
  * Forbid modules without exports, or exports without matching import in another module.
1183
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unused-modules.md
1183
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
1184
1184
  */
1185
1185
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
1186
1186
  /**
1187
1187
  * Forbid unnecessary path segments in import and require statements.
1188
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-useless-path-segments.md
1188
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
1189
1189
  */
1190
1190
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
1191
1191
  /**
1192
1192
  * Forbid webpack loader syntax in imports.
1193
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-webpack-loader-syntax.md
1193
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
1194
1194
  */
1195
1195
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
1196
1196
  /**
1197
1197
  * Enforce a convention in module import order.
1198
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/order.md
1198
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
1199
1199
  */
1200
1200
  'import/order'?: Linter.RuleEntry<ImportOrder>
1201
1201
  /**
1202
1202
  * Prefer a default export if module exports a single name or multiple names.
1203
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/prefer-default-export.md
1203
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/prefer-default-export.md
1204
1204
  */
1205
1205
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1206
1206
  /**
1207
1207
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1208
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/unambiguous.md
1208
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
1209
1209
  */
1210
1210
  'import/unambiguous'?: Linter.RuleEntry<[]>
1211
1211
  /**
package/dist/index.d.ts CHANGED
@@ -984,42 +984,42 @@ interface RuleOptions {
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/v3.0.1/docs/rules/consistent-type-specifier-style.md
987
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/consistent-type-specifier-style.md
988
988
  */
989
989
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
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/v3.0.1/docs/rules/default.md
992
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
993
993
  */
994
994
  'import/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/v3.0.1/docs/rules/dynamic-import-chunkname.md
997
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
998
998
  */
999
999
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
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/v3.0.1/docs/rules/export.md
1002
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
1003
1003
  */
1004
1004
  'import/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/v3.0.1/docs/rules/exports-last.md
1007
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
1008
1008
  */
1009
1009
  'import/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/v3.0.1/docs/rules/extensions.md
1012
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
1013
1013
  */
1014
1014
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
1015
1015
  /**
1016
1016
  * Ensure all imports appear before other statements.
1017
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/first.md
1017
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
1018
1018
  */
1019
1019
  'import/first'?: Linter.RuleEntry<ImportFirst>
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/v3.0.1/docs/rules/group-exports.md
1022
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
1023
1023
  */
1024
1024
  'import/group-exports'?: Linter.RuleEntry<[]>
1025
1025
  /**
@@ -1030,182 +1030,182 @@ interface RuleOptions {
1030
1030
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
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/v3.0.1/docs/rules/max-dependencies.md
1033
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
1034
1034
  */
1035
1035
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
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/v3.0.1/docs/rules/named.md
1038
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
1039
1039
  */
1040
1040
  'import/named'?: Linter.RuleEntry<ImportNamed>
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/v3.0.1/docs/rules/namespace.md
1043
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
1044
1044
  */
1045
1045
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
1046
1046
  /**
1047
1047
  * Enforce a newline after import statements.
1048
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/newline-after-import.md
1048
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
1049
1049
  */
1050
1050
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
1051
1051
  /**
1052
1052
  * Forbid import of modules using absolute paths.
1053
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-absolute-path.md
1053
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
1054
1054
  */
1055
1055
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
1056
1056
  /**
1057
1057
  * Forbid AMD `require` and `define` calls.
1058
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-amd.md
1058
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
1059
1059
  */
1060
1060
  'import/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/v3.0.1/docs/rules/no-anonymous-default-export.md
1063
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
1064
1064
  */
1065
1065
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
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/v3.0.1/docs/rules/no-commonjs.md
1068
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
1069
1069
  */
1070
1070
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
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/v3.0.1/docs/rules/no-cycle.md
1073
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-cycle.md
1074
1074
  */
1075
1075
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
1076
1076
  /**
1077
1077
  * Forbid default exports.
1078
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-default-export.md
1078
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
1079
1079
  */
1080
1080
  'import/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/v3.0.1/docs/rules/no-deprecated.md
1083
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
1084
1084
  */
1085
1085
  'import/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/v3.0.1/docs/rules/no-duplicates.md
1088
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
1089
1089
  */
1090
1090
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
1091
1091
  /**
1092
1092
  * Forbid `require()` calls with expressions.
1093
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-dynamic-require.md
1093
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
1094
1094
  */
1095
1095
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
1096
1096
  /**
1097
1097
  * Forbid empty named import blocks.
1098
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-empty-named-blocks.md
1098
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
1099
1099
  */
1100
1100
  'import/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/v3.0.1/docs/rules/no-extraneous-dependencies.md
1103
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
1104
1104
  */
1105
1105
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
1106
1106
  /**
1107
1107
  * Forbid import statements with CommonJS module.exports.
1108
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-import-module-exports.md
1108
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
1109
1109
  */
1110
1110
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
1111
1111
  /**
1112
1112
  * Forbid importing the submodules of other modules.
1113
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-internal-modules.md
1113
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
1114
1114
  */
1115
1115
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
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/v3.0.1/docs/rules/no-mutable-exports.md
1118
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
1119
1119
  */
1120
1120
  'import/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/v3.0.1/docs/rules/no-named-as-default.md
1123
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
1124
1124
  */
1125
1125
  'import/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/v3.0.1/docs/rules/no-named-as-default-member.md
1128
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
1129
1129
  */
1130
1130
  'import/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/v3.0.1/docs/rules/no-named-default.md
1133
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
1134
1134
  */
1135
1135
  'import/no-named-default'?: Linter.RuleEntry<[]>
1136
1136
  /**
1137
1137
  * Forbid named exports.
1138
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-named-export.md
1138
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
1139
1139
  */
1140
1140
  'import/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/v3.0.1/docs/rules/no-namespace.md
1143
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
1144
1144
  */
1145
1145
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
1146
1146
  /**
1147
1147
  * Forbid Node.js builtin modules.
1148
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-nodejs-modules.md
1148
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
1149
1149
  */
1150
1150
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
1151
1151
  /**
1152
1152
  * Forbid importing packages through relative paths.
1153
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-packages.md
1153
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
1154
1154
  */
1155
1155
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
1156
1156
  /**
1157
1157
  * Forbid importing modules from parent directories.
1158
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-relative-parent-imports.md
1158
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
1159
1159
  */
1160
1160
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
1161
1161
  /**
1162
1162
  * Enforce which files can be imported in a given folder.
1163
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-restricted-paths.md
1163
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
1164
1164
  */
1165
1165
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
1166
1166
  /**
1167
1167
  * Forbid a module from importing itself.
1168
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-self-import.md
1168
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
1169
1169
  */
1170
1170
  'import/no-self-import'?: Linter.RuleEntry<[]>
1171
1171
  /**
1172
1172
  * Forbid unassigned imports.
1173
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unassigned-import.md
1173
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
1174
1174
  */
1175
1175
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
1176
1176
  /**
1177
1177
  * Ensure imports point to a file/module that can be resolved.
1178
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unresolved.md
1178
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
1179
1179
  */
1180
1180
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
1181
1181
  /**
1182
1182
  * Forbid modules without exports, or exports without matching import in another module.
1183
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-unused-modules.md
1183
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
1184
1184
  */
1185
1185
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
1186
1186
  /**
1187
1187
  * Forbid unnecessary path segments in import and require statements.
1188
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-useless-path-segments.md
1188
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
1189
1189
  */
1190
1190
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
1191
1191
  /**
1192
1192
  * Forbid webpack loader syntax in imports.
1193
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/no-webpack-loader-syntax.md
1193
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
1194
1194
  */
1195
1195
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
1196
1196
  /**
1197
1197
  * Enforce a convention in module import order.
1198
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/order.md
1198
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
1199
1199
  */
1200
1200
  'import/order'?: Linter.RuleEntry<ImportOrder>
1201
1201
  /**
1202
1202
  * Prefer a default export if module exports a single name or multiple names.
1203
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/prefer-default-export.md
1203
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/prefer-default-export.md
1204
1204
  */
1205
1205
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1206
1206
  /**
1207
1207
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1208
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.0.1/docs/rules/unambiguous.md
1208
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
1209
1209
  */
1210
1210
  'import/unambiguous'?: Linter.RuleEntry<[]>
1211
1211
  /**
package/dist/index.js CHANGED
@@ -65,7 +65,8 @@ var GLOB_LOCKFILE = [
65
65
  "**/package-lock.json",
66
66
  "**/yarn.lock",
67
67
  "**/pnpm-lock.yaml",
68
- "**/bun.lockb"
68
+ "**/bun.lockb",
69
+ "**/deno.lock"
69
70
  ];
70
71
  var GLOB_EXCLUDE = [
71
72
  GLOB_NODE_MODULES,
@@ -86,12 +87,14 @@ var GLOB_EXCLUDE = [
86
87
  "**/components.d.ts",
87
88
  // unplugin-vue-router
88
89
  "**/typed-router.d.ts",
90
+ // vite-plugin-uni-pages
91
+ "**/uni-pages.d.ts",
89
92
  "**/coverage",
90
93
  "**/fixtures",
91
94
  "**/output",
92
95
  "**/public",
93
96
  "**/static",
94
- // VitePress VuePress
97
+ // VitePress and VuePress
95
98
  "**/?(.)temp",
96
99
  "**/?(.)cache",
97
100
  "**/.eslintcache",
@@ -1160,7 +1163,7 @@ var sortTsConfig = defineConfig([
1160
1163
  var jsonc = defineConfig([
1161
1164
  {
1162
1165
  name: "ntnyq/jsonc",
1163
- files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
1166
+ files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
1164
1167
  plugins: {
1165
1168
  jsonc: default6
1166
1169
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "2.7.0",
4
+ "version": "2.7.1",
5
5
  "packageManager": "pnpm@9.6.0",
6
6
  "description": "ESLint flat config of ntnyq",
7
7
  "keywords": [
@@ -58,12 +58,12 @@
58
58
  "@antfu/eslint-plugin-unused-imports": "^4.0.0",
59
59
  "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
60
60
  "@eslint/js": "^9.7.0",
61
- "@types/eslint": "^8.56.10",
61
+ "@types/eslint": "^9.6.0",
62
62
  "@unocss/eslint-plugin": "^0.61.5",
63
63
  "eslint-config-prettier": "^9.1.0",
64
64
  "eslint-flat-config-utils": "^0.2.5",
65
65
  "eslint-plugin-command": "^0.2.3",
66
- "eslint-plugin-import-x": "^3.0.1",
66
+ "eslint-plugin-import-x": "^3.1.0",
67
67
  "eslint-plugin-jsdoc": "^48.8.3",
68
68
  "eslint-plugin-jsonc": "^2.16.0",
69
69
  "eslint-plugin-markdown": "^5.1.0",
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "devDependencies": {
87
87
  "@ntnyq/prettier-config": "^1.21.2",
88
- "@types/node": "^20.14.11",
88
+ "@types/node": "^20.14.12",
89
89
  "bumpp": "^9.4.1",
90
90
  "eslint": "^9.7.0",
91
91
  "eslint-typegen": "^0.2.4",
@@ -93,9 +93,9 @@
93
93
  "nano-staged": "^0.8.0",
94
94
  "npm-run-all2": "^6.2.2",
95
95
  "rimraf": "^6.0.1",
96
- "tsup": "^8.2.1",
96
+ "tsup": "^8.2.3",
97
97
  "tsx": "^4.16.2",
98
- "typescript": "^5.5.3",
98
+ "typescript": "^5.5.4",
99
99
  "zx": "^8.1.4"
100
100
  },
101
101
  "engines": {