@ntnyq/eslint-config 5.0.0-beta.8 → 5.1.0
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/README.md +3 -0
- package/dist/index.d.ts +186 -60
- package/dist/index.js +33 -12
- package/package.json +29 -28
package/README.md
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
- NodeJS v20.11.0+
|
|
16
16
|
- ESLint v9.20.0+
|
|
17
17
|
|
|
18
|
+
> [!TIP]
|
|
19
|
+
> For NodeJS v18 support, please use [v4](https://github.com/ntnyq/eslint-config/tree/v4)
|
|
20
|
+
|
|
18
21
|
## Features
|
|
19
22
|
|
|
20
23
|
- Designed to work alongside with [Prettier](https://prettier.io) and [TypeScript](https://www.typescriptlang.org/)
|
package/dist/index.d.ts
CHANGED
|
@@ -196,7 +196,7 @@ declare const configSort: (options?: ConfigSortOptions) => TypedConfigItem[];
|
|
|
196
196
|
/**
|
|
197
197
|
* Options type of {@link configSVGO}
|
|
198
198
|
*/
|
|
199
|
-
type ConfigSVGOOptions = OptionsFiles & OptionsIgnores;
|
|
199
|
+
type ConfigSVGOOptions = OptionsFiles & OptionsIgnores & OptionsOverrides;
|
|
200
200
|
/**
|
|
201
201
|
* Config for svg files
|
|
202
202
|
*
|
|
@@ -776,6 +776,18 @@ type ConfigPerfectionistOptions = OptionsOverrides & {
|
|
|
776
776
|
* @default false
|
|
777
777
|
*/
|
|
778
778
|
all?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* files for `constants`, will overrides default values
|
|
781
|
+
*/
|
|
782
|
+
filesConstants?: TypedConfigItem['files'];
|
|
783
|
+
/**
|
|
784
|
+
* files for `enums`, will overrides default values
|
|
785
|
+
*/
|
|
786
|
+
filesEnums?: TypedConfigItem['files'];
|
|
787
|
+
/**
|
|
788
|
+
* files for `types`, will overrides default values
|
|
789
|
+
*/
|
|
790
|
+
filesTypes?: TypedConfigItem['files'];
|
|
779
791
|
/**
|
|
780
792
|
* Overrides rules for `constants`
|
|
781
793
|
*/
|
|
@@ -902,14 +914,17 @@ interface RuleOptions {
|
|
|
902
914
|
'@eslint-community/eslint-comments/require-description'?: Linter.RuleEntry<EslintCommunityEslintCommentsRequireDescription>;
|
|
903
915
|
/**
|
|
904
916
|
* Enforce newline between attributes
|
|
917
|
+
* @see https://html-eslint.org/docs/rules/attrs-newline
|
|
905
918
|
*/
|
|
906
919
|
'@html-eslint/attrs-newline'?: Linter.RuleEntry<HtmlEslintAttrsNewline>;
|
|
907
920
|
/**
|
|
908
921
|
* Enforce newline between elements.
|
|
922
|
+
* @see https://html-eslint.org/docs/rules/element-newline
|
|
909
923
|
*/
|
|
910
924
|
'@html-eslint/element-newline'?: Linter.RuleEntry<HtmlEslintElementNewline>;
|
|
911
925
|
/**
|
|
912
926
|
* Enforce consistent naming id attributes
|
|
927
|
+
* @see https://html-eslint.org/docs/rules/id-naming-convention
|
|
913
928
|
*/
|
|
914
929
|
'@html-eslint/id-naming-convention'?: Linter.RuleEntry<HtmlEslintIdNamingConvention>;
|
|
915
930
|
/**
|
|
@@ -918,182 +933,247 @@ interface RuleOptions {
|
|
|
918
933
|
'@html-eslint/indent'?: Linter.RuleEntry<HtmlEslintIndent>;
|
|
919
934
|
/**
|
|
920
935
|
* Enforce to use lowercase for tag and attribute names.
|
|
936
|
+
* @see https://html-eslint.org/docs/rules/lowercase
|
|
921
937
|
*/
|
|
922
938
|
'@html-eslint/lowercase'?: Linter.RuleEntry<[]>;
|
|
923
939
|
/**
|
|
924
940
|
* Enforce element maximum depth
|
|
941
|
+
* @see https://html-eslint.org/docs/rules/max-element-depth
|
|
925
942
|
*/
|
|
926
943
|
'@html-eslint/max-element-depth'?: Linter.RuleEntry<HtmlEslintMaxElementDepth>;
|
|
927
944
|
/**
|
|
928
945
|
* Disallow to use of abstract roles
|
|
946
|
+
* @see https://html-eslint.org/docs/rules/no-abstract-roles
|
|
929
947
|
*/
|
|
930
948
|
'@html-eslint/no-abstract-roles'?: Linter.RuleEntry<[]>;
|
|
931
949
|
/**
|
|
932
950
|
* Disallow to use of accesskey attribute
|
|
951
|
+
* @see https://html-eslint.org/docs/rules/no-accesskey-attrs
|
|
933
952
|
*/
|
|
934
953
|
'@html-eslint/no-accesskey-attrs'?: Linter.RuleEntry<[]>;
|
|
935
954
|
/**
|
|
936
955
|
* Disallow to use aria-hidden attributes on the `body` element.
|
|
956
|
+
* @see https://html-eslint.org/docs/rules/no-aria-hidden-body
|
|
937
957
|
*/
|
|
938
958
|
'@html-eslint/no-aria-hidden-body'?: Linter.RuleEntry<[]>;
|
|
959
|
+
/**
|
|
960
|
+
* Disallow aria-hidden="true" on focusable elements
|
|
961
|
+
* @see https://html-eslint.org/docs/rules/no-aria-hidden-on-focusable
|
|
962
|
+
*/
|
|
963
|
+
'@html-eslint/no-aria-hidden-on-focusable'?: Linter.RuleEntry<[]>;
|
|
939
964
|
/**
|
|
940
965
|
* Disallow to use duplicate attributes
|
|
966
|
+
* @see https://html-eslint.org/docs/rules/no-duplicate-attrs
|
|
941
967
|
*/
|
|
942
968
|
'@html-eslint/no-duplicate-attrs'?: Linter.RuleEntry<[]>;
|
|
943
969
|
/**
|
|
944
970
|
* Disallow to use duplicate class
|
|
971
|
+
* @see https://html-eslint.org/docs/rules/no-duplicate-class
|
|
945
972
|
*/
|
|
946
973
|
'@html-eslint/no-duplicate-class'?: Linter.RuleEntry<[]>;
|
|
947
974
|
/**
|
|
948
975
|
* Disallow to use duplicate id
|
|
976
|
+
* @see https://html-eslint.org/docs/rules/no-duplicate-id
|
|
949
977
|
*/
|
|
950
978
|
'@html-eslint/no-duplicate-id'?: Linter.RuleEntry<[]>;
|
|
979
|
+
/**
|
|
980
|
+
* Disallow duplicate tags in `<head>`
|
|
981
|
+
* @see https://html-eslint.org/docs/rules/no-duplicate-in-head
|
|
982
|
+
*/
|
|
983
|
+
'@html-eslint/no-duplicate-in-head'?: Linter.RuleEntry<[]>;
|
|
984
|
+
/**
|
|
985
|
+
* Disallow empty or inaccessible headings.
|
|
986
|
+
* @see https://html-eslint.org/docs/rules/no-empty-headings
|
|
987
|
+
*/
|
|
988
|
+
'@html-eslint/no-empty-headings'?: Linter.RuleEntry<[]>;
|
|
951
989
|
/**
|
|
952
990
|
* Disallow an extra spacing around attributes
|
|
991
|
+
* @see https://html-eslint.org/docs/rules/no-extra-spacing-attrs
|
|
953
992
|
*/
|
|
954
993
|
'@html-eslint/no-extra-spacing-attrs'?: Linter.RuleEntry<HtmlEslintNoExtraSpacingAttrs>;
|
|
955
994
|
/**
|
|
956
995
|
* Disallow unnecessary consecutive spaces
|
|
996
|
+
* @see https://html-eslint.org/docs/rules/no-extra-spacing-text
|
|
957
997
|
*/
|
|
958
998
|
'@html-eslint/no-extra-spacing-text'?: Linter.RuleEntry<HtmlEslintNoExtraSpacingText>;
|
|
959
999
|
/**
|
|
960
1000
|
* Disallows the use of heading elements inside <button>.
|
|
1001
|
+
* @see https://html-eslint.org/docs/rules/no-heading-inside-button
|
|
961
1002
|
*/
|
|
962
1003
|
'@html-eslint/no-heading-inside-button'?: Linter.RuleEntry<[]>;
|
|
963
1004
|
/**
|
|
964
1005
|
* Disallow using inline style
|
|
1006
|
+
* @see https://html-eslint.org/docs/rules/no-inline-styles
|
|
965
1007
|
*/
|
|
966
1008
|
'@html-eslint/no-inline-styles'?: Linter.RuleEntry<[]>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Disallows the use of invalid HTML entities
|
|
1011
|
+
* @see https://html-eslint.org/docs/rules/no-invalid-entity
|
|
1012
|
+
*/
|
|
1013
|
+
'@html-eslint/no-invalid-entity'?: Linter.RuleEntry<[]>;
|
|
967
1014
|
/**
|
|
968
1015
|
* Disallows use of invalid role.
|
|
1016
|
+
* @see https://html-eslint.org/docs/rules/no-invalid-role
|
|
969
1017
|
*/
|
|
970
1018
|
'@html-eslint/no-invalid-role'?: Linter.RuleEntry<[]>;
|
|
971
1019
|
/**
|
|
972
1020
|
* Disallow multiple empty lines
|
|
1021
|
+
* @see https://html-eslint.org/docs/rules/no-multiple-empty-lines
|
|
973
1022
|
*/
|
|
974
1023
|
'@html-eslint/no-multiple-empty-lines'?: Linter.RuleEntry<HtmlEslintNoMultipleEmptyLines>;
|
|
975
1024
|
/**
|
|
976
1025
|
* Disallow multiple `<h1></h1>`.
|
|
1026
|
+
* @see https://html-eslint.org/docs/rules/no-multiple-h1
|
|
977
1027
|
*/
|
|
978
1028
|
'@html-eslint/no-multiple-h1'?: Linter.RuleEntry<[]>;
|
|
979
1029
|
/**
|
|
980
1030
|
* Disallows nested interactive elements
|
|
1031
|
+
* @see https://html-eslint.org/docs/rules/no-nested-interactive
|
|
981
1032
|
*/
|
|
982
1033
|
'@html-eslint/no-nested-interactive'?: Linter.RuleEntry<[]>;
|
|
983
1034
|
/**
|
|
984
1035
|
* Disallow use of `user-scalable=no` in `<meta name="viewport">`.
|
|
1036
|
+
* @see https://html-eslint.org/docs/rules/no-non-scalable-viewport
|
|
985
1037
|
*/
|
|
986
1038
|
'@html-eslint/no-non-scalable-viewport'?: Linter.RuleEntry<[]>;
|
|
987
1039
|
/**
|
|
988
1040
|
* Disallow to use obsolete elements in HTML5
|
|
1041
|
+
* @see https://html-eslint.org/docs/rules/no-obsolete-tags
|
|
989
1042
|
*/
|
|
990
1043
|
'@html-eslint/no-obsolete-tags'?: Linter.RuleEntry<[]>;
|
|
991
1044
|
/**
|
|
992
1045
|
* Disallow use of positive `tabindex`.
|
|
1046
|
+
* @see https://html-eslint.org/docs/rules/no-positive-tabindex
|
|
993
1047
|
*/
|
|
994
1048
|
'@html-eslint/no-positive-tabindex'?: Linter.RuleEntry<[]>;
|
|
995
1049
|
/**
|
|
996
1050
|
* Disallow specified attributes
|
|
1051
|
+
* @see https://html-eslint.org/docs/rules/no-restricted-attr-values
|
|
997
1052
|
*/
|
|
998
1053
|
'@html-eslint/no-restricted-attr-values'?: Linter.RuleEntry<HtmlEslintNoRestrictedAttrValues>;
|
|
999
1054
|
/**
|
|
1000
1055
|
* Disallow specified attributes
|
|
1056
|
+
* @see https://html-eslint.org/docs/rules/no-restricted-attrs
|
|
1001
1057
|
*/
|
|
1002
1058
|
'@html-eslint/no-restricted-attrs'?: Linter.RuleEntry<HtmlEslintNoRestrictedAttrs>;
|
|
1003
1059
|
/**
|
|
1004
1060
|
* Enforce to omit type attributes for style sheets and scripts
|
|
1061
|
+
* @see https://html-eslint.org/docs/rules/no-script-style-type
|
|
1005
1062
|
*/
|
|
1006
1063
|
'@html-eslint/no-script-style-type'?: Linter.RuleEntry<[]>;
|
|
1007
1064
|
/**
|
|
1008
1065
|
* Disallow skipping heading levels
|
|
1066
|
+
* @see https://html-eslint.org/docs/rules/no-skip-heading-levels
|
|
1009
1067
|
*/
|
|
1010
1068
|
'@html-eslint/no-skip-heading-levels'?: Linter.RuleEntry<[]>;
|
|
1011
1069
|
/**
|
|
1012
1070
|
* Disallow usage of unsafe `target='_blank'`
|
|
1071
|
+
* @see https://html-eslint.org/docs/rules/no-target-blank
|
|
1013
1072
|
*/
|
|
1014
1073
|
'@html-eslint/no-target-blank'?: Linter.RuleEntry<[]>;
|
|
1015
1074
|
/**
|
|
1016
1075
|
* Disallow trailing whitespace at the end of lines
|
|
1076
|
+
* @see https://html-eslint.org/docs/rules/no-trailing-spaces
|
|
1017
1077
|
*/
|
|
1018
1078
|
'@html-eslint/no-trailing-spaces'?: Linter.RuleEntry<[]>;
|
|
1019
1079
|
/**
|
|
1020
1080
|
* Prefer to use HTTPS for embedded resources
|
|
1081
|
+
* @see https://html-eslint.org/docs/rules/prefer-https
|
|
1021
1082
|
*/
|
|
1022
1083
|
'@html-eslint/prefer-https'?: Linter.RuleEntry<[]>;
|
|
1023
1084
|
/**
|
|
1024
1085
|
* Enforce consistent quoting attributes with double(") or single(')
|
|
1086
|
+
* @see https://html-eslint.org/docs/rules/quotes
|
|
1025
1087
|
*/
|
|
1026
1088
|
'@html-eslint/quotes'?: Linter.RuleEntry<HtmlEslintQuotes>;
|
|
1027
1089
|
/**
|
|
1028
1090
|
* Require specified attributes
|
|
1091
|
+
* @see https://html-eslint.org/docs/rules/require-attrs
|
|
1029
1092
|
*/
|
|
1030
1093
|
'@html-eslint/require-attrs'?: Linter.RuleEntry<HtmlEslintRequireAttrs>;
|
|
1031
1094
|
/**
|
|
1032
1095
|
* Require use of button element with a valid type attribute.
|
|
1096
|
+
* @see https://html-eslint.org/docs/rules/require-button-type
|
|
1033
1097
|
*/
|
|
1034
1098
|
'@html-eslint/require-button-type'?: Linter.RuleEntry<[]>;
|
|
1035
1099
|
/**
|
|
1036
1100
|
* Require closing tags.
|
|
1101
|
+
* @see https://html-eslint.org/docs/rules/require-closing-tags
|
|
1037
1102
|
*/
|
|
1038
1103
|
'@html-eslint/require-closing-tags'?: Linter.RuleEntry<HtmlEslintRequireClosingTags>;
|
|
1039
1104
|
/**
|
|
1040
1105
|
* Require `<!DOCTYPE HTML>` in html,
|
|
1106
|
+
* @see https://html-eslint.org/docs/rules/require-doctype
|
|
1041
1107
|
*/
|
|
1042
1108
|
'@html-eslint/require-doctype'?: Linter.RuleEntry<[]>;
|
|
1043
1109
|
/**
|
|
1044
1110
|
* Enforces that some elements (img, iframe) have explicitly defined width and height attributes.
|
|
1111
|
+
* @see https://html-eslint.org/docs/rules/require-explicit-size
|
|
1045
1112
|
*/
|
|
1046
1113
|
'@html-eslint/require-explicit-size'?: Linter.RuleEntry<HtmlEslintRequireExplicitSize>;
|
|
1047
1114
|
/**
|
|
1048
1115
|
* Require `method` attribute in `<form>`
|
|
1116
|
+
* @see https://html-eslint.org/docs/rules/require-form-method
|
|
1049
1117
|
*/
|
|
1050
1118
|
'@html-eslint/require-form-method'?: Linter.RuleEntry<[]>;
|
|
1051
1119
|
/**
|
|
1052
1120
|
* Require `title` in `<frame>`, `<iframe>`
|
|
1121
|
+
* @see https://html-eslint.org/docs/rules/require-frame-title
|
|
1053
1122
|
*/
|
|
1054
1123
|
'@html-eslint/require-frame-title'?: Linter.RuleEntry<[]>;
|
|
1055
1124
|
/**
|
|
1056
1125
|
* Require `alt` attribute at `<img>` tag
|
|
1126
|
+
* @see https://html-eslint.org/docs/rules/require-img-alt
|
|
1057
1127
|
*/
|
|
1058
1128
|
'@html-eslint/require-img-alt'?: Linter.RuleEntry<HtmlEslintRequireImgAlt>;
|
|
1059
1129
|
/**
|
|
1060
1130
|
* Enforces use of label for form elements(`input`, `textarea`, `select`)
|
|
1131
|
+
* @see https://html-eslint.org/docs/rules/require-input-label
|
|
1061
1132
|
*/
|
|
1062
1133
|
'@html-eslint/require-input-label'?: Linter.RuleEntry<[]>;
|
|
1063
1134
|
/**
|
|
1064
1135
|
* Require `lang` attribute at `<html>` tag
|
|
1136
|
+
* @see https://html-eslint.org/docs/rules/require-lang
|
|
1065
1137
|
*/
|
|
1066
1138
|
'@html-eslint/require-lang'?: Linter.RuleEntry<[]>;
|
|
1067
1139
|
/**
|
|
1068
1140
|
* Enforce `<li>` to be in `<ul>`, `<ol>` or `<menu>`.
|
|
1141
|
+
* @see https://html-eslint.org/docs/rules/require-li-container
|
|
1069
1142
|
*/
|
|
1070
1143
|
'@html-eslint/require-li-container'?: Linter.RuleEntry<[]>;
|
|
1071
1144
|
/**
|
|
1072
1145
|
* Enforce to use `<meta charset="...">` in `<head>`
|
|
1146
|
+
* @see https://html-eslint.org/docs/rules/require-meta-charset
|
|
1073
1147
|
*/
|
|
1074
1148
|
'@html-eslint/require-meta-charset'?: Linter.RuleEntry<[]>;
|
|
1075
1149
|
/**
|
|
1076
1150
|
* Require use of `<meta name="description">` in `<head>`
|
|
1151
|
+
* @see https://html-eslint.org/docs/rules/require-meta-description
|
|
1077
1152
|
*/
|
|
1078
1153
|
'@html-eslint/require-meta-description'?: Linter.RuleEntry<[]>;
|
|
1079
1154
|
/**
|
|
1080
1155
|
* Enforce to use `<meta name="viewport">` in `<head>`
|
|
1156
|
+
* @see https://html-eslint.org/docs/rules/require-meta-viewport
|
|
1081
1157
|
*/
|
|
1082
1158
|
'@html-eslint/require-meta-viewport'?: Linter.RuleEntry<[]>;
|
|
1083
1159
|
/**
|
|
1084
|
-
* Enforce to use
|
|
1160
|
+
* Enforce to use specified meta tags for open graph protocol.
|
|
1161
|
+
* @see https://html-eslint.org/docs/rules/require-open-graph-protocol
|
|
1085
1162
|
*/
|
|
1086
1163
|
'@html-eslint/require-open-graph-protocol'?: Linter.RuleEntry<HtmlEslintRequireOpenGraphProtocol>;
|
|
1087
1164
|
/**
|
|
1088
1165
|
* Require `<title><title/>` in the `<head><head/>`
|
|
1166
|
+
* @see https://html-eslint.org/docs/rules/require-title
|
|
1089
1167
|
*/
|
|
1090
1168
|
'@html-eslint/require-title'?: Linter.RuleEntry<[]>;
|
|
1091
1169
|
/**
|
|
1092
1170
|
* Enforce attributes alphabetical sorting
|
|
1171
|
+
* @see https://html-eslint.org/docs/rules/sort-attrs
|
|
1093
1172
|
*/
|
|
1094
1173
|
'@html-eslint/sort-attrs'?: Linter.RuleEntry<HtmlEslintSortAttrs>;
|
|
1095
1174
|
/**
|
|
1096
1175
|
* Enforce the use of baseline features.
|
|
1176
|
+
* @see https://html-eslint.org/docs/rules/use-baseline
|
|
1097
1177
|
*/
|
|
1098
1178
|
'@html-eslint/use-baseline'?: Linter.RuleEntry<HtmlEslintUseBaseline>;
|
|
1099
1179
|
/**
|
|
@@ -2610,233 +2690,238 @@ interface RuleOptions {
|
|
|
2610
2690
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
2611
2691
|
/**
|
|
2612
2692
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2613
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2693
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
|
|
2614
2694
|
*/
|
|
2615
2695
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
2616
2696
|
/**
|
|
2617
2697
|
* Ensure a default export is present, given a default import.
|
|
2618
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2698
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
2619
2699
|
*/
|
|
2620
2700
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
2621
2701
|
/**
|
|
2622
2702
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2623
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2703
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
2624
2704
|
*/
|
|
2625
2705
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
2626
2706
|
/**
|
|
2627
2707
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2628
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2708
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
2629
2709
|
*/
|
|
2630
2710
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
2631
2711
|
/**
|
|
2632
2712
|
* Ensure all exports appear after other statements.
|
|
2633
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2713
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
2634
2714
|
*/
|
|
2635
2715
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
2636
2716
|
/**
|
|
2637
2717
|
* Ensure consistent use of file extension within the import path.
|
|
2638
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2718
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
2639
2719
|
*/
|
|
2640
2720
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
2641
2721
|
/**
|
|
2642
2722
|
* Ensure all imports appear before other statements.
|
|
2643
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2723
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
|
|
2644
2724
|
*/
|
|
2645
2725
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
2646
2726
|
/**
|
|
2647
2727
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2648
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2728
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
2649
2729
|
*/
|
|
2650
2730
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
2651
2731
|
/**
|
|
2652
2732
|
* Replaced by `import-x/first`.
|
|
2653
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2733
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
2654
2734
|
* @deprecated
|
|
2655
2735
|
*/
|
|
2656
2736
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
2657
2737
|
/**
|
|
2658
2738
|
* Enforce the maximum number of dependencies a module can have.
|
|
2659
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
2660
2740
|
*/
|
|
2661
2741
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
2662
2742
|
/**
|
|
2663
2743
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2664
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
2665
2745
|
*/
|
|
2666
2746
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
2667
2747
|
/**
|
|
2668
2748
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2669
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
2670
2750
|
*/
|
|
2671
2751
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
2672
2752
|
/**
|
|
2673
2753
|
* Enforce a newline after import statements.
|
|
2674
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2754
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
|
|
2675
2755
|
*/
|
|
2676
2756
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
2677
2757
|
/**
|
|
2678
2758
|
* Forbid import of modules using absolute paths.
|
|
2679
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
2680
2760
|
*/
|
|
2681
2761
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
2682
2762
|
/**
|
|
2683
2763
|
* Forbid AMD `require` and `define` calls.
|
|
2684
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
2685
2765
|
*/
|
|
2686
2766
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
2687
2767
|
/**
|
|
2688
2768
|
* Forbid anonymous values as default exports.
|
|
2689
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
2690
2770
|
*/
|
|
2691
2771
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
2692
2772
|
/**
|
|
2693
2773
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
2695
2775
|
*/
|
|
2696
2776
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
2697
2777
|
/**
|
|
2698
2778
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2699
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
2700
2780
|
*/
|
|
2701
2781
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
2702
2782
|
/**
|
|
2703
2783
|
* Forbid default exports.
|
|
2704
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
|
|
2705
2785
|
*/
|
|
2706
2786
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
2707
2787
|
/**
|
|
2708
2788
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2709
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
2710
2790
|
*/
|
|
2711
2791
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
2712
2792
|
/**
|
|
2713
2793
|
* Forbid repeated import of the same module in multiple places.
|
|
2714
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
|
|
2715
2795
|
*/
|
|
2716
2796
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
2717
2797
|
/**
|
|
2718
2798
|
* Forbid `require()` calls with expressions.
|
|
2719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
2720
2800
|
*/
|
|
2721
2801
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
2722
2802
|
/**
|
|
2723
2803
|
* Forbid empty named import blocks.
|
|
2724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
2725
2805
|
*/
|
|
2726
2806
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
2727
2807
|
/**
|
|
2728
2808
|
* Forbid the use of extraneous packages.
|
|
2729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
2730
2810
|
*/
|
|
2731
2811
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
2732
2812
|
/**
|
|
2733
2813
|
* Forbid import statements with CommonJS module.exports.
|
|
2734
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2814
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
2735
2815
|
*/
|
|
2736
2816
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
2737
2817
|
/**
|
|
2738
2818
|
* Forbid importing the submodules of other modules.
|
|
2739
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2819
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
2740
2820
|
*/
|
|
2741
2821
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
2742
2822
|
/**
|
|
2743
2823
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2744
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2824
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
|
|
2745
2825
|
*/
|
|
2746
2826
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
2747
2827
|
/**
|
|
2748
2828
|
* Forbid use of exported name as identifier of default export.
|
|
2749
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2829
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
2750
2830
|
*/
|
|
2751
2831
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
2752
2832
|
/**
|
|
2753
2833
|
* Forbid use of exported name as property of default export.
|
|
2754
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2834
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
2755
2835
|
*/
|
|
2756
2836
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
2757
2837
|
/**
|
|
2758
2838
|
* Forbid named default exports.
|
|
2759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2839
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
|
|
2760
2840
|
*/
|
|
2761
2841
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
2762
2842
|
/**
|
|
2763
2843
|
* Forbid named exports.
|
|
2764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2844
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
2765
2845
|
*/
|
|
2766
2846
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
2767
2847
|
/**
|
|
2768
2848
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2849
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
2770
2850
|
*/
|
|
2771
2851
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
2772
2852
|
/**
|
|
2773
2853
|
* Forbid Node.js builtin modules.
|
|
2774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2854
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
2775
2855
|
*/
|
|
2776
2856
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
2777
2857
|
/**
|
|
2778
2858
|
* Forbid importing packages through relative paths.
|
|
2779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2859
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
2780
2860
|
*/
|
|
2781
2861
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
2782
2862
|
/**
|
|
2783
2863
|
* Forbid importing modules from parent directories.
|
|
2784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2864
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
2785
2865
|
*/
|
|
2786
2866
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
2787
2867
|
/**
|
|
2788
2868
|
* Forbid importing a default export by a different name.
|
|
2789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
2790
2870
|
*/
|
|
2791
2871
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
2792
2872
|
/**
|
|
2793
2873
|
* Enforce which files can be imported in a given folder.
|
|
2794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
2795
2875
|
*/
|
|
2796
2876
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
2797
2877
|
/**
|
|
2798
2878
|
* Forbid a module from importing itself.
|
|
2799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
2800
2880
|
*/
|
|
2801
2881
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
2802
2882
|
/**
|
|
2803
2883
|
* Forbid unassigned imports.
|
|
2804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
2805
2885
|
*/
|
|
2806
2886
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
2807
2887
|
/**
|
|
2808
2888
|
* Ensure imports point to a file/module that can be resolved.
|
|
2809
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
2810
2890
|
*/
|
|
2811
2891
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
2812
2892
|
/**
|
|
2813
2893
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
2814
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
2815
2895
|
*/
|
|
2816
2896
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
2817
2897
|
/**
|
|
2818
2898
|
* Forbid unnecessary path segments in import and require statements.
|
|
2819
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
2820
2900
|
*/
|
|
2821
2901
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
2822
2902
|
/**
|
|
2823
2903
|
* Forbid webpack loader syntax in imports.
|
|
2824
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
2825
2905
|
*/
|
|
2826
2906
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
2827
2907
|
/**
|
|
2828
2908
|
* Enforce a convention in module import order.
|
|
2829
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
2830
2910
|
*/
|
|
2831
2911
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
2832
2912
|
/**
|
|
2833
2913
|
* Prefer a default export if module exports a single name or multiple names.
|
|
2834
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
2835
2915
|
*/
|
|
2836
2916
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
2917
|
+
/**
|
|
2918
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
2919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
2920
|
+
*/
|
|
2921
|
+
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>;
|
|
2837
2922
|
/**
|
|
2838
2923
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
2839
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
2924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
2840
2925
|
*/
|
|
2841
2926
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
2842
2927
|
/**
|
|
@@ -3443,7 +3528,7 @@ interface RuleOptions {
|
|
|
3443
3528
|
* Disallow empty definitions
|
|
3444
3529
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
3445
3530
|
*/
|
|
3446
|
-
'markdown/no-empty-definitions'?: Linter.RuleEntry<
|
|
3531
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
|
|
3447
3532
|
/**
|
|
3448
3533
|
* Disallow empty images
|
|
3449
3534
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
@@ -3489,6 +3574,11 @@ interface RuleOptions {
|
|
|
3489
3574
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
3490
3575
|
*/
|
|
3491
3576
|
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
|
|
3577
|
+
/**
|
|
3578
|
+
* Disallow unused definitions
|
|
3579
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
3580
|
+
*/
|
|
3581
|
+
'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
|
|
3492
3582
|
/**
|
|
3493
3583
|
* Require alternative text for images
|
|
3494
3584
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
@@ -3661,7 +3751,7 @@ interface RuleOptions {
|
|
|
3661
3751
|
*/
|
|
3662
3752
|
'no-console'?: Linter.RuleEntry<NoConsole>;
|
|
3663
3753
|
/**
|
|
3664
|
-
* Disallow reassigning `const` variables
|
|
3754
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
3665
3755
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
3666
3756
|
*/
|
|
3667
3757
|
'no-const-assign'?: Linter.RuleEntry<[]>;
|
|
@@ -4820,27 +4910,27 @@ interface RuleOptions {
|
|
|
4820
4910
|
'pinia/require-setup-store-properties-export'?: Linter.RuleEntry<[]>;
|
|
4821
4911
|
/**
|
|
4822
4912
|
* Enforce using "catalog:" in `package.json`
|
|
4823
|
-
* @see https://github.com/antfu/eslint-plugin-pnpm/
|
|
4913
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
|
|
4824
4914
|
*/
|
|
4825
4915
|
'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
|
|
4826
4916
|
/**
|
|
4827
4917
|
* Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This would requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
|
|
4828
|
-
* @see https://github.com/antfu/eslint-plugin-pnpm/
|
|
4918
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
|
|
4829
4919
|
*/
|
|
4830
4920
|
'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
|
|
4831
4921
|
/**
|
|
4832
4922
|
* Enforce using valid catalog in `package.json`
|
|
4833
|
-
* @see https://github.com/antfu/eslint-plugin-pnpm/
|
|
4923
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
4834
4924
|
*/
|
|
4835
4925
|
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
4836
4926
|
/**
|
|
4837
4927
|
* Disallow unused catalogs in `pnpm-workspace.yaml`
|
|
4838
|
-
* @see https://github.com/antfu/eslint-plugin-pnpm/
|
|
4928
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
4839
4929
|
*/
|
|
4840
4930
|
'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
|
|
4841
4931
|
/**
|
|
4842
4932
|
* Disallow unused catalogs in `pnpm-workspace.yaml`
|
|
4843
|
-
* @see https://github.com/antfu/eslint-plugin-pnpm/
|
|
4933
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
|
|
4844
4934
|
*/
|
|
4845
4935
|
'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
|
|
4846
4936
|
/**
|
|
@@ -5748,6 +5838,11 @@ interface RuleOptions {
|
|
|
5748
5838
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-style-directive/
|
|
5749
5839
|
*/
|
|
5750
5840
|
'svelte/prefer-style-directive'?: Linter.RuleEntry<[]>;
|
|
5841
|
+
/**
|
|
5842
|
+
* disallow using mutable instances of built-in classes where a reactive alternative is provided by svelte/reactivity
|
|
5843
|
+
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-svelte-reactivity/
|
|
5844
|
+
*/
|
|
5845
|
+
'svelte/prefer-svelte-reactivity'?: Linter.RuleEntry<[]>;
|
|
5751
5846
|
/**
|
|
5752
5847
|
* Prefer using writable $derived instead of $state and $effect
|
|
5753
5848
|
* @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-writable-derived/
|
|
@@ -6866,6 +6961,16 @@ interface RuleOptions {
|
|
|
6866
6961
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
6867
6962
|
*/
|
|
6868
6963
|
'vitest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
6964
|
+
/**
|
|
6965
|
+
* enforce using `toBeCalledOnce()` or `toHaveBeenCalledOnce()`
|
|
6966
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
|
|
6967
|
+
*/
|
|
6968
|
+
'vitest/prefer-called-once'?: Linter.RuleEntry<[]>;
|
|
6969
|
+
/**
|
|
6970
|
+
* enforce using `toBeCalledTimes(1)` or `toHaveBeenCalledTimes(1)`
|
|
6971
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
|
|
6972
|
+
*/
|
|
6973
|
+
'vitest/prefer-called-times'?: Linter.RuleEntry<[]>;
|
|
6869
6974
|
/**
|
|
6870
6975
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
6871
6976
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
@@ -7031,6 +7136,11 @@ interface RuleOptions {
|
|
|
7031
7136
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
7032
7137
|
*/
|
|
7033
7138
|
'vitest/valid-title'?: Linter.RuleEntry<VitestValidTitle>;
|
|
7139
|
+
/**
|
|
7140
|
+
* disallow `.todo` usage
|
|
7141
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/warn-todo.md
|
|
7142
|
+
*/
|
|
7143
|
+
'vitest/warn-todo'?: Linter.RuleEntry<[]>;
|
|
7034
7144
|
/**
|
|
7035
7145
|
* Enforce linebreaks after opening and before closing array brackets in `<template>`
|
|
7036
7146
|
* @see https://eslint.vuejs.org/rules/array-bracket-newline.html
|
|
@@ -7637,7 +7747,7 @@ interface RuleOptions {
|
|
|
7637
7747
|
*/
|
|
7638
7748
|
'vue/no-restricted-custom-event'?: Linter.RuleEntry<VueNoRestrictedCustomEvent>;
|
|
7639
7749
|
/**
|
|
7640
|
-
* disallow specific
|
|
7750
|
+
* disallow specific elements
|
|
7641
7751
|
* @see https://eslint.vuejs.org/rules/no-restricted-html-elements.html
|
|
7642
7752
|
*/
|
|
7643
7753
|
'vue/no-restricted-html-elements'?: Linter.RuleEntry<VueNoRestrictedHtmlElements>;
|
|
@@ -8992,6 +9102,7 @@ interface _TypescriptEslintNamingConvention_MatchRegexConfig {
|
|
|
8992
9102
|
}
|
|
8993
9103
|
// ----- @typescript-eslint/no-base-to-string -----
|
|
8994
9104
|
type TypescriptEslintNoBaseToString = [] | [{
|
|
9105
|
+
checkUnknown?: boolean;
|
|
8995
9106
|
ignoredTypeNames?: string[];
|
|
8996
9107
|
}];
|
|
8997
9108
|
// ----- @typescript-eslint/no-confusing-void-expression -----
|
|
@@ -10090,6 +10201,10 @@ type ImportXOrder = [] | [{
|
|
|
10090
10201
|
type ImportXPreferDefaultExport = [] | [{
|
|
10091
10202
|
target?: ("single" | "any");
|
|
10092
10203
|
}];
|
|
10204
|
+
// ----- import-x/prefer-namespace-import -----
|
|
10205
|
+
type ImportXPreferNamespaceImport = [] | [{
|
|
10206
|
+
patterns?: string[];
|
|
10207
|
+
}];
|
|
10093
10208
|
// ----- indent -----
|
|
10094
10209
|
type Indent = [] | [("tab" | number)] | [("tab" | number), {
|
|
10095
10210
|
SwitchCase?: number;
|
|
@@ -10306,8 +10421,8 @@ type JsdocMatchName = [] | [{
|
|
|
10306
10421
|
context?: string;
|
|
10307
10422
|
disallowName?: string;
|
|
10308
10423
|
message?: string;
|
|
10424
|
+
replacement?: string;
|
|
10309
10425
|
tags?: string[];
|
|
10310
|
-
[k: string]: unknown | undefined;
|
|
10311
10426
|
}[];
|
|
10312
10427
|
}];
|
|
10313
10428
|
// ----- jsdoc/multiline-blocks -----
|
|
@@ -10319,6 +10434,7 @@ type JsdocMultilineBlocks = [] | [{
|
|
|
10319
10434
|
noMultilineBlocks?: boolean;
|
|
10320
10435
|
noSingleLineBlocks?: boolean;
|
|
10321
10436
|
noZeroLineText?: boolean;
|
|
10437
|
+
requireSingleLineUnderCount?: number;
|
|
10322
10438
|
singleLineTags?: string[];
|
|
10323
10439
|
}];
|
|
10324
10440
|
// ----- jsdoc/no-bad-blocks -----
|
|
@@ -10380,7 +10496,6 @@ type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [("alway
|
|
|
10380
10496
|
always?: string[];
|
|
10381
10497
|
any?: string[];
|
|
10382
10498
|
never?: string[];
|
|
10383
|
-
[k: string]: unknown | undefined;
|
|
10384
10499
|
};
|
|
10385
10500
|
}];
|
|
10386
10501
|
// ----- jsdoc/require-description -----
|
|
@@ -10590,7 +10705,6 @@ type JsdocSortTags = [] | [{
|
|
|
10590
10705
|
reportTagGroupSpacing?: boolean;
|
|
10591
10706
|
tagSequence?: {
|
|
10592
10707
|
tags?: string[];
|
|
10593
|
-
[k: string]: unknown | undefined;
|
|
10594
10708
|
}[];
|
|
10595
10709
|
}];
|
|
10596
10710
|
// ----- jsdoc/tag-lines -----
|
|
@@ -11280,6 +11394,12 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
11280
11394
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
11281
11395
|
checkSiblingsOnly?: boolean;
|
|
11282
11396
|
}];
|
|
11397
|
+
// ----- markdown/no-empty-definitions -----
|
|
11398
|
+
type MarkdownNoEmptyDefinitions = [] | [{
|
|
11399
|
+
allowDefinitions?: string[];
|
|
11400
|
+
allowFootnoteDefinitions?: string[];
|
|
11401
|
+
checkFootnoteDefinitions?: boolean;
|
|
11402
|
+
}];
|
|
11283
11403
|
// ----- markdown/no-html -----
|
|
11284
11404
|
type MarkdownNoHtml = [] | [{
|
|
11285
11405
|
allowed?: string[];
|
|
@@ -11293,6 +11413,11 @@ type MarkdownNoMissingLinkFragments = [] | [{
|
|
|
11293
11413
|
type MarkdownNoMultipleH1 = [] | [{
|
|
11294
11414
|
frontmatterTitle?: string;
|
|
11295
11415
|
}];
|
|
11416
|
+
// ----- markdown/no-unused-definitions -----
|
|
11417
|
+
type MarkdownNoUnusedDefinitions = [] | [{
|
|
11418
|
+
allowDefinitions?: string[];
|
|
11419
|
+
allowFootnoteDefinitions?: string[];
|
|
11420
|
+
}];
|
|
11296
11421
|
// ----- max-classes-per-file -----
|
|
11297
11422
|
type MaxClassesPerFile = [] | [(number | {
|
|
11298
11423
|
ignoreExpressions?: boolean;
|
|
@@ -11456,6 +11581,7 @@ type NoConstantCondition = [] | [{
|
|
|
11456
11581
|
// ----- no-duplicate-imports -----
|
|
11457
11582
|
type NoDuplicateImports = [] | [{
|
|
11458
11583
|
includeExports?: boolean;
|
|
11584
|
+
allowSeparateTypeImports?: boolean;
|
|
11459
11585
|
}];
|
|
11460
11586
|
// ----- no-else-return -----
|
|
11461
11587
|
type NoElseReturn = [] | [{
|
|
@@ -14433,7 +14559,7 @@ type SvgoSvgo = [] | [{
|
|
|
14433
14559
|
textStart?: string;
|
|
14434
14560
|
useShortTags?: boolean;
|
|
14435
14561
|
};
|
|
14436
|
-
plugins?: (("preset-default" | "cleanupAttrs" | "cleanupEnableBackground" | "cleanupIds" | "cleanupNumericValues" | "collapseGroups" | "convertColors" | "convertEllipseToCircle" | "convertPathData" | "convertShapeToPath" | "convertTransform" | "inlineStyles" | "mergePaths" | "mergeStyles" | "minifyStyles" | "moveElemsAttrsToGroup" | "moveGroupAttrsToElems" | "removeComments" | "removeDesc" | "removeDoctype" | "removeEditorsNSData" | "removeEmptyAttrs" | "removeEmptyContainers" | "removeEmptyText" | "removeHiddenElems" | "removeMetadata" | "removeNonInheritableGroupAttrs" | "
|
|
14562
|
+
plugins?: (("preset-default" | "cleanupAttrs" | "cleanupEnableBackground" | "cleanupIds" | "cleanupNumericValues" | "collapseGroups" | "convertColors" | "convertEllipseToCircle" | "convertPathData" | "convertShapeToPath" | "convertTransform" | "inlineStyles" | "mergePaths" | "mergeStyles" | "minifyStyles" | "moveElemsAttrsToGroup" | "moveGroupAttrsToElems" | "removeComments" | "removeDesc" | "removeDoctype" | "removeEditorsNSData" | "removeEmptyAttrs" | "removeEmptyContainers" | "removeEmptyText" | "removeHiddenElems" | "removeMetadata" | "removeNonInheritableGroupAttrs" | "removeUnknownsAndDefaults" | "removeUnusedNS" | "removeUselessDefs" | "removeUselessStrokeAndFill" | "removeXMLProcInst" | "sortAttrs" | "sortDefsChildren" | "cleanupListOfValues" | "convertOneStopGradients" | "convertStyleToAttrs" | "prefixIds" | "removeDeprecatedAttrs" | "removeDimensions" | "removeOffCanvasPaths" | "removeRasterImages" | "removeScripts" | "removeStyleElement" | "removeTitle" | "removeViewBox" | "removeXlink" | "removeXMLNS" | "reusePaths" | "addAttributesToSVGElement" | "addClassesToSVGElement" | "removeAttributesBySelector" | "removeAttrs" | "removeElementsByAttr") | {
|
|
14437
14563
|
name: "addAttributesToSVGElement";
|
|
14438
14564
|
params?: {
|
|
14439
14565
|
attribute?: (string | {
|
package/dist/index.js
CHANGED
|
@@ -115,6 +115,7 @@ const GLOB_EXCLUDE = [
|
|
|
115
115
|
GLOB_NODE_MODULES,
|
|
116
116
|
GLOB_DIST,
|
|
117
117
|
...GLOB_LOCKFILE,
|
|
118
|
+
"**/.pnpm-store/**",
|
|
118
119
|
"!.github",
|
|
119
120
|
"!.vitepress",
|
|
120
121
|
"!.vuepress",
|
|
@@ -941,6 +942,11 @@ const configSort = (options = {}) => {
|
|
|
941
942
|
order: { type: "asc" },
|
|
942
943
|
pathPattern: "^contributes.*$"
|
|
943
944
|
},
|
|
945
|
+
(
|
|
946
|
+
/**
|
|
947
|
+
* pnpm publish config
|
|
948
|
+
* @see {@link https://pnpm.io/package_json#publishconfig}
|
|
949
|
+
*/
|
|
944
950
|
{
|
|
945
951
|
pathPattern: "^publishConfig.*$",
|
|
946
952
|
order: [
|
|
@@ -951,7 +957,7 @@ const configSort = (options = {}) => {
|
|
|
951
957
|
"default",
|
|
952
958
|
{ order: { type: "asc" } }
|
|
953
959
|
]
|
|
954
|
-
},
|
|
960
|
+
}),
|
|
955
961
|
{
|
|
956
962
|
order: { type: "asc" },
|
|
957
963
|
pathPattern: "^scripts$"
|
|
@@ -1114,7 +1120,16 @@ const configSVGO = (options = {}) => {
|
|
|
1114
1120
|
ignores,
|
|
1115
1121
|
plugins: { svgo: pluginSvgo },
|
|
1116
1122
|
languageOptions: { parser: parserPlain },
|
|
1117
|
-
rules: {
|
|
1123
|
+
rules: {
|
|
1124
|
+
"svgo/svgo": ["error", {
|
|
1125
|
+
plugins: ["preset-default"],
|
|
1126
|
+
js2svg: {
|
|
1127
|
+
indent: 2,
|
|
1128
|
+
pretty: true
|
|
1129
|
+
}
|
|
1130
|
+
}],
|
|
1131
|
+
...options.overrides
|
|
1132
|
+
}
|
|
1118
1133
|
}];
|
|
1119
1134
|
};
|
|
1120
1135
|
|
|
@@ -1911,9 +1926,7 @@ const regexper = defineCommand({
|
|
|
1911
1926
|
name: "regexper",
|
|
1912
1927
|
match: /(\b|\s|^)(@regexper)(\s\S+)?(\b|\s|$)/,
|
|
1913
1928
|
action(ctx) {
|
|
1914
|
-
const literal = ctx.findNodeBelow((node) =>
|
|
1915
|
-
return node.type === "Literal" && "regex" in node;
|
|
1916
|
-
});
|
|
1929
|
+
const literal = ctx.findNodeBelow((node) => node.type === "Literal" && "regex" in node);
|
|
1917
1930
|
if (!literal) return ctx.reportError("Unable to find a regexp literal to generate");
|
|
1918
1931
|
const [_fullStr = "", spaceBefore = "", commandStr = "", existingUrl = "", _spaceAfter = ""] = ctx.matches;
|
|
1919
1932
|
const url = `https://regexper.com/#${encodeURIComponent(literal.raw)}`;
|
|
@@ -2152,12 +2165,16 @@ const configMarkdown = (options = {}) => {
|
|
|
2152
2165
|
...config,
|
|
2153
2166
|
name: `ntnyq/${config.name}`
|
|
2154
2167
|
})),
|
|
2168
|
+
(
|
|
2169
|
+
/**
|
|
2170
|
+
* enhance `markdown/recommended/processor`
|
|
2171
|
+
*/
|
|
2155
2172
|
{
|
|
2156
2173
|
name: "ntnyq/markdown/processor",
|
|
2157
2174
|
files,
|
|
2158
2175
|
ignores: [GLOB_MARKDOWN_NESTED],
|
|
2159
2176
|
processor: mergeProcessors([pluginMarkdown.processors.markdown, processorPassThrough])
|
|
2160
|
-
},
|
|
2177
|
+
}),
|
|
2161
2178
|
{
|
|
2162
2179
|
name: "ntnyq/markdown/parser",
|
|
2163
2180
|
files,
|
|
@@ -2262,12 +2279,16 @@ const configPrettier = (options = {}) => {
|
|
|
2262
2279
|
"prettier/prettier": options.severity || "warn",
|
|
2263
2280
|
...options.overrides
|
|
2264
2281
|
}
|
|
2265
|
-
},
|
|
2282
|
+
}, (
|
|
2283
|
+
/**
|
|
2284
|
+
* Languages that prettier currently does not support
|
|
2285
|
+
*/
|
|
2286
|
+
{
|
|
2266
2287
|
name: "ntnyq/prettier/disabled",
|
|
2267
2288
|
files: [...disabledFiles, ...userDisabledFiles],
|
|
2268
2289
|
plugins: { prettier: pluginPrettier },
|
|
2269
2290
|
rules: { "prettier/prettier": "off" }
|
|
2270
|
-
}];
|
|
2291
|
+
})];
|
|
2271
2292
|
};
|
|
2272
2293
|
|
|
2273
2294
|
//#endregion
|
|
@@ -2841,7 +2862,7 @@ const configGitHubAction = (options = {}) => {
|
|
|
2841
2862
|
* @returns ESLint configs
|
|
2842
2863
|
*/
|
|
2843
2864
|
const configPerfectionist = (options = {}) => {
|
|
2844
|
-
const { partitionByComment = PERFECTIONIST.partialRuleOptions.partitionByComment, sortConstants: enableSortConstants = true, sortEnums: enableSortEnums = true, sortTypes: enableSortTypes = true } = options;
|
|
2865
|
+
const { filesEnums = [`**/enums/${GLOB_SRC}`, `**/enums.${GLOB_SRC_EXT}`], filesTypes = [...GLOB_TYPES], partitionByComment = PERFECTIONIST.partialRuleOptions.partitionByComment, sortConstants: enableSortConstants = true, sortEnums: enableSortEnums = true, sortTypes: enableSortTypes = true, filesConstants = [`**/constants/${GLOB_SRC}`, `**/constants.${GLOB_SRC_EXT}`] } = options;
|
|
2845
2866
|
const sharedOptionsWithNewlinesBetween = {
|
|
2846
2867
|
newlinesBetween: "ignore",
|
|
2847
2868
|
partitionByComment
|
|
@@ -2938,7 +2959,7 @@ const configPerfectionist = (options = {}) => {
|
|
|
2938
2959
|
if (options.all) return configs;
|
|
2939
2960
|
if (enableSortEnums) configs.push({
|
|
2940
2961
|
name: "ntnyq/perfectionist/enums",
|
|
2941
|
-
files:
|
|
2962
|
+
files: filesEnums,
|
|
2942
2963
|
plugins: { perfectionist: pluginPerfectionist },
|
|
2943
2964
|
settings: { perfectionist: PERFECTIONIST.pluginSettings },
|
|
2944
2965
|
rules: {
|
|
@@ -2949,7 +2970,7 @@ const configPerfectionist = (options = {}) => {
|
|
|
2949
2970
|
});
|
|
2950
2971
|
if (enableSortTypes) configs.push({
|
|
2951
2972
|
name: "ntnyq/perfectionist/types",
|
|
2952
|
-
files:
|
|
2973
|
+
files: filesTypes,
|
|
2953
2974
|
plugins: { perfectionist: pluginPerfectionist },
|
|
2954
2975
|
settings: { perfectionist: PERFECTIONIST.pluginSettings },
|
|
2955
2976
|
rules: {
|
|
@@ -2960,7 +2981,7 @@ const configPerfectionist = (options = {}) => {
|
|
|
2960
2981
|
});
|
|
2961
2982
|
if (enableSortConstants) configs.push({
|
|
2962
2983
|
name: "ntnyq/perfectionist/constants",
|
|
2963
|
-
files:
|
|
2984
|
+
files: filesConstants,
|
|
2964
2985
|
plugins: { perfectionist: pluginPerfectionist },
|
|
2965
2986
|
settings: { perfectionist: PERFECTIONIST.pluginSettings },
|
|
2966
2987
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.1.0",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
],
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public",
|
|
36
|
-
"tag": "
|
|
36
|
+
"tag": "latest"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
40
|
-
"@html-eslint/parser": "^0.
|
|
39
|
+
"@html-eslint/eslint-plugin": "^0.42.0",
|
|
40
|
+
"@html-eslint/parser": "^0.42.0",
|
|
41
41
|
"astro-eslint-parser": "^1.2.2",
|
|
42
42
|
"eslint": "^9.20.0",
|
|
43
43
|
"eslint-plugin-astro": "^1.3.1",
|
|
44
|
-
"eslint-plugin-eslint-plugin": "^6.
|
|
44
|
+
"eslint-plugin-eslint-plugin": "^6.5.0",
|
|
45
45
|
"eslint-plugin-format": "^1.0.1",
|
|
46
|
-
"eslint-plugin-pnpm": "^0.
|
|
47
|
-
"eslint-plugin-svelte": "^3.
|
|
46
|
+
"eslint-plugin-pnpm": "^1.0.0",
|
|
47
|
+
"eslint-plugin-svelte": "^3.10.1",
|
|
48
48
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
49
49
|
"svelte": "^5.31.1",
|
|
50
50
|
"svelte-eslint-parser": "^1.2.0"
|
|
@@ -88,59 +88,60 @@
|
|
|
88
88
|
"@antfu/install-pkg": "^1.1.0",
|
|
89
89
|
"@clack/prompts": "^0.11.0",
|
|
90
90
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
91
|
-
"@eslint/js": "^9.
|
|
92
|
-
"@eslint/markdown": "^
|
|
93
|
-
"@unocss/eslint-plugin": "^66.
|
|
94
|
-
"@vitest/eslint-plugin": "^1.
|
|
91
|
+
"@eslint/js": "^9.31.0",
|
|
92
|
+
"@eslint/markdown": "^7.0.0",
|
|
93
|
+
"@unocss/eslint-plugin": "^66.3.3",
|
|
94
|
+
"@vitest/eslint-plugin": "^1.3.4",
|
|
95
95
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
96
96
|
"eslint-flat-config-utils": "^2.1.0",
|
|
97
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
97
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
98
98
|
"eslint-merge-processors": "^2.0.0",
|
|
99
99
|
"eslint-parser-plain": "^0.1.1",
|
|
100
100
|
"eslint-plugin-antfu": "^3.1.1",
|
|
101
|
-
"eslint-plugin-command": "^3.3.
|
|
101
|
+
"eslint-plugin-command": "^3.3.1",
|
|
102
102
|
"eslint-plugin-de-morgan": "^1.3.0",
|
|
103
103
|
"eslint-plugin-depend": "^1.2.0",
|
|
104
104
|
"eslint-plugin-github-action": "^0.0.16",
|
|
105
|
-
"eslint-plugin-import-x": "^4.
|
|
106
|
-
"eslint-plugin-jsdoc": "^51.1
|
|
105
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
106
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
107
107
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
108
|
-
"eslint-plugin-n": "^17.
|
|
108
|
+
"eslint-plugin-n": "^17.21.0",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
110
110
|
"eslint-plugin-ntnyq": "^0.11.0",
|
|
111
111
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
112
112
|
"eslint-plugin-pinia": "^0.4.1",
|
|
113
|
-
"eslint-plugin-prettier": "^5.5.
|
|
113
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
114
114
|
"eslint-plugin-regexp": "^2.9.0",
|
|
115
|
-
"eslint-plugin-svgo": "^0.
|
|
115
|
+
"eslint-plugin-svgo": "^0.10.0",
|
|
116
116
|
"eslint-plugin-toml": "^0.12.0",
|
|
117
117
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
118
|
-
"eslint-plugin-vue": "^10.
|
|
118
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
119
119
|
"eslint-plugin-yml": "^1.18.0",
|
|
120
120
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
121
|
-
"globals": "^16.
|
|
121
|
+
"globals": "^16.3.0",
|
|
122
122
|
"jsonc-eslint-parser": "^2.4.0",
|
|
123
123
|
"local-pkg": "^1.1.1",
|
|
124
|
-
"prettier": "^3.
|
|
124
|
+
"prettier": "^3.6.2",
|
|
125
125
|
"toml-eslint-parser": "^0.10.0",
|
|
126
|
-
"typescript-eslint": "^8.
|
|
127
|
-
"vue-eslint-parser": "^10.
|
|
126
|
+
"typescript-eslint": "^8.37.0",
|
|
127
|
+
"vue-eslint-parser": "^10.2.0",
|
|
128
128
|
"yaml-eslint-parser": "^1.3.0"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@ntnyq/prettier-config": "^3.0.1",
|
|
132
|
-
"@types/node": "^24.0.
|
|
132
|
+
"@types/node": "^24.0.15",
|
|
133
|
+
"@typescript-eslint/utils": "^8.37.0",
|
|
133
134
|
"bumpp": "^10.2.0",
|
|
134
135
|
"consola": "^3.4.2",
|
|
135
|
-
"eslint": "^9.
|
|
136
|
+
"eslint": "^9.31.0",
|
|
136
137
|
"eslint-plugin-eslint-plugin": "^6.5.0",
|
|
137
|
-
"eslint-typegen": "^2.2.
|
|
138
|
+
"eslint-typegen": "^2.2.1",
|
|
138
139
|
"husky": "^9.1.7",
|
|
139
140
|
"jiti": "^2.4.2",
|
|
140
141
|
"nano-staged": "^0.8.0",
|
|
141
142
|
"npm-run-all2": "^8.0.4",
|
|
142
143
|
"tinyglobby": "^0.2.14",
|
|
143
|
-
"tsdown": "^0.12.
|
|
144
|
+
"tsdown": "^0.12.9",
|
|
144
145
|
"typescript": "^5.8.3",
|
|
145
146
|
"uncase": "^0.1.0",
|
|
146
147
|
"vitest": "^3.2.4"
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
"lint": "eslint --cache",
|
|
163
164
|
"release": "run-s release:check release:version release:publish",
|
|
164
165
|
"release:check": "run-s build lint test typecheck",
|
|
165
|
-
"release:publish": "pnpm publish
|
|
166
|
+
"release:publish": "pnpm publish",
|
|
166
167
|
"release:version": "bumpp",
|
|
167
168
|
"test": "vitest",
|
|
168
169
|
"typecheck": "tsc --noEmit"
|