@cany748/eslint-config 3.0.2 → 3.0.3
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 +1 -1
- package/dist/index.d.cts +217 -57
- package/dist/index.d.ts +217 -57
- package/dist/index.js +1 -1
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -963,233 +963,233 @@ interface RuleOptions {
|
|
|
963
963
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
964
964
|
/**
|
|
965
965
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
966
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
966
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
967
967
|
*/
|
|
968
968
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
969
969
|
/**
|
|
970
970
|
* Ensure a default export is present, given a default import.
|
|
971
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
971
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
972
972
|
*/
|
|
973
973
|
'import/default'?: Linter.RuleEntry<[]>
|
|
974
974
|
/**
|
|
975
975
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
976
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
976
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
977
977
|
*/
|
|
978
978
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
979
979
|
/**
|
|
980
980
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
981
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
981
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
982
982
|
*/
|
|
983
983
|
'import/export'?: Linter.RuleEntry<[]>
|
|
984
984
|
/**
|
|
985
985
|
* Ensure all exports appear after other statements.
|
|
986
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
986
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
987
987
|
*/
|
|
988
988
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
989
989
|
/**
|
|
990
990
|
* Ensure consistent use of file extension within the import path.
|
|
991
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
991
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
992
992
|
*/
|
|
993
993
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
994
994
|
/**
|
|
995
995
|
* Ensure all imports appear before other statements.
|
|
996
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
996
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
997
997
|
*/
|
|
998
998
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
999
999
|
/**
|
|
1000
1000
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1001
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1001
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
1002
1002
|
*/
|
|
1003
1003
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Replaced by `import-x/first`.
|
|
1006
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1006
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
1007
1007
|
* @deprecated
|
|
1008
1008
|
*/
|
|
1009
1009
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Enforce the maximum number of dependencies a module can have.
|
|
1012
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1012
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
1013
1013
|
*/
|
|
1014
1014
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1017
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1017
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
1018
1018
|
*/
|
|
1019
1019
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1022
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1022
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
1023
1023
|
*/
|
|
1024
1024
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
1025
1025
|
/**
|
|
1026
1026
|
* Enforce a newline after import statements.
|
|
1027
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1027
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
1028
1028
|
*/
|
|
1029
1029
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Forbid import of modules using absolute paths.
|
|
1032
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1032
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
1033
1033
|
*/
|
|
1034
1034
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
1035
1035
|
/**
|
|
1036
1036
|
* Forbid AMD `require` and `define` calls.
|
|
1037
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1037
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
1038
1038
|
*/
|
|
1039
1039
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Forbid anonymous values as default exports.
|
|
1042
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1042
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
1043
1043
|
*/
|
|
1044
1044
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1047
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1047
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
1048
1048
|
*/
|
|
1049
1049
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
1050
1050
|
/**
|
|
1051
1051
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1052
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1052
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
1053
1053
|
*/
|
|
1054
1054
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
1055
1055
|
/**
|
|
1056
1056
|
* Forbid default exports.
|
|
1057
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1057
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
1058
1058
|
*/
|
|
1059
1059
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
1060
1060
|
/**
|
|
1061
1061
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1062
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1062
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
1063
1063
|
*/
|
|
1064
1064
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Forbid repeated import of the same module in multiple places.
|
|
1067
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1067
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
1068
1068
|
*/
|
|
1069
1069
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Forbid `require()` calls with expressions.
|
|
1072
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1072
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
1073
1073
|
*/
|
|
1074
1074
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Forbid empty named import blocks.
|
|
1077
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1077
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
1078
1078
|
*/
|
|
1079
1079
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Forbid the use of extraneous packages.
|
|
1082
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1082
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
1083
1083
|
*/
|
|
1084
1084
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Forbid import statements with CommonJS module.exports.
|
|
1087
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1087
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
1088
1088
|
*/
|
|
1089
1089
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Forbid importing the submodules of other modules.
|
|
1092
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1092
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
1093
1093
|
*/
|
|
1094
1094
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
1095
1095
|
/**
|
|
1096
1096
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1097
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1097
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
1098
1098
|
*/
|
|
1099
1099
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Forbid use of exported name as identifier of default export.
|
|
1102
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1102
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
1103
1103
|
*/
|
|
1104
1104
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Forbid use of exported name as property of default export.
|
|
1107
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1107
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
1108
1108
|
*/
|
|
1109
1109
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Forbid named default exports.
|
|
1112
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1112
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
1113
1113
|
*/
|
|
1114
1114
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Forbid named exports.
|
|
1117
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1117
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
1118
1118
|
*/
|
|
1119
1119
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
1120
1120
|
/**
|
|
1121
1121
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1122
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1122
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
1123
1123
|
*/
|
|
1124
1124
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Forbid Node.js builtin modules.
|
|
1127
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1127
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
1128
1128
|
*/
|
|
1129
1129
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Forbid importing packages through relative paths.
|
|
1132
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1132
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
1133
1133
|
*/
|
|
1134
1134
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
1135
1135
|
/**
|
|
1136
1136
|
* Forbid importing modules from parent directories.
|
|
1137
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1137
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
1138
1138
|
*/
|
|
1139
1139
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
1140
1140
|
/**
|
|
1141
1141
|
* Forbid importing a default export by a different name.
|
|
1142
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1142
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
1143
1143
|
*/
|
|
1144
1144
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
1145
1145
|
/**
|
|
1146
1146
|
* Enforce which files can be imported in a given folder.
|
|
1147
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1147
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
1148
1148
|
*/
|
|
1149
1149
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Forbid a module from importing itself.
|
|
1152
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1152
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
1153
1153
|
*/
|
|
1154
1154
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Forbid unassigned imports.
|
|
1157
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1157
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
1158
1158
|
*/
|
|
1159
1159
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
1160
1160
|
/**
|
|
1161
1161
|
* Ensure imports point to a file/module that can be resolved.
|
|
1162
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
1163
1163
|
*/
|
|
1164
1164
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1167
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
1168
1168
|
*/
|
|
1169
1169
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
1170
1170
|
/**
|
|
1171
1171
|
* Forbid unnecessary path segments in import and require statements.
|
|
1172
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
1173
1173
|
*/
|
|
1174
1174
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Forbid webpack loader syntax in imports.
|
|
1177
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
1178
1178
|
*/
|
|
1179
1179
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Enforce a convention in module import order.
|
|
1182
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
1183
1183
|
*/
|
|
1184
1184
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1187
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
1188
1188
|
*/
|
|
1189
1189
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1192
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1
|
|
1192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
1193
1193
|
*/
|
|
1194
1194
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
1195
1195
|
/**
|
|
@@ -3152,7 +3152,7 @@ interface RuleOptions {
|
|
|
3152
3152
|
* Enforce the use of `u` or `v` flag on RegExp
|
|
3153
3153
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
3154
3154
|
*/
|
|
3155
|
-
'require-unicode-regexp'?: Linter.RuleEntry<
|
|
3155
|
+
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
|
|
3156
3156
|
/**
|
|
3157
3157
|
* Require generator functions to contain `yield`
|
|
3158
3158
|
* @see https://eslint.org/docs/latest/rules/require-yield
|
|
@@ -4419,7 +4419,7 @@ interface RuleOptions {
|
|
|
4419
4419
|
*/
|
|
4420
4420
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>
|
|
4421
4421
|
/**
|
|
4422
|
-
* enforce order of
|
|
4422
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
4423
4423
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
4424
4424
|
*/
|
|
4425
4425
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>
|
|
@@ -4548,6 +4548,16 @@ interface RuleOptions {
|
|
|
4548
4548
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
4549
4549
|
*/
|
|
4550
4550
|
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>
|
|
4551
|
+
/**
|
|
4552
|
+
* enforce maximum number of props in Vue component
|
|
4553
|
+
* @see https://eslint.vuejs.org/rules/max-props.html
|
|
4554
|
+
*/
|
|
4555
|
+
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>
|
|
4556
|
+
/**
|
|
4557
|
+
* enforce maximum depth of template
|
|
4558
|
+
* @see https://eslint.vuejs.org/rules/max-template-depth.html
|
|
4559
|
+
*/
|
|
4560
|
+
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>
|
|
4551
4561
|
/**
|
|
4552
4562
|
* require component names to be always multi-word
|
|
4553
4563
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -4604,7 +4614,7 @@ interface RuleOptions {
|
|
|
4604
4614
|
*/
|
|
4605
4615
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>
|
|
4606
4616
|
/**
|
|
4607
|
-
* disallow accessing computed properties in `data
|
|
4617
|
+
* disallow accessing computed properties in `data`
|
|
4608
4618
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
4609
4619
|
*/
|
|
4610
4620
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>
|
|
@@ -5152,7 +5162,7 @@ interface RuleOptions {
|
|
|
5152
5162
|
*/
|
|
5153
5163
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>
|
|
5154
5164
|
/**
|
|
5155
|
-
* enforce use of `defineOptions` instead of default export
|
|
5165
|
+
* enforce use of `defineOptions` instead of default export
|
|
5156
5166
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
5157
5167
|
*/
|
|
5158
5168
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>
|
|
@@ -5196,6 +5206,11 @@ interface RuleOptions {
|
|
|
5196
5206
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
5197
5207
|
*/
|
|
5198
5208
|
'vue/require-component-is'?: Linter.RuleEntry<[]>
|
|
5209
|
+
/**
|
|
5210
|
+
* require components to be the default export
|
|
5211
|
+
* @see https://eslint.vuejs.org/rules/require-default-export.html
|
|
5212
|
+
*/
|
|
5213
|
+
'vue/require-default-export'?: Linter.RuleEntry<[]>
|
|
5199
5214
|
/**
|
|
5200
5215
|
* require default value for props
|
|
5201
5216
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -5265,7 +5280,7 @@ interface RuleOptions {
|
|
|
5265
5280
|
* require control the display of the content inside `<transition>`
|
|
5266
5281
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
5267
5282
|
*/
|
|
5268
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
5283
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>
|
|
5269
5284
|
/**
|
|
5270
5285
|
* enforce adding type declarations to object props
|
|
5271
5286
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -5574,6 +5589,7 @@ type TypescriptEslintBanTsComment = []|[{
|
|
|
5574
5589
|
"ts-check"?: (boolean | "allow-with-description" | {
|
|
5575
5590
|
descriptionFormat?: string
|
|
5576
5591
|
})
|
|
5592
|
+
|
|
5577
5593
|
minimumDescriptionLength?: number
|
|
5578
5594
|
}]
|
|
5579
5595
|
// ----- @typescript-eslint/class-literal-property-style -----
|
|
@@ -5599,29 +5615,41 @@ type TypescriptEslintConsistentReturn = []|[{
|
|
|
5599
5615
|
}]
|
|
5600
5616
|
// ----- @typescript-eslint/consistent-type-assertions -----
|
|
5601
5617
|
type TypescriptEslintConsistentTypeAssertions = []|[({
|
|
5618
|
+
|
|
5602
5619
|
assertionStyle: "never"
|
|
5603
5620
|
} | {
|
|
5621
|
+
|
|
5604
5622
|
assertionStyle: ("as" | "angle-bracket")
|
|
5623
|
+
|
|
5605
5624
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
5606
5625
|
})]
|
|
5607
5626
|
// ----- @typescript-eslint/consistent-type-definitions -----
|
|
5608
5627
|
type TypescriptEslintConsistentTypeDefinitions = []|[("interface" | "type")]
|
|
5609
5628
|
// ----- @typescript-eslint/consistent-type-exports -----
|
|
5610
5629
|
type TypescriptEslintConsistentTypeExports = []|[{
|
|
5630
|
+
|
|
5611
5631
|
fixMixedExportsWithInlineTypeSpecifier?: boolean
|
|
5612
5632
|
}]
|
|
5613
5633
|
// ----- @typescript-eslint/consistent-type-imports -----
|
|
5614
5634
|
type TypescriptEslintConsistentTypeImports = []|[{
|
|
5635
|
+
|
|
5615
5636
|
disallowTypeAnnotations?: boolean
|
|
5637
|
+
|
|
5616
5638
|
fixStyle?: ("separate-type-imports" | "inline-type-imports")
|
|
5639
|
+
|
|
5617
5640
|
prefer?: ("type-imports" | "no-type-imports")
|
|
5618
5641
|
}]
|
|
5619
5642
|
// ----- @typescript-eslint/dot-notation -----
|
|
5620
5643
|
type TypescriptEslintDotNotation = []|[{
|
|
5644
|
+
|
|
5621
5645
|
allowKeywords?: boolean
|
|
5646
|
+
|
|
5622
5647
|
allowPattern?: string
|
|
5648
|
+
|
|
5623
5649
|
allowPrivateClassPropertyAccess?: boolean
|
|
5650
|
+
|
|
5624
5651
|
allowProtectedClassPropertyAccess?: boolean
|
|
5652
|
+
|
|
5625
5653
|
allowIndexSignaturePropertyAccess?: boolean
|
|
5626
5654
|
}]
|
|
5627
5655
|
// ----- @typescript-eslint/explicit-function-return-type -----
|
|
@@ -5653,6 +5681,7 @@ type TypescriptEslintExplicitMemberAccessibility = []|[{
|
|
|
5653
5681
|
properties?: ("explicit" | "no-public" | "off")
|
|
5654
5682
|
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
5655
5683
|
}
|
|
5684
|
+
|
|
5656
5685
|
ignoredMethodNames?: string[]
|
|
5657
5686
|
}]
|
|
5658
5687
|
// ----- @typescript-eslint/explicit-module-boundary-types -----
|
|
@@ -5674,8 +5703,11 @@ type TypescriptEslintInitDeclarations = ([]|["always"] | []|["never"]|["never",
|
|
|
5674
5703
|
}])
|
|
5675
5704
|
// ----- @typescript-eslint/max-params -----
|
|
5676
5705
|
type TypescriptEslintMaxParams = []|[{
|
|
5677
|
-
|
|
5706
|
+
|
|
5678
5707
|
max?: number
|
|
5708
|
+
|
|
5709
|
+
maximum?: number
|
|
5710
|
+
|
|
5679
5711
|
countVoidThis?: boolean
|
|
5680
5712
|
}]
|
|
5681
5713
|
// ----- @typescript-eslint/member-ordering -----
|
|
@@ -6029,30 +6061,40 @@ interface _TypescriptEslintNamingConvention_MatchRegexConfig {
|
|
|
6029
6061
|
}
|
|
6030
6062
|
// ----- @typescript-eslint/no-base-to-string -----
|
|
6031
6063
|
type TypescriptEslintNoBaseToString = []|[{
|
|
6064
|
+
|
|
6032
6065
|
ignoredTypeNames?: string[]
|
|
6033
6066
|
}]
|
|
6034
6067
|
// ----- @typescript-eslint/no-confusing-void-expression -----
|
|
6035
6068
|
type TypescriptEslintNoConfusingVoidExpression = []|[{
|
|
6069
|
+
|
|
6036
6070
|
ignoreArrowShorthand?: boolean
|
|
6071
|
+
|
|
6037
6072
|
ignoreVoidOperator?: boolean
|
|
6038
6073
|
}]
|
|
6039
6074
|
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
6040
6075
|
type TypescriptEslintNoDuplicateTypeConstituents = []|[{
|
|
6076
|
+
|
|
6041
6077
|
ignoreIntersections?: boolean
|
|
6078
|
+
|
|
6042
6079
|
ignoreUnions?: boolean
|
|
6043
6080
|
}]
|
|
6044
6081
|
// ----- @typescript-eslint/no-empty-function -----
|
|
6045
6082
|
type TypescriptEslintNoEmptyFunction = []|[{
|
|
6083
|
+
|
|
6046
6084
|
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "private-constructors" | "protected-constructors" | "asyncFunctions" | "asyncMethods" | "decoratedFunctions" | "overrideMethods")[]
|
|
6047
6085
|
}]
|
|
6048
6086
|
// ----- @typescript-eslint/no-empty-interface -----
|
|
6049
6087
|
type TypescriptEslintNoEmptyInterface = []|[{
|
|
6088
|
+
|
|
6050
6089
|
allowSingleExtends?: boolean
|
|
6051
6090
|
}]
|
|
6052
6091
|
// ----- @typescript-eslint/no-empty-object-type -----
|
|
6053
6092
|
type TypescriptEslintNoEmptyObjectType = []|[{
|
|
6093
|
+
|
|
6054
6094
|
allowInterfaces?: ("always" | "never" | "with-single-extends")
|
|
6095
|
+
|
|
6055
6096
|
allowObjectTypes?: ("always" | "never")
|
|
6097
|
+
|
|
6056
6098
|
allowWithName?: string
|
|
6057
6099
|
}]
|
|
6058
6100
|
// ----- @typescript-eslint/no-explicit-any -----
|
|
@@ -6075,6 +6117,7 @@ type TypescriptEslintNoExtraneousClass = []|[{
|
|
|
6075
6117
|
}]
|
|
6076
6118
|
// ----- @typescript-eslint/no-floating-promises -----
|
|
6077
6119
|
type TypescriptEslintNoFloatingPromises = []|[{
|
|
6120
|
+
|
|
6078
6121
|
allowForKnownSafePromises?: (string | {
|
|
6079
6122
|
from: "file"
|
|
6080
6123
|
name: (string | [string, ...(string)[]])
|
|
@@ -6087,6 +6130,7 @@ type TypescriptEslintNoFloatingPromises = []|[{
|
|
|
6087
6130
|
name: (string | [string, ...(string)[]])
|
|
6088
6131
|
package: string
|
|
6089
6132
|
})[]
|
|
6133
|
+
|
|
6090
6134
|
allowForKnownSafeCalls?: (string | {
|
|
6091
6135
|
from: "file"
|
|
6092
6136
|
name: (string | [string, ...(string)[]])
|
|
@@ -6108,7 +6152,9 @@ type TypescriptEslintNoFloatingPromises = []|[{
|
|
|
6108
6152
|
}]
|
|
6109
6153
|
// ----- @typescript-eslint/no-inferrable-types -----
|
|
6110
6154
|
type TypescriptEslintNoInferrableTypes = []|[{
|
|
6155
|
+
|
|
6111
6156
|
ignoreParameters?: boolean
|
|
6157
|
+
|
|
6112
6158
|
ignoreProperties?: boolean
|
|
6113
6159
|
}]
|
|
6114
6160
|
// ----- @typescript-eslint/no-invalid-this -----
|
|
@@ -6117,7 +6163,9 @@ type TypescriptEslintNoInvalidThis = []|[{
|
|
|
6117
6163
|
}]
|
|
6118
6164
|
// ----- @typescript-eslint/no-invalid-void-type -----
|
|
6119
6165
|
type TypescriptEslintNoInvalidVoidType = []|[{
|
|
6166
|
+
|
|
6120
6167
|
allowInGenericTypeArguments?: (boolean | [string, ...(string)[]])
|
|
6168
|
+
|
|
6121
6169
|
allowAsThisParameter?: boolean
|
|
6122
6170
|
}]
|
|
6123
6171
|
// ----- @typescript-eslint/no-magic-numbers -----
|
|
@@ -6128,26 +6176,38 @@ type TypescriptEslintNoMagicNumbers = []|[{
|
|
|
6128
6176
|
ignoreArrayIndexes?: boolean
|
|
6129
6177
|
ignoreDefaultValues?: boolean
|
|
6130
6178
|
ignoreClassFieldInitialValues?: boolean
|
|
6179
|
+
|
|
6131
6180
|
ignoreNumericLiteralTypes?: boolean
|
|
6181
|
+
|
|
6132
6182
|
ignoreEnums?: boolean
|
|
6183
|
+
|
|
6133
6184
|
ignoreReadonlyClassProperties?: boolean
|
|
6185
|
+
|
|
6134
6186
|
ignoreTypeIndexes?: boolean
|
|
6135
6187
|
}]
|
|
6136
6188
|
// ----- @typescript-eslint/no-meaningless-void-operator -----
|
|
6137
6189
|
type TypescriptEslintNoMeaninglessVoidOperator = []|[{
|
|
6190
|
+
|
|
6138
6191
|
checkNever?: boolean
|
|
6139
6192
|
}]
|
|
6140
6193
|
// ----- @typescript-eslint/no-misused-promises -----
|
|
6141
6194
|
type TypescriptEslintNoMisusedPromises = []|[{
|
|
6142
6195
|
checksConditionals?: boolean
|
|
6143
6196
|
checksVoidReturn?: (boolean | {
|
|
6197
|
+
|
|
6144
6198
|
arguments?: boolean
|
|
6199
|
+
|
|
6145
6200
|
attributes?: boolean
|
|
6201
|
+
|
|
6146
6202
|
inheritedMethods?: boolean
|
|
6203
|
+
|
|
6147
6204
|
properties?: boolean
|
|
6205
|
+
|
|
6148
6206
|
returns?: boolean
|
|
6207
|
+
|
|
6149
6208
|
variables?: boolean
|
|
6150
6209
|
})
|
|
6210
|
+
|
|
6151
6211
|
checksSpreads?: boolean
|
|
6152
6212
|
}]
|
|
6153
6213
|
// ----- @typescript-eslint/no-namespace -----
|
|
@@ -6159,7 +6219,9 @@ type TypescriptEslintNoNamespace = []|[{
|
|
|
6159
6219
|
}]
|
|
6160
6220
|
// ----- @typescript-eslint/no-redeclare -----
|
|
6161
6221
|
type TypescriptEslintNoRedeclare = []|[{
|
|
6222
|
+
|
|
6162
6223
|
builtinGlobals?: boolean
|
|
6224
|
+
|
|
6163
6225
|
ignoreDeclarationMerge?: boolean
|
|
6164
6226
|
}]
|
|
6165
6227
|
// ----- @typescript-eslint/no-require-imports -----
|
|
@@ -6217,11 +6279,17 @@ type TypescriptEslintNoRestrictedTypes = []|[{
|
|
|
6217
6279
|
}]
|
|
6218
6280
|
// ----- @typescript-eslint/no-shadow -----
|
|
6219
6281
|
type TypescriptEslintNoShadow = []|[{
|
|
6282
|
+
|
|
6220
6283
|
builtinGlobals?: boolean
|
|
6284
|
+
|
|
6221
6285
|
hoist?: ("all" | "functions" | "never")
|
|
6286
|
+
|
|
6222
6287
|
allow?: string[]
|
|
6288
|
+
|
|
6223
6289
|
ignoreOnInitialization?: boolean
|
|
6290
|
+
|
|
6224
6291
|
ignoreTypeValueShadow?: boolean
|
|
6292
|
+
|
|
6225
6293
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
6226
6294
|
}]
|
|
6227
6295
|
// ----- @typescript-eslint/no-this-alias -----
|
|
@@ -6278,24 +6346,40 @@ type TypescriptEslintNoUnusedExpressions = []|[{
|
|
|
6278
6346
|
}]
|
|
6279
6347
|
// ----- @typescript-eslint/no-unused-vars -----
|
|
6280
6348
|
type TypescriptEslintNoUnusedVars = []|[(("all" | "local") | {
|
|
6349
|
+
|
|
6281
6350
|
vars?: ("all" | "local")
|
|
6351
|
+
|
|
6282
6352
|
varsIgnorePattern?: string
|
|
6353
|
+
|
|
6283
6354
|
args?: ("all" | "after-used" | "none")
|
|
6284
|
-
|
|
6355
|
+
|
|
6285
6356
|
argsIgnorePattern?: string
|
|
6357
|
+
|
|
6286
6358
|
caughtErrors?: ("all" | "none")
|
|
6359
|
+
|
|
6287
6360
|
caughtErrorsIgnorePattern?: string
|
|
6361
|
+
|
|
6288
6362
|
destructuredArrayIgnorePattern?: string
|
|
6363
|
+
|
|
6289
6364
|
ignoreClassWithStaticInitBlock?: boolean
|
|
6365
|
+
|
|
6366
|
+
ignoreRestSiblings?: boolean
|
|
6367
|
+
|
|
6290
6368
|
reportUsedIgnorePattern?: boolean
|
|
6291
6369
|
})]
|
|
6292
6370
|
// ----- @typescript-eslint/no-use-before-define -----
|
|
6293
6371
|
type TypescriptEslintNoUseBeforeDefine = []|[("nofunc" | {
|
|
6372
|
+
|
|
6294
6373
|
functions?: boolean
|
|
6374
|
+
|
|
6295
6375
|
classes?: boolean
|
|
6376
|
+
|
|
6296
6377
|
enums?: boolean
|
|
6378
|
+
|
|
6297
6379
|
variables?: boolean
|
|
6380
|
+
|
|
6298
6381
|
typedefs?: boolean
|
|
6382
|
+
|
|
6299
6383
|
ignoreTypeReferences?: boolean
|
|
6300
6384
|
allowNamedExports?: boolean
|
|
6301
6385
|
})]
|
|
@@ -6306,12 +6390,16 @@ type TypescriptEslintNoVarRequires = []|[{
|
|
|
6306
6390
|
}]
|
|
6307
6391
|
// ----- @typescript-eslint/only-throw-error -----
|
|
6308
6392
|
type TypescriptEslintOnlyThrowError = []|[{
|
|
6393
|
+
|
|
6309
6394
|
allowThrowingAny?: boolean
|
|
6395
|
+
|
|
6310
6396
|
allowThrowingUnknown?: boolean
|
|
6311
6397
|
}]
|
|
6312
6398
|
// ----- @typescript-eslint/parameter-properties -----
|
|
6313
6399
|
type TypescriptEslintParameterProperties = []|[{
|
|
6400
|
+
|
|
6314
6401
|
allow?: ("readonly" | "private" | "protected" | "public" | "private readonly" | "protected readonly" | "public readonly")[]
|
|
6402
|
+
|
|
6315
6403
|
prefer?: ("class-property" | "parameter-property")
|
|
6316
6404
|
}]
|
|
6317
6405
|
// ----- @typescript-eslint/prefer-destructuring -----
|
|
@@ -6346,13 +6434,18 @@ type TypescriptEslintPreferDestructuring = []|[({
|
|
|
6346
6434
|
}]
|
|
6347
6435
|
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
6348
6436
|
type TypescriptEslintPreferLiteralEnumMember = []|[{
|
|
6437
|
+
|
|
6349
6438
|
allowBitwiseExpressions?: boolean
|
|
6350
6439
|
}]
|
|
6351
6440
|
// ----- @typescript-eslint/prefer-nullish-coalescing -----
|
|
6352
6441
|
type TypescriptEslintPreferNullishCoalescing = []|[{
|
|
6442
|
+
|
|
6353
6443
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
6444
|
+
|
|
6354
6445
|
ignoreConditionalTests?: boolean
|
|
6446
|
+
|
|
6355
6447
|
ignoreMixedLogicalExpressions?: boolean
|
|
6448
|
+
|
|
6356
6449
|
ignorePrimitives?: ({
|
|
6357
6450
|
bigint?: boolean
|
|
6358
6451
|
boolean?: boolean
|
|
@@ -6360,6 +6453,7 @@ type TypescriptEslintPreferNullishCoalescing = []|[{
|
|
|
6360
6453
|
string?: boolean
|
|
6361
6454
|
[k: string]: unknown | undefined
|
|
6362
6455
|
} | true)
|
|
6456
|
+
|
|
6363
6457
|
ignoreTernaryTests?: boolean
|
|
6364
6458
|
}]
|
|
6365
6459
|
// ----- @typescript-eslint/prefer-optional-chain -----
|
|
@@ -6383,14 +6477,17 @@ type TypescriptEslintPreferOptionalChain = []|[{
|
|
|
6383
6477
|
}]
|
|
6384
6478
|
// ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
6385
6479
|
type TypescriptEslintPreferPromiseRejectErrors = []|[{
|
|
6480
|
+
|
|
6386
6481
|
allowEmptyReject?: boolean
|
|
6387
6482
|
}]
|
|
6388
6483
|
// ----- @typescript-eslint/prefer-readonly -----
|
|
6389
6484
|
type TypescriptEslintPreferReadonly = []|[{
|
|
6485
|
+
|
|
6390
6486
|
onlyInlineLambdas?: boolean
|
|
6391
6487
|
}]
|
|
6392
6488
|
// ----- @typescript-eslint/prefer-readonly-parameter-types -----
|
|
6393
6489
|
type TypescriptEslintPreferReadonlyParameterTypes = []|[{
|
|
6490
|
+
|
|
6394
6491
|
allow?: (string | {
|
|
6395
6492
|
from: "file"
|
|
6396
6493
|
name: (string | [string, ...(string)[]])
|
|
@@ -6403,8 +6500,11 @@ type TypescriptEslintPreferReadonlyParameterTypes = []|[{
|
|
|
6403
6500
|
name: (string | [string, ...(string)[]])
|
|
6404
6501
|
package: string
|
|
6405
6502
|
})[]
|
|
6503
|
+
|
|
6406
6504
|
checkParameterProperties?: boolean
|
|
6505
|
+
|
|
6407
6506
|
ignoreInferredTypes?: boolean
|
|
6507
|
+
|
|
6408
6508
|
treatMethodsAsReadonly?: boolean
|
|
6409
6509
|
}]
|
|
6410
6510
|
// ----- @typescript-eslint/prefer-string-starts-ends-with -----
|
|
@@ -6418,9 +6518,13 @@ type TypescriptEslintPromiseFunctionAsync = []|[{
|
|
|
6418
6518
|
allowAny?: boolean
|
|
6419
6519
|
|
|
6420
6520
|
allowedPromiseNames?: string[]
|
|
6521
|
+
|
|
6421
6522
|
checkArrowFunctions?: boolean
|
|
6523
|
+
|
|
6422
6524
|
checkFunctionDeclarations?: boolean
|
|
6525
|
+
|
|
6423
6526
|
checkFunctionExpressions?: boolean
|
|
6527
|
+
|
|
6424
6528
|
checkMethodDeclarations?: boolean
|
|
6425
6529
|
}]
|
|
6426
6530
|
// ----- @typescript-eslint/require-array-sort-compare -----
|
|
@@ -6461,7 +6565,7 @@ type TypescriptEslintRestrictTemplateExpressions = []|[{
|
|
|
6461
6565
|
allowNever?: boolean
|
|
6462
6566
|
}]
|
|
6463
6567
|
// ----- @typescript-eslint/return-await -----
|
|
6464
|
-
type TypescriptEslintReturnAwait = []|[("
|
|
6568
|
+
type TypescriptEslintReturnAwait = []|[(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]
|
|
6465
6569
|
// ----- @typescript-eslint/sort-type-constituents -----
|
|
6466
6570
|
type TypescriptEslintSortTypeConstituents = []|[{
|
|
6467
6571
|
|
|
@@ -6475,13 +6579,21 @@ type TypescriptEslintSortTypeConstituents = []|[{
|
|
|
6475
6579
|
}]
|
|
6476
6580
|
// ----- @typescript-eslint/strict-boolean-expressions -----
|
|
6477
6581
|
type TypescriptEslintStrictBooleanExpressions = []|[{
|
|
6582
|
+
|
|
6478
6583
|
allowString?: boolean
|
|
6584
|
+
|
|
6479
6585
|
allowNumber?: boolean
|
|
6586
|
+
|
|
6480
6587
|
allowNullableObject?: boolean
|
|
6588
|
+
|
|
6481
6589
|
allowNullableBoolean?: boolean
|
|
6590
|
+
|
|
6482
6591
|
allowNullableString?: boolean
|
|
6592
|
+
|
|
6483
6593
|
allowNullableNumber?: boolean
|
|
6594
|
+
|
|
6484
6595
|
allowNullableEnum?: boolean
|
|
6596
|
+
|
|
6485
6597
|
allowAny?: boolean
|
|
6486
6598
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
6487
6599
|
}]
|
|
@@ -6494,19 +6606,30 @@ type TypescriptEslintSwitchExhaustivenessCheck = []|[{
|
|
|
6494
6606
|
}]
|
|
6495
6607
|
// ----- @typescript-eslint/triple-slash-reference -----
|
|
6496
6608
|
type TypescriptEslintTripleSlashReference = []|[{
|
|
6609
|
+
|
|
6497
6610
|
lib?: ("always" | "never")
|
|
6611
|
+
|
|
6498
6612
|
path?: ("always" | "never")
|
|
6613
|
+
|
|
6499
6614
|
types?: ("always" | "never" | "prefer-import")
|
|
6500
6615
|
}]
|
|
6501
6616
|
// ----- @typescript-eslint/typedef -----
|
|
6502
6617
|
type TypescriptEslintTypedef = []|[{
|
|
6618
|
+
|
|
6503
6619
|
arrayDestructuring?: boolean
|
|
6620
|
+
|
|
6504
6621
|
arrowParameter?: boolean
|
|
6622
|
+
|
|
6505
6623
|
memberVariableDeclaration?: boolean
|
|
6624
|
+
|
|
6506
6625
|
objectDestructuring?: boolean
|
|
6626
|
+
|
|
6507
6627
|
parameter?: boolean
|
|
6628
|
+
|
|
6508
6629
|
propertyDeclaration?: boolean
|
|
6630
|
+
|
|
6509
6631
|
variableDeclaration?: boolean
|
|
6632
|
+
|
|
6510
6633
|
variableDeclarationIgnoreFunction?: boolean
|
|
6511
6634
|
}]
|
|
6512
6635
|
// ----- @typescript-eslint/unbound-method -----
|
|
@@ -6849,6 +6972,7 @@ type ImportNoExtraneousDependencies = []|[{
|
|
|
6849
6972
|
packageDir?: (string | unknown[])
|
|
6850
6973
|
includeInternal?: boolean
|
|
6851
6974
|
includeTypes?: boolean
|
|
6975
|
+
whitelist?: unknown[]
|
|
6852
6976
|
}]
|
|
6853
6977
|
// ----- import/no-import-module-exports -----
|
|
6854
6978
|
type ImportNoImportModuleExports = []|[{
|
|
@@ -8720,6 +8844,10 @@ type RegexpUnicodeProperty = []|[{
|
|
|
8720
8844
|
type RequireAtomicUpdates = []|[{
|
|
8721
8845
|
allowProperties?: boolean
|
|
8722
8846
|
}]
|
|
8847
|
+
// ----- require-unicode-regexp -----
|
|
8848
|
+
type RequireUnicodeRegexp = []|[{
|
|
8849
|
+
requireFlag?: ("u" | "v")
|
|
8850
|
+
}]
|
|
8723
8851
|
// ----- rest-spread-spacing -----
|
|
8724
8852
|
type RestSpreadSpacing = []|[("always" | "never")]
|
|
8725
8853
|
// ----- semi -----
|
|
@@ -9114,28 +9242,48 @@ type UnocssEnforceClassCompile = []|[{
|
|
|
9114
9242
|
}]
|
|
9115
9243
|
// ----- unused-imports/no-unused-imports -----
|
|
9116
9244
|
type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
9245
|
+
|
|
9117
9246
|
vars?: ("all" | "local")
|
|
9247
|
+
|
|
9118
9248
|
varsIgnorePattern?: string
|
|
9249
|
+
|
|
9119
9250
|
args?: ("all" | "after-used" | "none")
|
|
9120
|
-
|
|
9251
|
+
|
|
9121
9252
|
argsIgnorePattern?: string
|
|
9253
|
+
|
|
9122
9254
|
caughtErrors?: ("all" | "none")
|
|
9255
|
+
|
|
9123
9256
|
caughtErrorsIgnorePattern?: string
|
|
9257
|
+
|
|
9124
9258
|
destructuredArrayIgnorePattern?: string
|
|
9259
|
+
|
|
9125
9260
|
ignoreClassWithStaticInitBlock?: boolean
|
|
9261
|
+
|
|
9262
|
+
ignoreRestSiblings?: boolean
|
|
9263
|
+
|
|
9126
9264
|
reportUsedIgnorePattern?: boolean
|
|
9127
9265
|
})]
|
|
9128
9266
|
// ----- unused-imports/no-unused-vars -----
|
|
9129
9267
|
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
9268
|
+
|
|
9130
9269
|
vars?: ("all" | "local")
|
|
9270
|
+
|
|
9131
9271
|
varsIgnorePattern?: string
|
|
9272
|
+
|
|
9132
9273
|
args?: ("all" | "after-used" | "none")
|
|
9133
|
-
|
|
9274
|
+
|
|
9134
9275
|
argsIgnorePattern?: string
|
|
9276
|
+
|
|
9135
9277
|
caughtErrors?: ("all" | "none")
|
|
9278
|
+
|
|
9136
9279
|
caughtErrorsIgnorePattern?: string
|
|
9280
|
+
|
|
9137
9281
|
destructuredArrayIgnorePattern?: string
|
|
9282
|
+
|
|
9138
9283
|
ignoreClassWithStaticInitBlock?: boolean
|
|
9284
|
+
|
|
9285
|
+
ignoreRestSiblings?: boolean
|
|
9286
|
+
|
|
9139
9287
|
reportUsedIgnorePattern?: boolean
|
|
9140
9288
|
})]
|
|
9141
9289
|
// ----- use-isnan -----
|
|
@@ -9275,7 +9423,7 @@ type VueCustomEventNameCasing = ([]|[("kebab-case" | "camelCase")]|[("kebab-case
|
|
|
9275
9423
|
type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
|
|
9276
9424
|
// ----- vue/define-macros-order -----
|
|
9277
9425
|
type VueDefineMacrosOrder = []|[{
|
|
9278
|
-
order?:
|
|
9426
|
+
order?: string[]
|
|
9279
9427
|
defineExposeLast?: boolean
|
|
9280
9428
|
}]
|
|
9281
9429
|
// ----- vue/define-props-declaration -----
|
|
@@ -9806,6 +9954,14 @@ type VueMaxLinesPerBlock = []|[{
|
|
|
9806
9954
|
script?: number
|
|
9807
9955
|
skipBlankLines?: boolean
|
|
9808
9956
|
}]
|
|
9957
|
+
// ----- vue/max-props -----
|
|
9958
|
+
type VueMaxProps = []|[{
|
|
9959
|
+
maxProps?: number
|
|
9960
|
+
}]
|
|
9961
|
+
// ----- vue/max-template-depth -----
|
|
9962
|
+
type VueMaxTemplateDepth = []|[{
|
|
9963
|
+
maxDepth?: number
|
|
9964
|
+
}]
|
|
9809
9965
|
// ----- vue/multi-word-component-names -----
|
|
9810
9966
|
type VueMultiWordComponentNames = []|[{
|
|
9811
9967
|
ignores?: string[]
|
|
@@ -10207,6 +10363,10 @@ type VueRequireMacroVariableName = []|[{
|
|
|
10207
10363
|
type VueRequirePropComment = []|[{
|
|
10208
10364
|
type?: ("JSDoc" | "line" | "block" | "any")
|
|
10209
10365
|
}]
|
|
10366
|
+
// ----- vue/require-toggle-inside-transition -----
|
|
10367
|
+
type VueRequireToggleInsideTransition = []|[{
|
|
10368
|
+
additionalDirectives?: string[]
|
|
10369
|
+
}]
|
|
10210
10370
|
// ----- vue/return-in-computed-property -----
|
|
10211
10371
|
type VueReturnInComputedProperty = []|[{
|
|
10212
10372
|
treatUndefinedAsUnspecified?: boolean
|