@moso/eslint-config 2.0.4 → 2.0.5
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 +113 -77
- package/dist/index.mjs +474 -243
- package/package.json +20 -20
package/dist/index.d.mts
CHANGED
|
@@ -226,7 +226,7 @@ interface RuleOptions {
|
|
|
226
226
|
* Enforces destructuring and symmetric naming of `useState` hook value and setter.
|
|
227
227
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
228
228
|
*/
|
|
229
|
-
'@eslint-react/naming-convention/use-state'?: Linter.RuleEntry<
|
|
229
|
+
'@eslint-react/naming-convention/use-state'?: Linter.RuleEntry<EslintReactNamingConventionUseState>;
|
|
230
230
|
/**
|
|
231
231
|
* Disallow accessing `this.state` inside `setState` calls.
|
|
232
232
|
* @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
|
|
@@ -3417,10 +3417,6 @@ interface RuleOptions {
|
|
|
3417
3417
|
* @see https://tkdodo.eu/blog/avoiding-hydration-mismatches-with-use-sync-external-store
|
|
3418
3418
|
*/
|
|
3419
3419
|
'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>;
|
|
3420
|
-
/**
|
|
3421
|
-
* Disallow effects that only use props.
|
|
3422
|
-
*/
|
|
3423
|
-
'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>;
|
|
3424
3420
|
/**
|
|
3425
3421
|
* Disallow passing data to parents in an effect.
|
|
3426
3422
|
* @see https://react.dev/learn/you-might-not-need-an-effect#passing-data-to-the-parent
|
|
@@ -4002,6 +3998,11 @@ interface RuleOptions {
|
|
|
4002
3998
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4003
3999
|
*/
|
|
4004
4000
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
4001
|
+
/**
|
|
4002
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
4003
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
4004
|
+
*/
|
|
4005
|
+
'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
4005
4006
|
/**
|
|
4006
4007
|
* Enforce padding around `afterAll` blocks
|
|
4007
4008
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -4111,7 +4112,7 @@ interface RuleOptions {
|
|
|
4111
4112
|
* prefer dynamic import in mock
|
|
4112
4113
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4113
4114
|
*/
|
|
4114
|
-
'test/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
4115
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
|
|
4115
4116
|
/**
|
|
4116
4117
|
* enforce importing Vitest globals
|
|
4117
4118
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4127,6 +4128,11 @@ interface RuleOptions {
|
|
|
4127
4128
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4128
4129
|
*/
|
|
4129
4130
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4131
|
+
/**
|
|
4132
|
+
* Prefer mock return shorthands
|
|
4133
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
4134
|
+
*/
|
|
4135
|
+
'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
4130
4136
|
/**
|
|
4131
4137
|
* enforce including a hint with external snapshots
|
|
4132
4138
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -4172,6 +4178,11 @@ interface RuleOptions {
|
|
|
4172
4178
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4173
4179
|
*/
|
|
4174
4180
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
4181
|
+
/**
|
|
4182
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
4183
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
4184
|
+
*/
|
|
4185
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
4175
4186
|
/**
|
|
4176
4187
|
* enforce using toHaveLength()
|
|
4177
4188
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -4197,11 +4208,6 @@ interface RuleOptions {
|
|
|
4197
4208
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
4198
4209
|
*/
|
|
4199
4210
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
|
|
4200
|
-
/**
|
|
4201
|
-
* require usage of import in vi.mock()
|
|
4202
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
4203
|
-
*/
|
|
4204
|
-
'test/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
4205
4211
|
/**
|
|
4206
4212
|
* require local Test Context for concurrent snapshot tests
|
|
4207
4213
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -6518,6 +6524,11 @@ type EslintReactNamingConventionFilenameExtension = [] | [(("always" | "as-neede
|
|
|
6518
6524
|
extensions?: string[];
|
|
6519
6525
|
ignoreFilesWithoutCode?: boolean;
|
|
6520
6526
|
})];
|
|
6527
|
+
// ----- @eslint-react/naming-convention/use-state -----
|
|
6528
|
+
type EslintReactNamingConventionUseState = [] | [{
|
|
6529
|
+
enforceAssignment?: boolean;
|
|
6530
|
+
enforceSetterName?: boolean;
|
|
6531
|
+
}];
|
|
6521
6532
|
// ----- @eslint-react/no-forbidden-props -----
|
|
6522
6533
|
type EslintReactNoForbiddenProps = [] | [{
|
|
6523
6534
|
forbid?: (string | {
|
|
@@ -10459,7 +10470,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10459
10470
|
};
|
|
10460
10471
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10461
10472
|
groupName: string;
|
|
10462
|
-
newlinesInside?: number;
|
|
10473
|
+
newlinesInside?: ("ignore" | number);
|
|
10463
10474
|
order?: ("asc" | "desc");
|
|
10464
10475
|
anyOf: {
|
|
10465
10476
|
elementNamePattern?: (({
|
|
@@ -10478,7 +10489,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10478
10489
|
};
|
|
10479
10490
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10480
10491
|
groupName: string;
|
|
10481
|
-
newlinesInside?: number;
|
|
10492
|
+
newlinesInside?: ("ignore" | number);
|
|
10482
10493
|
order?: ("asc" | "desc");
|
|
10483
10494
|
elementNamePattern?: (({
|
|
10484
10495
|
pattern: string;
|
|
@@ -10489,13 +10500,14 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10489
10500
|
} | string));
|
|
10490
10501
|
selector?: ("literal" | "spread");
|
|
10491
10502
|
})[];
|
|
10503
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10492
10504
|
groups?: (string | [string, ...(string)[]] | {
|
|
10493
10505
|
newlinesBetween: ("ignore" | number);
|
|
10494
10506
|
} | {
|
|
10495
10507
|
group: (string | [string, ...(string)[]]);
|
|
10496
10508
|
commentAbove?: string;
|
|
10497
10509
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10498
|
-
newlinesInside?: number;
|
|
10510
|
+
newlinesInside?: ("ignore" | number);
|
|
10499
10511
|
order?: ("asc" | "desc");
|
|
10500
10512
|
})[];
|
|
10501
10513
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -10551,7 +10563,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10551
10563
|
};
|
|
10552
10564
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10553
10565
|
groupName: string;
|
|
10554
|
-
newlinesInside?: number;
|
|
10566
|
+
newlinesInside?: ("ignore" | number);
|
|
10555
10567
|
order?: ("asc" | "desc");
|
|
10556
10568
|
anyOf: {
|
|
10557
10569
|
elementNamePattern?: (({
|
|
@@ -10585,7 +10597,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10585
10597
|
};
|
|
10586
10598
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10587
10599
|
groupName: string;
|
|
10588
|
-
newlinesInside?: number;
|
|
10600
|
+
newlinesInside?: ("ignore" | number);
|
|
10589
10601
|
order?: ("asc" | "desc");
|
|
10590
10602
|
elementNamePattern?: (({
|
|
10591
10603
|
pattern: string;
|
|
@@ -10611,13 +10623,14 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10611
10623
|
flags?: string;
|
|
10612
10624
|
} | string));
|
|
10613
10625
|
})[];
|
|
10626
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10614
10627
|
groups?: (string | [string, ...(string)[]] | {
|
|
10615
10628
|
newlinesBetween: ("ignore" | number);
|
|
10616
10629
|
} | {
|
|
10617
10630
|
group: (string | [string, ...(string)[]]);
|
|
10618
10631
|
commentAbove?: string;
|
|
10619
10632
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10620
|
-
newlinesInside?: number;
|
|
10633
|
+
newlinesInside?: ("ignore" | number);
|
|
10621
10634
|
order?: ("asc" | "desc");
|
|
10622
10635
|
})[];
|
|
10623
10636
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -10671,7 +10684,7 @@ type PerfectionistSortDecorators = {
|
|
|
10671
10684
|
};
|
|
10672
10685
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10673
10686
|
groupName: string;
|
|
10674
|
-
newlinesInside?: number;
|
|
10687
|
+
newlinesInside?: ("ignore" | number);
|
|
10675
10688
|
order?: ("asc" | "desc");
|
|
10676
10689
|
anyOf: {
|
|
10677
10690
|
elementNamePattern?: (({
|
|
@@ -10689,7 +10702,7 @@ type PerfectionistSortDecorators = {
|
|
|
10689
10702
|
};
|
|
10690
10703
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10691
10704
|
groupName: string;
|
|
10692
|
-
newlinesInside?: number;
|
|
10705
|
+
newlinesInside?: ("ignore" | number);
|
|
10693
10706
|
order?: ("asc" | "desc");
|
|
10694
10707
|
elementNamePattern?: (({
|
|
10695
10708
|
pattern: string;
|
|
@@ -10699,13 +10712,14 @@ type PerfectionistSortDecorators = {
|
|
|
10699
10712
|
flags?: string;
|
|
10700
10713
|
} | string));
|
|
10701
10714
|
})[];
|
|
10715
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10702
10716
|
groups?: (string | [string, ...(string)[]] | {
|
|
10703
10717
|
newlinesBetween: ("ignore" | number);
|
|
10704
10718
|
} | {
|
|
10705
10719
|
group: (string | [string, ...(string)[]]);
|
|
10706
10720
|
commentAbove?: string;
|
|
10707
10721
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10708
|
-
newlinesInside?: number;
|
|
10722
|
+
newlinesInside?: ("ignore" | number);
|
|
10709
10723
|
order?: ("asc" | "desc");
|
|
10710
10724
|
})[];
|
|
10711
10725
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -10757,7 +10771,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10757
10771
|
};
|
|
10758
10772
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10759
10773
|
groupName: string;
|
|
10760
|
-
newlinesInside?: number;
|
|
10774
|
+
newlinesInside?: ("ignore" | number);
|
|
10761
10775
|
order?: ("asc" | "desc");
|
|
10762
10776
|
anyOf: {
|
|
10763
10777
|
elementNamePattern?: (({
|
|
@@ -10782,7 +10796,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10782
10796
|
};
|
|
10783
10797
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10784
10798
|
groupName: string;
|
|
10785
|
-
newlinesInside?: number;
|
|
10799
|
+
newlinesInside?: ("ignore" | number);
|
|
10786
10800
|
order?: ("asc" | "desc");
|
|
10787
10801
|
elementNamePattern?: (({
|
|
10788
10802
|
pattern: string;
|
|
@@ -10799,13 +10813,14 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10799
10813
|
flags?: string;
|
|
10800
10814
|
} | string));
|
|
10801
10815
|
})[];
|
|
10816
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10802
10817
|
groups?: (string | [string, ...(string)[]] | {
|
|
10803
10818
|
newlinesBetween: ("ignore" | number);
|
|
10804
10819
|
} | {
|
|
10805
10820
|
group: (string | [string, ...(string)[]]);
|
|
10806
10821
|
commentAbove?: string;
|
|
10807
10822
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10808
|
-
newlinesInside?: number;
|
|
10823
|
+
newlinesInside?: ("ignore" | number);
|
|
10809
10824
|
order?: ("asc" | "desc");
|
|
10810
10825
|
})[];
|
|
10811
10826
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -10853,7 +10868,7 @@ type PerfectionistSortExportAttributes = {
|
|
|
10853
10868
|
};
|
|
10854
10869
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10855
10870
|
groupName: string;
|
|
10856
|
-
newlinesInside?: number;
|
|
10871
|
+
newlinesInside?: ("ignore" | number);
|
|
10857
10872
|
order?: ("asc" | "desc");
|
|
10858
10873
|
anyOf: {
|
|
10859
10874
|
elementNamePattern?: (({
|
|
@@ -10871,7 +10886,7 @@ type PerfectionistSortExportAttributes = {
|
|
|
10871
10886
|
};
|
|
10872
10887
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10873
10888
|
groupName: string;
|
|
10874
|
-
newlinesInside?: number;
|
|
10889
|
+
newlinesInside?: ("ignore" | number);
|
|
10875
10890
|
order?: ("asc" | "desc");
|
|
10876
10891
|
elementNamePattern?: (({
|
|
10877
10892
|
pattern: string;
|
|
@@ -10881,13 +10896,14 @@ type PerfectionistSortExportAttributes = {
|
|
|
10881
10896
|
flags?: string;
|
|
10882
10897
|
} | string));
|
|
10883
10898
|
})[];
|
|
10899
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10884
10900
|
groups?: (string | [string, ...(string)[]] | {
|
|
10885
10901
|
newlinesBetween: ("ignore" | number);
|
|
10886
10902
|
} | {
|
|
10887
10903
|
group: (string | [string, ...(string)[]]);
|
|
10888
10904
|
commentAbove?: string;
|
|
10889
10905
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10890
|
-
newlinesInside?: number;
|
|
10906
|
+
newlinesInside?: ("ignore" | number);
|
|
10891
10907
|
order?: ("asc" | "desc");
|
|
10892
10908
|
})[];
|
|
10893
10909
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -10934,7 +10950,7 @@ type PerfectionistSortExports = {
|
|
|
10934
10950
|
};
|
|
10935
10951
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10936
10952
|
groupName: string;
|
|
10937
|
-
newlinesInside?: number;
|
|
10953
|
+
newlinesInside?: ("ignore" | number);
|
|
10938
10954
|
order?: ("asc" | "desc");
|
|
10939
10955
|
anyOf: {
|
|
10940
10956
|
elementNamePattern?: (({
|
|
@@ -10954,7 +10970,7 @@ type PerfectionistSortExports = {
|
|
|
10954
10970
|
};
|
|
10955
10971
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10956
10972
|
groupName: string;
|
|
10957
|
-
newlinesInside?: number;
|
|
10973
|
+
newlinesInside?: ("ignore" | number);
|
|
10958
10974
|
order?: ("asc" | "desc");
|
|
10959
10975
|
elementNamePattern?: (({
|
|
10960
10976
|
pattern: string;
|
|
@@ -10966,13 +10982,14 @@ type PerfectionistSortExports = {
|
|
|
10966
10982
|
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10967
10983
|
selector?: "export";
|
|
10968
10984
|
})[];
|
|
10985
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10969
10986
|
groups?: (string | [string, ...(string)[]] | {
|
|
10970
10987
|
newlinesBetween: ("ignore" | number);
|
|
10971
10988
|
} | {
|
|
10972
10989
|
group: (string | [string, ...(string)[]]);
|
|
10973
10990
|
commentAbove?: string;
|
|
10974
10991
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10975
|
-
newlinesInside?: number;
|
|
10992
|
+
newlinesInside?: ("ignore" | number);
|
|
10976
10993
|
order?: ("asc" | "desc");
|
|
10977
10994
|
})[];
|
|
10978
10995
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11019,7 +11036,7 @@ type PerfectionistSortHeritageClauses = {
|
|
|
11019
11036
|
};
|
|
11020
11037
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11021
11038
|
groupName: string;
|
|
11022
|
-
newlinesInside?: number;
|
|
11039
|
+
newlinesInside?: ("ignore" | number);
|
|
11023
11040
|
order?: ("asc" | "desc");
|
|
11024
11041
|
anyOf: {
|
|
11025
11042
|
elementNamePattern?: (({
|
|
@@ -11037,7 +11054,7 @@ type PerfectionistSortHeritageClauses = {
|
|
|
11037
11054
|
};
|
|
11038
11055
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11039
11056
|
groupName: string;
|
|
11040
|
-
newlinesInside?: number;
|
|
11057
|
+
newlinesInside?: ("ignore" | number);
|
|
11041
11058
|
order?: ("asc" | "desc");
|
|
11042
11059
|
elementNamePattern?: (({
|
|
11043
11060
|
pattern: string;
|
|
@@ -11047,13 +11064,14 @@ type PerfectionistSortHeritageClauses = {
|
|
|
11047
11064
|
flags?: string;
|
|
11048
11065
|
} | string));
|
|
11049
11066
|
})[];
|
|
11067
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11050
11068
|
groups?: (string | [string, ...(string)[]] | {
|
|
11051
11069
|
newlinesBetween: ("ignore" | number);
|
|
11052
11070
|
} | {
|
|
11053
11071
|
group: (string | [string, ...(string)[]]);
|
|
11054
11072
|
commentAbove?: string;
|
|
11055
11073
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11056
|
-
newlinesInside?: number;
|
|
11074
|
+
newlinesInside?: ("ignore" | number);
|
|
11057
11075
|
order?: ("asc" | "desc");
|
|
11058
11076
|
})[];
|
|
11059
11077
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11100,7 +11118,7 @@ type PerfectionistSortImportAttributes = {
|
|
|
11100
11118
|
};
|
|
11101
11119
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11102
11120
|
groupName: string;
|
|
11103
|
-
newlinesInside?: number;
|
|
11121
|
+
newlinesInside?: ("ignore" | number);
|
|
11104
11122
|
order?: ("asc" | "desc");
|
|
11105
11123
|
anyOf: {
|
|
11106
11124
|
elementNamePattern?: (({
|
|
@@ -11118,7 +11136,7 @@ type PerfectionistSortImportAttributes = {
|
|
|
11118
11136
|
};
|
|
11119
11137
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11120
11138
|
groupName: string;
|
|
11121
|
-
newlinesInside?: number;
|
|
11139
|
+
newlinesInside?: ("ignore" | number);
|
|
11122
11140
|
order?: ("asc" | "desc");
|
|
11123
11141
|
elementNamePattern?: (({
|
|
11124
11142
|
pattern: string;
|
|
@@ -11128,13 +11146,14 @@ type PerfectionistSortImportAttributes = {
|
|
|
11128
11146
|
flags?: string;
|
|
11129
11147
|
} | string));
|
|
11130
11148
|
})[];
|
|
11149
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11131
11150
|
groups?: (string | [string, ...(string)[]] | {
|
|
11132
11151
|
newlinesBetween: ("ignore" | number);
|
|
11133
11152
|
} | {
|
|
11134
11153
|
group: (string | [string, ...(string)[]]);
|
|
11135
11154
|
commentAbove?: string;
|
|
11136
11155
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11137
|
-
newlinesInside?: number;
|
|
11156
|
+
newlinesInside?: ("ignore" | number);
|
|
11138
11157
|
order?: ("asc" | "desc");
|
|
11139
11158
|
})[];
|
|
11140
11159
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11181,7 +11200,7 @@ type PerfectionistSortImports = {
|
|
|
11181
11200
|
};
|
|
11182
11201
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11183
11202
|
groupName: string;
|
|
11184
|
-
newlinesInside?: number;
|
|
11203
|
+
newlinesInside?: ("ignore" | number);
|
|
11185
11204
|
order?: ("asc" | "desc");
|
|
11186
11205
|
anyOf: {
|
|
11187
11206
|
elementNamePattern?: (({
|
|
@@ -11201,7 +11220,7 @@ type PerfectionistSortImports = {
|
|
|
11201
11220
|
};
|
|
11202
11221
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11203
11222
|
groupName: string;
|
|
11204
|
-
newlinesInside?: number;
|
|
11223
|
+
newlinesInside?: ("ignore" | number);
|
|
11205
11224
|
order?: ("asc" | "desc");
|
|
11206
11225
|
elementNamePattern?: (({
|
|
11207
11226
|
pattern: string;
|
|
@@ -11213,13 +11232,14 @@ type PerfectionistSortImports = {
|
|
|
11213
11232
|
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11214
11233
|
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11215
11234
|
})[];
|
|
11235
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11216
11236
|
groups?: (string | [string, ...(string)[]] | {
|
|
11217
11237
|
newlinesBetween: ("ignore" | number);
|
|
11218
11238
|
} | {
|
|
11219
11239
|
group: (string | [string, ...(string)[]]);
|
|
11220
11240
|
commentAbove?: string;
|
|
11221
11241
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11222
|
-
newlinesInside?: number;
|
|
11242
|
+
newlinesInside?: ("ignore" | number);
|
|
11223
11243
|
order?: ("asc" | "desc");
|
|
11224
11244
|
})[];
|
|
11225
11245
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11282,7 +11302,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11282
11302
|
};
|
|
11283
11303
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11284
11304
|
groupName: string;
|
|
11285
|
-
newlinesInside?: number;
|
|
11305
|
+
newlinesInside?: ("ignore" | number);
|
|
11286
11306
|
order?: ("asc" | "desc");
|
|
11287
11307
|
anyOf: {
|
|
11288
11308
|
elementNamePattern?: (({
|
|
@@ -11311,7 +11331,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11311
11331
|
};
|
|
11312
11332
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11313
11333
|
groupName: string;
|
|
11314
|
-
newlinesInside?: number;
|
|
11334
|
+
newlinesInside?: ("ignore" | number);
|
|
11315
11335
|
order?: ("asc" | "desc");
|
|
11316
11336
|
elementNamePattern?: (({
|
|
11317
11337
|
pattern: string;
|
|
@@ -11331,13 +11351,14 @@ type PerfectionistSortInterfaces = {
|
|
|
11331
11351
|
} | string));
|
|
11332
11352
|
sortBy?: ("name" | "value");
|
|
11333
11353
|
})[];
|
|
11354
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11334
11355
|
groups?: (string | [string, ...(string)[]] | {
|
|
11335
11356
|
newlinesBetween: ("ignore" | number);
|
|
11336
11357
|
} | {
|
|
11337
11358
|
group: (string | [string, ...(string)[]]);
|
|
11338
11359
|
commentAbove?: string;
|
|
11339
11360
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11340
|
-
newlinesInside?: number;
|
|
11361
|
+
newlinesInside?: ("ignore" | number);
|
|
11341
11362
|
order?: ("asc" | "desc");
|
|
11342
11363
|
})[];
|
|
11343
11364
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11413,7 +11434,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11413
11434
|
};
|
|
11414
11435
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11415
11436
|
groupName: string;
|
|
11416
|
-
newlinesInside?: number;
|
|
11437
|
+
newlinesInside?: ("ignore" | number);
|
|
11417
11438
|
order?: ("asc" | "desc");
|
|
11418
11439
|
anyOf: {
|
|
11419
11440
|
elementNamePattern?: (({
|
|
@@ -11432,7 +11453,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11432
11453
|
};
|
|
11433
11454
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11434
11455
|
groupName: string;
|
|
11435
|
-
newlinesInside?: number;
|
|
11456
|
+
newlinesInside?: ("ignore" | number);
|
|
11436
11457
|
order?: ("asc" | "desc");
|
|
11437
11458
|
elementNamePattern?: (({
|
|
11438
11459
|
pattern: string;
|
|
@@ -11443,13 +11464,14 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11443
11464
|
} | string));
|
|
11444
11465
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11445
11466
|
})[];
|
|
11467
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11446
11468
|
groups?: (string | [string, ...(string)[]] | {
|
|
11447
11469
|
newlinesBetween: ("ignore" | number);
|
|
11448
11470
|
} | {
|
|
11449
11471
|
group: (string | [string, ...(string)[]]);
|
|
11450
11472
|
commentAbove?: string;
|
|
11451
11473
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11452
|
-
newlinesInside?: number;
|
|
11474
|
+
newlinesInside?: ("ignore" | number);
|
|
11453
11475
|
order?: ("asc" | "desc");
|
|
11454
11476
|
})[];
|
|
11455
11477
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11496,7 +11518,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11496
11518
|
};
|
|
11497
11519
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11498
11520
|
groupName: string;
|
|
11499
|
-
newlinesInside?: number;
|
|
11521
|
+
newlinesInside?: ("ignore" | number);
|
|
11500
11522
|
order?: ("asc" | "desc");
|
|
11501
11523
|
anyOf: {
|
|
11502
11524
|
elementNamePattern?: (({
|
|
@@ -11523,7 +11545,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11523
11545
|
};
|
|
11524
11546
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11525
11547
|
groupName: string;
|
|
11526
|
-
newlinesInside?: number;
|
|
11548
|
+
newlinesInside?: ("ignore" | number);
|
|
11527
11549
|
order?: ("asc" | "desc");
|
|
11528
11550
|
elementNamePattern?: (({
|
|
11529
11551
|
pattern: string;
|
|
@@ -11542,13 +11564,14 @@ type PerfectionistSortJsxProps = {
|
|
|
11542
11564
|
flags?: string;
|
|
11543
11565
|
} | string));
|
|
11544
11566
|
})[];
|
|
11567
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11545
11568
|
groups?: (string | [string, ...(string)[]] | {
|
|
11546
11569
|
newlinesBetween: ("ignore" | number);
|
|
11547
11570
|
} | {
|
|
11548
11571
|
group: (string | [string, ...(string)[]]);
|
|
11549
11572
|
commentAbove?: string;
|
|
11550
11573
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11551
|
-
newlinesInside?: number;
|
|
11574
|
+
newlinesInside?: ("ignore" | number);
|
|
11552
11575
|
order?: ("asc" | "desc");
|
|
11553
11576
|
})[];
|
|
11554
11577
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11589,7 +11612,7 @@ type PerfectionistSortMaps = {
|
|
|
11589
11612
|
};
|
|
11590
11613
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11591
11614
|
groupName: string;
|
|
11592
|
-
newlinesInside?: number;
|
|
11615
|
+
newlinesInside?: ("ignore" | number);
|
|
11593
11616
|
order?: ("asc" | "desc");
|
|
11594
11617
|
anyOf: {
|
|
11595
11618
|
elementNamePattern?: (({
|
|
@@ -11607,7 +11630,7 @@ type PerfectionistSortMaps = {
|
|
|
11607
11630
|
};
|
|
11608
11631
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11609
11632
|
groupName: string;
|
|
11610
|
-
newlinesInside?: number;
|
|
11633
|
+
newlinesInside?: ("ignore" | number);
|
|
11611
11634
|
order?: ("asc" | "desc");
|
|
11612
11635
|
elementNamePattern?: (({
|
|
11613
11636
|
pattern: string;
|
|
@@ -11617,13 +11640,14 @@ type PerfectionistSortMaps = {
|
|
|
11617
11640
|
flags?: string;
|
|
11618
11641
|
} | string));
|
|
11619
11642
|
})[];
|
|
11643
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11620
11644
|
groups?: (string | [string, ...(string)[]] | {
|
|
11621
11645
|
newlinesBetween: ("ignore" | number);
|
|
11622
11646
|
} | {
|
|
11623
11647
|
group: (string | [string, ...(string)[]]);
|
|
11624
11648
|
commentAbove?: string;
|
|
11625
11649
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11626
|
-
newlinesInside?: number;
|
|
11650
|
+
newlinesInside?: ("ignore" | number);
|
|
11627
11651
|
order?: ("asc" | "desc");
|
|
11628
11652
|
})[];
|
|
11629
11653
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11679,7 +11703,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
11679
11703
|
};
|
|
11680
11704
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11681
11705
|
groupName: string;
|
|
11682
|
-
newlinesInside?: number;
|
|
11706
|
+
newlinesInside?: ("ignore" | number);
|
|
11683
11707
|
order?: ("asc" | "desc");
|
|
11684
11708
|
anyOf: {
|
|
11685
11709
|
elementNamePattern?: (({
|
|
@@ -11706,7 +11730,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
11706
11730
|
};
|
|
11707
11731
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11708
11732
|
groupName: string;
|
|
11709
|
-
newlinesInside?: number;
|
|
11733
|
+
newlinesInside?: ("ignore" | number);
|
|
11710
11734
|
order?: ("asc" | "desc");
|
|
11711
11735
|
elementNamePattern?: (({
|
|
11712
11736
|
pattern: string;
|
|
@@ -11725,13 +11749,14 @@ type PerfectionistSortModules = [] | [{
|
|
|
11725
11749
|
flags?: string;
|
|
11726
11750
|
} | string));
|
|
11727
11751
|
})[];
|
|
11752
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11728
11753
|
groups?: (string | [string, ...(string)[]] | {
|
|
11729
11754
|
newlinesBetween: ("ignore" | number);
|
|
11730
11755
|
} | {
|
|
11731
11756
|
group: (string | [string, ...(string)[]]);
|
|
11732
11757
|
commentAbove?: string;
|
|
11733
11758
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11734
|
-
newlinesInside?: number;
|
|
11759
|
+
newlinesInside?: ("ignore" | number);
|
|
11735
11760
|
order?: ("asc" | "desc");
|
|
11736
11761
|
})[];
|
|
11737
11762
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11778,7 +11803,7 @@ type PerfectionistSortNamedExports = {
|
|
|
11778
11803
|
};
|
|
11779
11804
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11780
11805
|
groupName: string;
|
|
11781
|
-
newlinesInside?: number;
|
|
11806
|
+
newlinesInside?: ("ignore" | number);
|
|
11782
11807
|
order?: ("asc" | "desc");
|
|
11783
11808
|
anyOf: {
|
|
11784
11809
|
elementNamePattern?: (({
|
|
@@ -11798,7 +11823,7 @@ type PerfectionistSortNamedExports = {
|
|
|
11798
11823
|
};
|
|
11799
11824
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11800
11825
|
groupName: string;
|
|
11801
|
-
newlinesInside?: number;
|
|
11826
|
+
newlinesInside?: ("ignore" | number);
|
|
11802
11827
|
order?: ("asc" | "desc");
|
|
11803
11828
|
elementNamePattern?: (({
|
|
11804
11829
|
pattern: string;
|
|
@@ -11810,13 +11835,14 @@ type PerfectionistSortNamedExports = {
|
|
|
11810
11835
|
modifiers?: ("value" | "type")[];
|
|
11811
11836
|
selector?: "export";
|
|
11812
11837
|
})[];
|
|
11838
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11813
11839
|
groups?: (string | [string, ...(string)[]] | {
|
|
11814
11840
|
newlinesBetween: ("ignore" | number);
|
|
11815
11841
|
} | {
|
|
11816
11842
|
group: (string | [string, ...(string)[]]);
|
|
11817
11843
|
commentAbove?: string;
|
|
11818
11844
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11819
|
-
newlinesInside?: number;
|
|
11845
|
+
newlinesInside?: ("ignore" | number);
|
|
11820
11846
|
order?: ("asc" | "desc");
|
|
11821
11847
|
})[];
|
|
11822
11848
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11864,7 +11890,7 @@ type PerfectionistSortNamedImports = {
|
|
|
11864
11890
|
};
|
|
11865
11891
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11866
11892
|
groupName: string;
|
|
11867
|
-
newlinesInside?: number;
|
|
11893
|
+
newlinesInside?: ("ignore" | number);
|
|
11868
11894
|
order?: ("asc" | "desc");
|
|
11869
11895
|
anyOf: {
|
|
11870
11896
|
elementNamePattern?: (({
|
|
@@ -11884,7 +11910,7 @@ type PerfectionistSortNamedImports = {
|
|
|
11884
11910
|
};
|
|
11885
11911
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11886
11912
|
groupName: string;
|
|
11887
|
-
newlinesInside?: number;
|
|
11913
|
+
newlinesInside?: ("ignore" | number);
|
|
11888
11914
|
order?: ("asc" | "desc");
|
|
11889
11915
|
elementNamePattern?: (({
|
|
11890
11916
|
pattern: string;
|
|
@@ -11896,13 +11922,14 @@ type PerfectionistSortNamedImports = {
|
|
|
11896
11922
|
modifiers?: ("value" | "type")[];
|
|
11897
11923
|
selector?: "import";
|
|
11898
11924
|
})[];
|
|
11925
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11899
11926
|
groups?: (string | [string, ...(string)[]] | {
|
|
11900
11927
|
newlinesBetween: ("ignore" | number);
|
|
11901
11928
|
} | {
|
|
11902
11929
|
group: (string | [string, ...(string)[]]);
|
|
11903
11930
|
commentAbove?: string;
|
|
11904
11931
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11905
|
-
newlinesInside?: number;
|
|
11932
|
+
newlinesInside?: ("ignore" | number);
|
|
11906
11933
|
order?: ("asc" | "desc");
|
|
11907
11934
|
})[];
|
|
11908
11935
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -11952,7 +11979,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11952
11979
|
};
|
|
11953
11980
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11954
11981
|
groupName: string;
|
|
11955
|
-
newlinesInside?: number;
|
|
11982
|
+
newlinesInside?: ("ignore" | number);
|
|
11956
11983
|
order?: ("asc" | "desc");
|
|
11957
11984
|
anyOf: {
|
|
11958
11985
|
elementNamePattern?: (({
|
|
@@ -11981,7 +12008,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
11981
12008
|
};
|
|
11982
12009
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11983
12010
|
groupName: string;
|
|
11984
|
-
newlinesInside?: number;
|
|
12011
|
+
newlinesInside?: ("ignore" | number);
|
|
11985
12012
|
order?: ("asc" | "desc");
|
|
11986
12013
|
elementNamePattern?: (({
|
|
11987
12014
|
pattern: string;
|
|
@@ -12001,13 +12028,14 @@ type PerfectionistSortObjectTypes = {
|
|
|
12001
12028
|
} | string));
|
|
12002
12029
|
sortBy?: ("name" | "value");
|
|
12003
12030
|
})[];
|
|
12031
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12004
12032
|
groups?: (string | [string, ...(string)[]] | {
|
|
12005
12033
|
newlinesBetween: ("ignore" | number);
|
|
12006
12034
|
} | {
|
|
12007
12035
|
group: (string | [string, ...(string)[]]);
|
|
12008
12036
|
commentAbove?: string;
|
|
12009
12037
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12010
|
-
newlinesInside?: number;
|
|
12038
|
+
newlinesInside?: ("ignore" | number);
|
|
12011
12039
|
order?: ("asc" | "desc");
|
|
12012
12040
|
})[];
|
|
12013
12041
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12083,7 +12111,7 @@ type PerfectionistSortObjects = {
|
|
|
12083
12111
|
};
|
|
12084
12112
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12085
12113
|
groupName: string;
|
|
12086
|
-
newlinesInside?: number;
|
|
12114
|
+
newlinesInside?: ("ignore" | number);
|
|
12087
12115
|
order?: ("asc" | "desc");
|
|
12088
12116
|
anyOf: {
|
|
12089
12117
|
elementNamePattern?: (({
|
|
@@ -12110,7 +12138,7 @@ type PerfectionistSortObjects = {
|
|
|
12110
12138
|
};
|
|
12111
12139
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12112
12140
|
groupName: string;
|
|
12113
|
-
newlinesInside?: number;
|
|
12141
|
+
newlinesInside?: ("ignore" | number);
|
|
12114
12142
|
order?: ("asc" | "desc");
|
|
12115
12143
|
elementNamePattern?: (({
|
|
12116
12144
|
pattern: string;
|
|
@@ -12129,13 +12157,14 @@ type PerfectionistSortObjects = {
|
|
|
12129
12157
|
flags?: string;
|
|
12130
12158
|
} | string));
|
|
12131
12159
|
})[];
|
|
12160
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12132
12161
|
groups?: (string | [string, ...(string)[]] | {
|
|
12133
12162
|
newlinesBetween: ("ignore" | number);
|
|
12134
12163
|
} | {
|
|
12135
12164
|
group: (string | [string, ...(string)[]]);
|
|
12136
12165
|
commentAbove?: string;
|
|
12137
12166
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12138
|
-
newlinesInside?: number;
|
|
12167
|
+
newlinesInside?: ("ignore" | number);
|
|
12139
12168
|
order?: ("asc" | "desc");
|
|
12140
12169
|
})[];
|
|
12141
12170
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12221,7 +12250,7 @@ type PerfectionistSortSets = {
|
|
|
12221
12250
|
};
|
|
12222
12251
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12223
12252
|
groupName: string;
|
|
12224
|
-
newlinesInside?: number;
|
|
12253
|
+
newlinesInside?: ("ignore" | number);
|
|
12225
12254
|
order?: ("asc" | "desc");
|
|
12226
12255
|
anyOf: {
|
|
12227
12256
|
elementNamePattern?: (({
|
|
@@ -12240,7 +12269,7 @@ type PerfectionistSortSets = {
|
|
|
12240
12269
|
};
|
|
12241
12270
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12242
12271
|
groupName: string;
|
|
12243
|
-
newlinesInside?: number;
|
|
12272
|
+
newlinesInside?: ("ignore" | number);
|
|
12244
12273
|
order?: ("asc" | "desc");
|
|
12245
12274
|
elementNamePattern?: (({
|
|
12246
12275
|
pattern: string;
|
|
@@ -12251,13 +12280,14 @@ type PerfectionistSortSets = {
|
|
|
12251
12280
|
} | string));
|
|
12252
12281
|
selector?: ("literal" | "spread");
|
|
12253
12282
|
})[];
|
|
12283
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12254
12284
|
groups?: (string | [string, ...(string)[]] | {
|
|
12255
12285
|
newlinesBetween: ("ignore" | number);
|
|
12256
12286
|
} | {
|
|
12257
12287
|
group: (string | [string, ...(string)[]]);
|
|
12258
12288
|
commentAbove?: string;
|
|
12259
12289
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12260
|
-
newlinesInside?: number;
|
|
12290
|
+
newlinesInside?: ("ignore" | number);
|
|
12261
12291
|
order?: ("asc" | "desc");
|
|
12262
12292
|
})[];
|
|
12263
12293
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12326,7 +12356,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
12326
12356
|
};
|
|
12327
12357
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12328
12358
|
groupName: string;
|
|
12329
|
-
newlinesInside?: number;
|
|
12359
|
+
newlinesInside?: ("ignore" | number);
|
|
12330
12360
|
order?: ("asc" | "desc");
|
|
12331
12361
|
anyOf: {
|
|
12332
12362
|
elementNamePattern?: (({
|
|
@@ -12345,7 +12375,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
12345
12375
|
};
|
|
12346
12376
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12347
12377
|
groupName: string;
|
|
12348
|
-
newlinesInside?: number;
|
|
12378
|
+
newlinesInside?: ("ignore" | number);
|
|
12349
12379
|
order?: ("asc" | "desc");
|
|
12350
12380
|
elementNamePattern?: (({
|
|
12351
12381
|
pattern: string;
|
|
@@ -12356,13 +12386,14 @@ type PerfectionistSortUnionTypes = {
|
|
|
12356
12386
|
} | string));
|
|
12357
12387
|
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12358
12388
|
})[];
|
|
12389
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12359
12390
|
groups?: (string | [string, ...(string)[]] | {
|
|
12360
12391
|
newlinesBetween: ("ignore" | number);
|
|
12361
12392
|
} | {
|
|
12362
12393
|
group: (string | [string, ...(string)[]]);
|
|
12363
12394
|
commentAbove?: string;
|
|
12364
12395
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12365
|
-
newlinesInside?: number;
|
|
12396
|
+
newlinesInside?: ("ignore" | number);
|
|
12366
12397
|
order?: ("asc" | "desc");
|
|
12367
12398
|
})[];
|
|
12368
12399
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12409,7 +12440,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12409
12440
|
};
|
|
12410
12441
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12411
12442
|
groupName: string;
|
|
12412
|
-
newlinesInside?: number;
|
|
12443
|
+
newlinesInside?: ("ignore" | number);
|
|
12413
12444
|
order?: ("asc" | "desc");
|
|
12414
12445
|
anyOf: {
|
|
12415
12446
|
elementNamePattern?: (({
|
|
@@ -12428,7 +12459,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12428
12459
|
};
|
|
12429
12460
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12430
12461
|
groupName: string;
|
|
12431
|
-
newlinesInside?: number;
|
|
12462
|
+
newlinesInside?: ("ignore" | number);
|
|
12432
12463
|
order?: ("asc" | "desc");
|
|
12433
12464
|
elementNamePattern?: (({
|
|
12434
12465
|
pattern: string;
|
|
@@ -12439,13 +12470,14 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12439
12470
|
} | string));
|
|
12440
12471
|
selector?: ("initialized" | "uninitialized");
|
|
12441
12472
|
})[];
|
|
12473
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12442
12474
|
groups?: (string | [string, ...(string)[]] | {
|
|
12443
12475
|
newlinesBetween: ("ignore" | number);
|
|
12444
12476
|
} | {
|
|
12445
12477
|
group: (string | [string, ...(string)[]]);
|
|
12446
12478
|
commentAbove?: string;
|
|
12447
12479
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12448
|
-
newlinesInside?: number;
|
|
12480
|
+
newlinesInside?: ("ignore" | number);
|
|
12449
12481
|
order?: ("asc" | "desc");
|
|
12450
12482
|
})[];
|
|
12451
12483
|
newlinesBetween?: ("ignore" | number);
|
|
@@ -12834,6 +12866,10 @@ type TestPreferExpectAssertions = [] | [{
|
|
|
12834
12866
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
12835
12867
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
12836
12868
|
}];
|
|
12869
|
+
// ----- test/prefer-import-in-mock -----
|
|
12870
|
+
type TestPreferImportInMock = [] | [{
|
|
12871
|
+
fixable?: boolean;
|
|
12872
|
+
}];
|
|
12837
12873
|
// ----- test/prefer-lowercase-title -----
|
|
12838
12874
|
type TestPreferLowercaseTitle = [] | [{
|
|
12839
12875
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -14642,7 +14678,7 @@ type YmlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
14642
14678
|
|
|
14643
14679
|
// Names of all the configs
|
|
14644
14680
|
|
|
14645
|
-
type ConfigNames = 'moso/astro/setup' | 'moso/astro/rules' | 'moso/eslint-comments' | 'moso/functional' | 'moso/functional/disable-type-aware' | 'eslint/ignores' | 'moso/imports' | 'moso/javascript' | 'moso/jsdoc' | 'moso/jsonc' | 'moso/jsx' | 'moso/nextjs/setup' | 'moso/nextjs/rules' | 'moso/node' | 'moso/perfectionist' | 'moso/promise' | 'moso/react' | 'moso/react/rules-type-aware' | 'moso/regexp' | 'moso/sort/package-json' | 'moso/sort/tsconfig-json' | 'moso/stylistic' | 'moso/test/setup' | 'moso/test/rules' | 'moso/toml/setup' | 'moso/toml/rules' | 'moso/typescript/setup' | 'moso/typescript/type-aware-parser' | 'moso/typescript/parser' | 'moso/typescript/rules' | 'moso/typescript/rules-type-aware' | 'moso/typescript/dts-overrides' | 'moso/typescript/test-overrides' | 'moso/typescript/javascript-overrides' | 'moso/unicorn' | 'moso/vue/setup' | 'moso/vue/rules' | 'moso/vue/rules-type-aware' | 'moso/yaml/setup' | 'moso/yaml/rules';
|
|
14681
|
+
type ConfigNames = 'moso/astro/setup' | 'moso/astro/rules' | 'moso/eslint-comments' | 'moso/functional' | 'moso/functional/disable-type-aware' | 'eslint/ignores' | 'moso/imports' | 'moso/javascript' | 'moso/jsdoc' | 'moso/jsonc' | 'moso/jsx/setup' | 'moso/jsx/rules' | 'moso/nextjs/setup' | 'moso/nextjs/rules' | 'moso/node' | 'moso/perfectionist' | 'moso/promise' | 'moso/react' | 'moso/react/rules-type-aware' | 'moso/regexp' | 'moso/sort/package-json' | 'moso/sort/tsconfig-json' | 'moso/stylistic' | 'moso/test/setup' | 'moso/test/rules' | 'moso/toml/setup' | 'moso/toml/rules' | 'moso/typescript/setup' | 'moso/typescript/type-aware-parser' | 'moso/typescript/parser' | 'moso/typescript/rules' | 'moso/typescript/rules-type-aware' | 'moso/typescript/dts-overrides' | 'moso/typescript/test-overrides' | 'moso/typescript/javascript-overrides' | 'moso/unicorn' | 'moso/vue/setup' | 'moso/vue/rules' | 'moso/vue/rules-type-aware' | 'moso/yaml/setup' | 'moso/yaml/rules';
|
|
14646
14682
|
//#endregion
|
|
14647
14683
|
//#region src/types.d.ts
|
|
14648
14684
|
type Awaitable<T> = Promise<T> | T;
|
|
@@ -14794,7 +14830,7 @@ type LanguageOptions = {
|
|
|
14794
14830
|
*
|
|
14795
14831
|
* @default true
|
|
14796
14832
|
*/
|
|
14797
|
-
jsx?: boolean;
|
|
14833
|
+
jsx?: boolean | (OptionsA11y & OptionsOverrides);
|
|
14798
14834
|
/**
|
|
14799
14835
|
* Enable TOML support.
|
|
14800
14836
|
*
|
|
@@ -15054,7 +15090,7 @@ declare const jsdoc: (options: Readonly<OptionsOverrides & Required<RequiredOpti
|
|
|
15054
15090
|
declare const jsonc: (options: Readonly<OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
15055
15091
|
//#endregion
|
|
15056
15092
|
//#region src/configs/jsx.d.ts
|
|
15057
|
-
declare const jsx: () => TypedFlatConfigItem[]
|
|
15093
|
+
declare const jsx: (options: Readonly<OptionsA11y & OptionsLessOpinionated & OptionsOverrides & Required<OptionsFiles & RequiredOptionsStylistic>>) => Promise<TypedFlatConfigItem[]>;
|
|
15058
15094
|
//#endregion
|
|
15059
15095
|
//#region src/configs/nextjs.d.ts
|
|
15060
15096
|
declare const nextjs: (options: Readonly<OptionsFiles & OptionsOverrides>) => Promise<TypedFlatConfigItem[]>;
|