@sxzz/eslint-config 7.8.2 → 7.8.4

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.d.mts CHANGED
@@ -53,6 +53,7 @@ interface Rules {
53
53
  /**
54
54
  * disallow unused `eslint-disable` comments
55
55
  * @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
56
+ * @deprecated
56
57
  */
57
58
  "@eslint-community/eslint-comments/no-unused-disable"?: Linter.RuleEntry<[]>;
58
59
  /**
@@ -2089,6 +2090,11 @@ interface Rules {
2089
2090
  */
2090
2091
  "markdown/fenced-code-language"?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
2091
2092
  /**
2093
+ * Require or disallow metadata for fenced code blocks
2094
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
2095
+ */
2096
+ "markdown/fenced-code-meta"?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
2097
+ /**
2092
2098
  * Enforce heading levels increment by one
2093
2099
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
2094
2100
  */
@@ -7105,6 +7111,18 @@ type TypescriptEslintPreferOptionalChain = [] | [{
7105
7111
  requireNullish?: boolean;
7106
7112
  }];
7107
7113
  type TypescriptEslintPreferPromiseRejectErrors = [] | [{
7114
+ allow?: (string | {
7115
+ from: "file";
7116
+ name: (string | [string, ...(string)[]]);
7117
+ path?: string;
7118
+ } | {
7119
+ from: "lib";
7120
+ name: (string | [string, ...(string)[]]);
7121
+ } | {
7122
+ from: "package";
7123
+ name: (string | [string, ...(string)[]]);
7124
+ package: string;
7125
+ })[];
7108
7126
  allowEmptyReject?: boolean;
7109
7127
  allowThrowingAny?: boolean;
7110
7128
  allowThrowingUnknown?: boolean;
@@ -8665,12 +8683,14 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
8665
8683
  type MarkdownFencedCodeLanguage = [] | [{
8666
8684
  required?: string[];
8667
8685
  }];
8686
+ type MarkdownFencedCodeMeta = [] | [("always" | "never")];
8668
8687
  type MarkdownHeadingIncrement = [] | [{
8669
8688
  frontmatterTitle?: string;
8670
8689
  }];
8671
8690
  type MarkdownNoDuplicateDefinitions = [] | [{
8672
8691
  allowDefinitions?: string[];
8673
8692
  allowFootnoteDefinitions?: string[];
8693
+ checkFootnoteDefinitions?: boolean;
8674
8694
  }];
8675
8695
  type MarkdownNoDuplicateHeadings = [] | [{
8676
8696
  checkSiblingsOnly?: boolean;
@@ -8703,6 +8723,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
8703
8723
  type MarkdownNoUnusedDefinitions = [] | [{
8704
8724
  allowDefinitions?: string[];
8705
8725
  allowFootnoteDefinitions?: string[];
8726
+ checkFootnoteDefinitions?: boolean;
8706
8727
  }];
8707
8728
  type MarkdownTableColumnCount = [] | [{
8708
8729
  checkMissingCells?: boolean;
@@ -9555,6 +9576,7 @@ type PerfectionistSortArrayIncludes = {
9555
9576
  pattern: string;
9556
9577
  flags?: string;
9557
9578
  } | string));
9579
+ matchesAstSelector?: string;
9558
9580
  };
9559
9581
  partitionByComment?: (boolean | (({
9560
9582
  pattern: string;
@@ -9580,7 +9602,7 @@ type PerfectionistSortArrayIncludes = {
9580
9602
  });
9581
9603
  partitionByNewLine?: boolean;
9582
9604
  }[];
9583
- type PerfectionistSortClasses = [] | [{
9605
+ type PerfectionistSortClasses = {
9584
9606
  fallbackSort?: {
9585
9607
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9586
9608
  order?: ("asc" | "desc");
@@ -9697,6 +9719,16 @@ type PerfectionistSortClasses = [] | [{
9697
9719
  order?: ("asc" | "desc");
9698
9720
  })[];
9699
9721
  newlinesBetween?: ("ignore" | number);
9722
+ useConfigurationIf?: {
9723
+ allNamesMatchPattern?: (({
9724
+ pattern: string;
9725
+ flags?: string;
9726
+ } | string)[] | ({
9727
+ pattern: string;
9728
+ flags?: string;
9729
+ } | string));
9730
+ matchesAstSelector?: string;
9731
+ };
9700
9732
  useExperimentalDependencyDetection?: boolean;
9701
9733
  ignoreCallbackDependenciesPatterns?: (({
9702
9734
  pattern: string;
@@ -9728,7 +9760,7 @@ type PerfectionistSortClasses = [] | [{
9728
9760
  } | string)));
9729
9761
  });
9730
9762
  partitionByNewLine?: boolean;
9731
- }];
9763
+ }[];
9732
9764
  type PerfectionistSortDecorators = {
9733
9765
  fallbackSort?: {
9734
9766
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -9827,7 +9859,7 @@ type PerfectionistSortDecorators = {
9827
9859
  });
9828
9860
  partitionByNewLine?: boolean;
9829
9861
  }[];
9830
- type PerfectionistSortEnums = [] | [{
9862
+ type PerfectionistSortEnums = {
9831
9863
  fallbackSort?: {
9832
9864
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
9833
9865
  order?: ("asc" | "desc");
@@ -9917,6 +9949,16 @@ type PerfectionistSortEnums = [] | [{
9917
9949
  order?: ("asc" | "desc");
9918
9950
  })[];
9919
9951
  newlinesBetween?: ("ignore" | number);
9952
+ useConfigurationIf?: {
9953
+ allNamesMatchPattern?: (({
9954
+ pattern: string;
9955
+ flags?: string;
9956
+ } | string)[] | ({
9957
+ pattern: string;
9958
+ flags?: string;
9959
+ } | string));
9960
+ matchesAstSelector?: string;
9961
+ };
9920
9962
  sortByValue?: ("always" | "ifNumericEnum" | "never");
9921
9963
  useExperimentalDependencyDetection?: boolean;
9922
9964
  partitionByComment?: (boolean | (({
@@ -9942,7 +9984,7 @@ type PerfectionistSortEnums = [] | [{
9942
9984
  } | string)));
9943
9985
  });
9944
9986
  partitionByNewLine?: boolean;
9945
- }];
9987
+ }[];
9946
9988
  type PerfectionistSortExportAttributes = {
9947
9989
  fallbackSort?: {
9948
9990
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
@@ -10012,6 +10054,16 @@ type PerfectionistSortExportAttributes = {
10012
10054
  order?: ("asc" | "desc");
10013
10055
  })[];
10014
10056
  newlinesBetween?: ("ignore" | number);
10057
+ useConfigurationIf?: {
10058
+ allNamesMatchPattern?: (({
10059
+ pattern: string;
10060
+ flags?: string;
10061
+ } | string)[] | ({
10062
+ pattern: string;
10063
+ flags?: string;
10064
+ } | string));
10065
+ matchesAstSelector?: string;
10066
+ };
10015
10067
  partitionByComment?: (boolean | (({
10016
10068
  pattern: string;
10017
10069
  flags?: string;
@@ -10204,6 +10256,16 @@ type PerfectionistSortHeritageClauses = {
10204
10256
  order?: ("asc" | "desc");
10205
10257
  })[];
10206
10258
  newlinesBetween?: ("ignore" | number);
10259
+ useConfigurationIf?: {
10260
+ allNamesMatchPattern?: (({
10261
+ pattern: string;
10262
+ flags?: string;
10263
+ } | string)[] | ({
10264
+ pattern: string;
10265
+ flags?: string;
10266
+ } | string));
10267
+ matchesAstSelector?: string;
10268
+ };
10207
10269
  partitionByNewLine?: boolean;
10208
10270
  partitionByComment?: (boolean | (({
10209
10271
  pattern: string;
@@ -10297,6 +10359,16 @@ type PerfectionistSortImportAttributes = {
10297
10359
  order?: ("asc" | "desc");
10298
10360
  })[];
10299
10361
  newlinesBetween?: ("ignore" | number);
10362
+ useConfigurationIf?: {
10363
+ allNamesMatchPattern?: (({
10364
+ pattern: string;
10365
+ flags?: string;
10366
+ } | string)[] | ({
10367
+ pattern: string;
10368
+ flags?: string;
10369
+ } | string));
10370
+ matchesAstSelector?: string;
10371
+ };
10300
10372
  partitionByComment?: (boolean | (({
10301
10373
  pattern: string;
10302
10374
  flags?: string;
@@ -10565,6 +10637,7 @@ type PerfectionistSortInterfaces = {
10565
10637
  pattern: string;
10566
10638
  flags?: string;
10567
10639
  } | string));
10640
+ matchesAstSelector?: string;
10568
10641
  declarationMatchesPattern?: (({
10569
10642
  scope?: ("shallow" | "deep");
10570
10643
  pattern: string;
@@ -10671,6 +10744,16 @@ type PerfectionistSortIntersectionTypes = {
10671
10744
  order?: ("asc" | "desc");
10672
10745
  })[];
10673
10746
  newlinesBetween?: ("ignore" | number);
10747
+ useConfigurationIf?: {
10748
+ allNamesMatchPattern?: (({
10749
+ pattern: string;
10750
+ flags?: string;
10751
+ } | string)[] | ({
10752
+ pattern: string;
10753
+ flags?: string;
10754
+ } | string));
10755
+ matchesAstSelector?: string;
10756
+ };
10674
10757
  partitionByComment?: (boolean | (({
10675
10758
  pattern: string;
10676
10759
  flags?: string;
@@ -10799,6 +10882,7 @@ type PerfectionistSortJsxProps = {
10799
10882
  pattern: string;
10800
10883
  flags?: string;
10801
10884
  } | string));
10885
+ matchesAstSelector?: string;
10802
10886
  tagMatchesPattern?: (({
10803
10887
  pattern: string;
10804
10888
  flags?: string;
@@ -10886,6 +10970,7 @@ type PerfectionistSortMaps = {
10886
10970
  pattern: string;
10887
10971
  flags?: string;
10888
10972
  } | string));
10973
+ matchesAstSelector?: string;
10889
10974
  };
10890
10975
  partitionByComment?: (boolean | (({
10891
10976
  pattern: string;
@@ -11107,6 +11192,16 @@ type PerfectionistSortNamedExports = {
11107
11192
  order?: ("asc" | "desc");
11108
11193
  })[];
11109
11194
  newlinesBetween?: ("ignore" | number);
11195
+ useConfigurationIf?: {
11196
+ allNamesMatchPattern?: (({
11197
+ pattern: string;
11198
+ flags?: string;
11199
+ } | string)[] | ({
11200
+ pattern: string;
11201
+ flags?: string;
11202
+ } | string));
11203
+ matchesAstSelector?: string;
11204
+ };
11110
11205
  ignoreAlias?: boolean;
11111
11206
  partitionByComment?: (boolean | (({
11112
11207
  pattern: string;
@@ -11207,6 +11302,16 @@ type PerfectionistSortNamedImports = {
11207
11302
  order?: ("asc" | "desc");
11208
11303
  })[];
11209
11304
  newlinesBetween?: ("ignore" | number);
11305
+ useConfigurationIf?: {
11306
+ allNamesMatchPattern?: (({
11307
+ pattern: string;
11308
+ flags?: string;
11309
+ } | string)[] | ({
11310
+ pattern: string;
11311
+ flags?: string;
11312
+ } | string));
11313
+ matchesAstSelector?: string;
11314
+ };
11210
11315
  ignoreAlias?: boolean;
11211
11316
  partitionByComment?: (boolean | (({
11212
11317
  pattern: string;
@@ -11354,6 +11459,7 @@ type PerfectionistSortObjectTypes = {
11354
11459
  pattern: string;
11355
11460
  flags?: string;
11356
11461
  } | string));
11462
+ matchesAstSelector?: string;
11357
11463
  declarationMatchesPattern?: (({
11358
11464
  scope?: ("shallow" | "deep");
11359
11465
  pattern: string;
@@ -11520,6 +11626,7 @@ type PerfectionistSortObjects = {
11520
11626
  pattern: string;
11521
11627
  flags?: string;
11522
11628
  } | string));
11629
+ matchesAstSelector?: string;
11523
11630
  declarationMatchesPattern?: (({
11524
11631
  scope?: ("shallow" | "deep");
11525
11632
  pattern: string;
@@ -11530,6 +11637,7 @@ type PerfectionistSortObjects = {
11530
11637
  flags?: string;
11531
11638
  } | string));
11532
11639
  };
11640
+ partitionByComputedKey?: boolean;
11533
11641
  styledComponents?: boolean;
11534
11642
  useExperimentalDependencyDetection?: boolean;
11535
11643
  partitionByComment?: (boolean | (({
@@ -11636,6 +11744,7 @@ type PerfectionistSortSets = {
11636
11744
  pattern: string;
11637
11745
  flags?: string;
11638
11746
  } | string));
11747
+ matchesAstSelector?: string;
11639
11748
  };
11640
11749
  partitionByComment?: (boolean | (({
11641
11750
  pattern: string;
@@ -11745,6 +11854,16 @@ type PerfectionistSortUnionTypes = {
11745
11854
  order?: ("asc" | "desc");
11746
11855
  })[];
11747
11856
  newlinesBetween?: ("ignore" | number);
11857
+ useConfigurationIf?: {
11858
+ allNamesMatchPattern?: (({
11859
+ pattern: string;
11860
+ flags?: string;
11861
+ } | string)[] | ({
11862
+ pattern: string;
11863
+ flags?: string;
11864
+ } | string));
11865
+ matchesAstSelector?: string;
11866
+ };
11748
11867
  partitionByComment?: (boolean | (({
11749
11868
  pattern: string;
11750
11869
  flags?: string;
@@ -11769,7 +11888,7 @@ type PerfectionistSortUnionTypes = {
11769
11888
  });
11770
11889
  partitionByNewLine?: boolean;
11771
11890
  }[];
11772
- type PerfectionistSortVariableDeclarations = [] | [{
11891
+ type PerfectionistSortVariableDeclarations = {
11773
11892
  fallbackSort?: {
11774
11893
  type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11775
11894
  order?: ("asc" | "desc");
@@ -11841,6 +11960,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
11841
11960
  order?: ("asc" | "desc");
11842
11961
  })[];
11843
11962
  newlinesBetween?: ("ignore" | number);
11963
+ useConfigurationIf?: {
11964
+ allNamesMatchPattern?: (({
11965
+ pattern: string;
11966
+ flags?: string;
11967
+ } | string)[] | ({
11968
+ pattern: string;
11969
+ flags?: string;
11970
+ } | string));
11971
+ matchesAstSelector?: string;
11972
+ };
11844
11973
  useExperimentalDependencyDetection?: boolean;
11845
11974
  partitionByComment?: (boolean | (({
11846
11975
  pattern: string;
@@ -11865,7 +11994,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
11865
11994
  } | string)));
11866
11995
  });
11867
11996
  partitionByNewLine?: boolean;
11868
- }];
11997
+ }[];
11869
11998
  type PnpmJsonEnforceCatalog = [] | [{
11870
11999
  allowedProtocols?: string[];
11871
12000
  autofix?: boolean;
package/dist/index.mjs CHANGED
@@ -26,15 +26,11 @@ import configCommand from "eslint-plugin-command/config";
26
26
  const parserVue = __cjs_require("vue-eslint-parser");
27
27
  const globals = __cjs_require("globals");
28
28
  import { configs } from "eslint-plugin-regexp";
29
- const {
30
- defineConfig
31
- } = __cjs_require("eslint/config");
29
+ const { defineConfig } = __cjs_require("eslint/config");
32
30
  import process from "node:process";
33
31
  import { FlatConfigComposer } from "eslint-flat-config-utils";
34
-
35
32
  //#region \0rolldown/runtime.js
36
33
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
37
-
38
34
  //#endregion
39
35
  //#region src/utils.ts
40
36
  async function importWithError(pkg) {
@@ -44,7 +40,6 @@ async function importWithError(pkg) {
44
40
  throw new Error(`Failed to import "${pkg}". Please install it with: npm i -D ${pkg}`);
45
41
  }
46
42
  }
47
-
48
43
  //#endregion
49
44
  //#region src/configs/astro.ts
50
45
  const astro = async () => {
@@ -53,7 +48,6 @@ const astro = async () => {
53
48
  name: `sxzz/${config.name || "anonymous"}`
54
49
  }));
55
50
  };
56
-
57
51
  //#endregion
58
52
  //#region src/configs/baseline.ts
59
53
  const baseline = (options = {}) => [{
@@ -66,14 +60,12 @@ const baseline = (options = {}) => [{
66
60
  ...options
67
61
  }] }
68
62
  }];
69
-
70
63
  //#endregion
71
64
  //#region src/configs/command.ts
72
65
  const command = () => [{
73
66
  ...configCommand(),
74
67
  name: "sxzz/command"
75
68
  }];
76
-
77
69
  //#endregion
78
70
  //#region src/configs/comments.ts
79
71
  const comments = () => [{
@@ -83,14 +75,12 @@ const comments = () => [{
83
75
  name: "sxzz/comments",
84
76
  rules: { "@eslint-community/eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }] }
85
77
  }];
86
-
87
78
  //#endregion
88
79
  //#region src/configs/de-morgan.ts
89
80
  const deMorgan = () => [{
90
81
  ...pluginDeMorgan.configs.recommended,
91
82
  name: "sxzz/de-morgan"
92
83
  }];
93
-
94
84
  //#endregion
95
85
  //#region src/globs.ts
96
86
  const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
@@ -154,7 +144,6 @@ const GLOB_EXCLUDE = [
154
144
  "**/auto-import?(s).d.ts",
155
145
  "**/components.d.ts"
156
146
  ];
157
-
158
147
  //#endregion
159
148
  //#region src/configs/ignores.ts
160
149
  const ignores = () => [{
@@ -164,7 +153,6 @@ const ignores = () => [{
164
153
  ...pluginIgnore({ strict: false }),
165
154
  name: "sxzz/gitignore"
166
155
  }];
167
-
168
156
  //#endregion
169
157
  //#region src/configs/imports.ts
170
158
  const imports = () => [{
@@ -182,7 +170,6 @@ const imports = () => [{
182
170
  "import/no-named-default": "error"
183
171
  }
184
172
  }];
185
-
186
173
  //#endregion
187
174
  //#region src/configs/javascript.ts
188
175
  const restrictedSyntaxJs = ["ForInStatement", "LabeledStatement"];
@@ -277,7 +264,6 @@ const javascript = () => [{
277
264
  "vars-on-top": "error"
278
265
  }
279
266
  }];
280
-
281
267
  //#endregion
282
268
  //#region src/configs/jsdoc.ts
283
269
  const jsdoc = () => [{
@@ -301,7 +287,6 @@ const jsdoc = () => [{
301
287
  "jsdoc/require-yields-check": "warn"
302
288
  }
303
289
  }];
304
-
305
290
  //#endregion
306
291
  //#region src/configs/jsonc.ts
307
292
  const jsonc = () => [...pluginJsonc.configs["recommended-with-jsonc"].map((config) => ({
@@ -314,7 +299,6 @@ const jsonc = () => [...pluginJsonc.configs["recommended-with-jsonc"].map((confi
314
299
  "jsonc/quotes": "off"
315
300
  }
316
301
  }];
317
-
318
302
  //#endregion
319
303
  //#region src/configs/markdown.ts
320
304
  const markdown = () => [...pluginMarkdown.configs.processor.map((config) => ({
@@ -348,7 +332,6 @@ const markdown = () => [...pluginMarkdown.configs.processor.map((config) => ({
348
332
  "unused-imports/no-unused-vars": "off"
349
333
  }
350
334
  }];
351
-
352
335
  //#endregion
353
336
  //#region src/configs/node.ts
354
337
  const node = () => [{
@@ -366,7 +349,6 @@ const node = () => [{
366
349
  "node/process-exit-as-throw": "error"
367
350
  }
368
351
  }];
369
-
370
352
  //#endregion
371
353
  //#region src/configs/pnpm.ts
372
354
  async function pnpm() {
@@ -391,7 +373,6 @@ async function pnpm() {
391
373
  }
392
374
  }];
393
375
  }
394
-
395
376
  //#endregion
396
377
  //#region src/configs/prettier.ts
397
378
  const rules = { ...pluginPrettierRecommended.rules };
@@ -404,14 +385,12 @@ const prettier = () => [{
404
385
  "prettier/prettier": "warn"
405
386
  }
406
387
  }];
407
-
408
388
  //#endregion
409
389
  //#region src/configs/regexp.ts
410
390
  const regexp = () => [{
411
391
  ...configs["flat/recommended"],
412
392
  name: "sxzz/regexp"
413
393
  }];
414
-
415
394
  //#endregion
416
395
  //#region src/configs/sort.ts
417
396
  const sortPackageJson = () => [{
@@ -462,6 +441,7 @@ const sortPackageJson = () => [{
462
441
  "peerDependencies",
463
442
  "peerDependenciesMeta",
464
443
  "dependencies",
444
+ "inlinedDependencies",
465
445
  "optionalDependencies",
466
446
  "devDependencies",
467
447
  "pnpm",
@@ -675,7 +655,6 @@ const sortImports = () => [{
675
655
  }]
676
656
  }
677
657
  }];
678
-
679
658
  //#endregion
680
659
  //#region src/configs/special-cases.ts
681
660
  const specialCases = () => [
@@ -720,7 +699,6 @@ const specialCases = () => [
720
699
  rules: { "unicorn/no-anonymous-default-export": "off" }
721
700
  }
722
701
  ];
723
-
724
702
  //#endregion
725
703
  //#region src/configs/typescript.ts
726
704
  const typescriptCore = defineConfig({
@@ -778,7 +756,6 @@ const typescript = () => [
778
756
  rules: { "@typescript-eslint/no-require-imports": "off" }
779
757
  }
780
758
  ];
781
-
782
759
  //#endregion
783
760
  //#region src/configs/unicorn.ts
784
761
  const unicorn = () => [{
@@ -818,7 +795,6 @@ const unicorn = () => [{
818
795
  "unicorn/require-module-specifiers": "off"
819
796
  }
820
797
  }];
821
-
822
798
  //#endregion
823
799
  //#region src/configs/unocss.ts
824
800
  const unocss = async () => {
@@ -827,7 +803,6 @@ const unocss = async () => {
827
803
  name: "sxzz/unocss"
828
804
  }];
829
805
  };
830
-
831
806
  //#endregion
832
807
  //#region src/configs/vue.ts
833
808
  const vueTs = typescriptCore.filter((config) => config.name !== "typescript-eslint/base").map((config) => {
@@ -902,7 +877,6 @@ const vue = () => [...vueTs, {
902
877
  "vue/return-in-computed-property": ["error", { treatUndefinedAsUnspecified: false }]
903
878
  }
904
879
  }];
905
-
906
880
  //#endregion
907
881
  //#region src/configs/yml.ts
908
882
  const yamlConfigs = Array.from(new Set([...pluginYml.configs.standard, ...pluginYml.configs.prettier]));
@@ -915,7 +889,6 @@ const yml = () => [...yamlConfigs.map((config) => ({
915
889
  name: "sxzz/yaml",
916
890
  rules: { "yml/no-empty-mapping-value": "off" }
917
891
  }];
918
-
919
892
  //#endregion
920
893
  //#region src/env.ts
921
894
  const cwd = process.cwd();
@@ -939,7 +912,6 @@ function isInEditorEnv() {
939
912
  function isInGitHooksOrLintStaged() {
940
913
  return !!(process.env.GIT_PARAMS || process.env.VSCODE_GIT_COMMAND || process.env.npm_lifecycle_script?.startsWith("lint-staged"));
941
914
  }
942
-
943
915
  //#endregion
944
916
  //#region src/presets.ts
945
917
  /** Ignore common files and include javascript support */
@@ -1013,6 +985,5 @@ function sxzz(options = {}, ...userConfigs) {
1013
985
  configs.push(specialCases());
1014
986
  return new FlatConfigComposer(...configs, ...userConfigs);
1015
987
  }
1016
-
1017
988
  //#endregion
1018
- export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, astro, baseline, command, comments, configCommand, configComments, configJs, deMorgan, hasAstro, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditorEnv, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, parserVue, pluginAntfu, pluginDeMorgan, pluginIgnore, pluginImport, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPnpm, pluginPrettier, pluginPrettierRecommended, pluginSxzz, pluginUnicorn, pluginUnusedImports, pluginVue, pluginYml, pnpm, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortPnpmWorkspace, sortTsconfig, specialCases, sxzz, tseslint, typescript, typescriptCore, unicorn, unocss, vue, yml };
989
+ export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, astro, baseline, command, comments, configCommand, configComments, configJs, deMorgan, hasAstro, hasTypeScript, hasUnocss, hasVue, ignores, imports, isInEditorEnv, isInGitHooksOrLintStaged, javascript, jsdoc, jsonc, markdown, node, parserVue, pluginAntfu, pluginDeMorgan, pluginIgnore, pluginImport, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginPerfectionist, pluginPnpm, pluginPrettier, pluginPrettierRecommended, pluginSxzz, pluginUnicorn, pluginUnusedImports, pluginVue, pluginYml, pnpm, presetAll, presetBasic, presetJavaScript, presetJsonc, presetLangsExtensions, prettier, regexp, restrictedSyntaxJs, sortImports, sortPackageJson, sortPnpmWorkspace, sortTsconfig, specialCases, sxzz, tseslint, typescript, typescriptCore, unicorn, unocss, vue, yml };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
3
  "type": "module",
4
- "version": "7.8.2",
4
+ "version": "7.8.4",
5
5
  "description": "ESLint config for @sxzz.",
6
6
  "author": "Kevin Deng <sxzz@sxzz.moe>",
7
7
  "license": "MIT",
@@ -42,50 +42,50 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
45
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
46
46
  "@eslint/js": "^10.0.1",
47
- "@eslint/markdown": "^7.5.1",
48
- "eslint-config-flat-gitignore": "^2.2.1",
47
+ "@eslint/markdown": "^8.0.0",
48
+ "eslint-config-flat-gitignore": "^2.3.0",
49
49
  "eslint-config-prettier": "^10.1.8",
50
- "eslint-flat-config-utils": "^3.0.1",
50
+ "eslint-flat-config-utils": "^3.0.2",
51
51
  "eslint-plugin-antfu": "^3.2.2",
52
- "eslint-plugin-baseline-js": "^0.5.0",
52
+ "eslint-plugin-baseline-js": "^0.6.1",
53
53
  "eslint-plugin-command": "^3.5.2",
54
- "eslint-plugin-de-morgan": "^2.0.0",
54
+ "eslint-plugin-de-morgan": "^2.1.1",
55
55
  "eslint-plugin-importer": "^0.3.0",
56
- "eslint-plugin-jsdoc": "^62.7.1",
57
- "eslint-plugin-jsonc": "^3.1.1",
56
+ "eslint-plugin-jsdoc": "^62.8.1",
57
+ "eslint-plugin-jsonc": "^3.1.2",
58
58
  "eslint-plugin-n": "^17.24.0",
59
- "eslint-plugin-perfectionist": "^5.6.0",
59
+ "eslint-plugin-perfectionist": "^5.7.0",
60
60
  "eslint-plugin-pnpm": "^1.6.0",
61
61
  "eslint-plugin-prettier": "^5.5.5",
62
- "eslint-plugin-regexp": "^3.0.0",
62
+ "eslint-plugin-regexp": "^3.1.0",
63
63
  "eslint-plugin-sxzz": "^0.4.4",
64
64
  "eslint-plugin-unicorn": "^63.0.0",
65
65
  "eslint-plugin-unused-imports": "^4.4.1",
66
66
  "eslint-plugin-vue": "^10.8.0",
67
- "eslint-plugin-yml": "^3.3.0",
68
- "globals": "^17.3.0",
67
+ "eslint-plugin-yml": "^3.3.1",
68
+ "globals": "^17.4.0",
69
69
  "jsonc-eslint-parser": "^3.1.0",
70
- "typescript-eslint": "^8.56.1",
70
+ "typescript-eslint": "^8.57.2",
71
71
  "vue-eslint-parser": "^10.4.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@eslint/config-inspector": "^1.4.2",
74
+ "@eslint/config-inspector": "^1.5.0",
75
75
  "@sxzz/prettier-config": "^2.3.1",
76
- "@types/node": "^25.3.2",
77
- "@typescript/native-preview": "7.0.0-dev.20260227.1",
78
- "@unocss/eslint-plugin": "^66.6.2",
79
- "bumpp": "^10.4.1",
80
- "eslint": "^10.0.2",
76
+ "@types/node": "^25.5.0",
77
+ "@typescript/native-preview": "7.0.0-dev.20260327.2",
78
+ "@unocss/eslint-plugin": "^66.6.7",
79
+ "bumpp": "^11.0.1",
80
+ "eslint": "^10.1.0",
81
81
  "eslint-plugin-astro": "^1.6.0",
82
82
  "eslint-typegen": "^2.3.1",
83
83
  "prettier": "^3.8.1",
84
- "rolldown-plugin-require-cjs": "^0.3.3",
85
- "tsdown": "^0.21.0-beta.2",
86
- "tsdown-preset-sxzz": "^0.4.0",
87
- "typescript": "^5.9.3",
88
- "unrun": "^0.2.28"
84
+ "rolldown-plugin-require-cjs": "^0.4.0",
85
+ "tsdown": "^0.21.6",
86
+ "tsdown-preset-sxzz": "^0.4.2",
87
+ "typescript": "^6.0.2",
88
+ "unrun": "^0.2.34"
89
89
  },
90
90
  "resolutions": {
91
91
  "@types/eslint": "-"