@quentinhsu/biome-config 0.3.3 → 0.3.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/build.mjs +59 -59
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +59 -59
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +10 -9
- package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +25 -24
- package/dist/types/src/generated/biome/{no-misrefactored-shorthand-assign-options.d.ts → no-label-var-options.d.ts} +55 -95
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → no-magic-numbers-options.d.ts} +17 -17
- package/dist/types/src/generated/biome/{rule-with-no-document-import-in-page-options.d.ts → rule-with-no-confusing-labels-options.d.ts} +175 -87
- package/dist/types/src/generated/biome/{rule-with-no-implicit-coercions-options.d.ts → rule-with-no-excessive-nested-test-suites-options.d.ts} +182 -182
- package/dist/types/src/generated/biome/{use-consistent-arrow-return-options.d.ts → rule-with-no-unused-expressions-options.d.ts} +202 -206
- package/dist/types/src/generated/biome/schema.d.ts +11 -11
- package/dist/types/src/generated/biome/{nursery.d.ts → use-consistent-object-definitions-configuration.d.ts} +473 -192
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → use-focusable-interactive-configuration.d.ts} +16 -16
- package/dist/types/src/generated/biome/{no-empty-source-configuration.d.ts → use-qwik-classlist-configuration.d.ts} +26 -26
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → use-shorthand-assign-configuration.d.ts} +19 -450
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +34 -34
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import type { ArrowParentheses, AttributePosition, Bool, BracketSameLine, BracketSpacing, Expand, FixKind, Glob, IndentScriptAndStyle, IndentStyle, IndentWidth, LineEnding, LineWidth, MaxSize, NoAccessKeyOptions, NoAdjacentSpacesInRegexOptions, NoArgumentsOptions, NoAriaHiddenOnFocusableOptions, NoAriaUnsupportedElementsOptions, NoAutofocusOptions, NoBannedTypesOptions, NoCommaOperatorOptions, NoDistractingElementsOptions, NoEmptyTypeParametersOptions, NoExcessiveCognitiveComplexityOptions, NoExcessiveLinesPerFunctionOptions,
|
|
1
|
+
import type { ArrowParentheses, AttributePosition, Bool, BracketSameLine, BracketSpacing, Expand, FixKind, Glob, IndentScriptAndStyle, IndentStyle, IndentWidth, LineEnding, LineWidth, MaxSize, NoAccessKeyOptions, NoAdjacentSpacesInRegexOptions, NoArgumentsOptions, NoAriaHiddenOnFocusableOptions, NoAriaUnsupportedElementsOptions, NoAutofocusOptions, NoBannedTypesOptions, NoCommaOperatorOptions, NoDistractingElementsOptions, NoEmptyTypeParametersOptions, NoExcessiveCognitiveComplexityOptions, NoExcessiveLinesPerFunctionOptions, NoHeaderScopeOptions, NoInteractiveElementToNoninteractiveRoleOptions, NoLabelWithoutControlOptions, NoNoninteractiveElementInteractionsOptions, NoNoninteractiveElementToInteractiveRoleOptions, NoNoninteractiveTabindexOptions, NoPositiveTabindexOptions, NoRedundantAltOptions, NoRedundantRolesOptions, NoStaticElementInteractionsOptions, NoSvgWithoutTitleOptions, OperatorLinebreak, QuoteProperties, QuoteStyle, RuleAssistPlainConfiguration, RuleDomainValue, RulePlainConfiguration, SelfCloseVoidElements, Semicolons, SortOrder, TrailingCommas, TrailingCommas2, UseAltTextOptions, UseAnchorContentOptions, UseAriaActivedescendantWithTabindexOptions, UseAriaPropsForRoleOptions, UseAriaPropsSupportedByRoleOptions, UseButtonTypeOptions, UseFocusableInteractiveOptions, UseGenericFontNamesOptions, UseHeadingContentOptions, UseHtmlLangOptions, UseIframeTitleOptions, UseKeyWithClickEventsOptions, UseKeyWithMouseEventsOptions, UseMediaCaptionOptions, UseSemanticElementsOptions, UseSortedPropertiesOptions, UseValidAnchorOptions, UseValidAriaPropsOptions, UseValidAriaRoleOptions, UseValidAriaValuesOptions, UseValidAutocompleteOptions, UseValidLangOptions, WhitespaceSensitivity } from './schema.ts';
|
|
2
|
+
export interface NoLabelVarOptions {
|
|
3
|
+
}
|
|
4
|
+
export interface NoMisleadingCharacterClassOptions {
|
|
5
|
+
}
|
|
6
|
+
export interface NoMisleadingInstantiatorOptions {
|
|
7
|
+
}
|
|
8
|
+
export interface NoMisplacedAssertionOptions {
|
|
9
|
+
}
|
|
2
10
|
export interface NoMisrefactoredShorthandAssignOptions {
|
|
3
11
|
}
|
|
4
12
|
export interface NoNonNullAssertedOptionalChainOptions {
|
|
@@ -97,10 +105,10 @@ export type ImportSourceGlob = Glob;
|
|
|
97
105
|
export type NormalizedGlob = Glob;
|
|
98
106
|
export type OverrideGlobs = Glob[];
|
|
99
107
|
export interface UseSortedAttributesOptions {
|
|
100
|
-
sortOrder?: SortOrder
|
|
108
|
+
sortOrder?: SortOrder | null;
|
|
101
109
|
}
|
|
102
110
|
export interface UseSortedKeysOptions {
|
|
103
|
-
sortOrder?: SortOrder
|
|
111
|
+
sortOrder?: SortOrder | null;
|
|
104
112
|
}
|
|
105
113
|
export interface RuleAssistWithOptionsFor_UseSortedPropertiesOptions {
|
|
106
114
|
/**
|
|
@@ -570,7 +578,7 @@ export interface RuleWithNoAccessKeyOptions {
|
|
|
570
578
|
/**
|
|
571
579
|
* Rule's options
|
|
572
580
|
*/
|
|
573
|
-
options
|
|
581
|
+
options?: NoAccessKeyOptions;
|
|
574
582
|
}
|
|
575
583
|
export interface RuleWithNoAriaHiddenOnFocusableOptions {
|
|
576
584
|
/**
|
|
@@ -584,7 +592,7 @@ export interface RuleWithNoAriaHiddenOnFocusableOptions {
|
|
|
584
592
|
/**
|
|
585
593
|
* Rule's options
|
|
586
594
|
*/
|
|
587
|
-
options
|
|
595
|
+
options?: NoAriaHiddenOnFocusableOptions;
|
|
588
596
|
}
|
|
589
597
|
export interface RuleWithNoAriaUnsupportedElementsOptions {
|
|
590
598
|
/**
|
|
@@ -598,7 +606,7 @@ export interface RuleWithNoAriaUnsupportedElementsOptions {
|
|
|
598
606
|
/**
|
|
599
607
|
* Rule's options
|
|
600
608
|
*/
|
|
601
|
-
options
|
|
609
|
+
options?: NoAriaUnsupportedElementsOptions;
|
|
602
610
|
}
|
|
603
611
|
export interface RuleWithNoAutofocusOptions {
|
|
604
612
|
/**
|
|
@@ -612,7 +620,7 @@ export interface RuleWithNoAutofocusOptions {
|
|
|
612
620
|
/**
|
|
613
621
|
* Rule's options
|
|
614
622
|
*/
|
|
615
|
-
options
|
|
623
|
+
options?: NoAutofocusOptions;
|
|
616
624
|
}
|
|
617
625
|
export interface RuleWithNoDistractingElementsOptions {
|
|
618
626
|
/**
|
|
@@ -626,7 +634,7 @@ export interface RuleWithNoDistractingElementsOptions {
|
|
|
626
634
|
/**
|
|
627
635
|
* Rule's options
|
|
628
636
|
*/
|
|
629
|
-
options
|
|
637
|
+
options?: NoDistractingElementsOptions;
|
|
630
638
|
}
|
|
631
639
|
export interface RuleWithNoHeaderScopeOptions {
|
|
632
640
|
/**
|
|
@@ -640,7 +648,7 @@ export interface RuleWithNoHeaderScopeOptions {
|
|
|
640
648
|
/**
|
|
641
649
|
* Rule's options
|
|
642
650
|
*/
|
|
643
|
-
options
|
|
651
|
+
options?: NoHeaderScopeOptions;
|
|
644
652
|
}
|
|
645
653
|
export interface RuleWithNoInteractiveElementToNoninteractiveRoleOptions {
|
|
646
654
|
/**
|
|
@@ -654,7 +662,7 @@ export interface RuleWithNoInteractiveElementToNoninteractiveRoleOptions {
|
|
|
654
662
|
/**
|
|
655
663
|
* Rule's options
|
|
656
664
|
*/
|
|
657
|
-
options
|
|
665
|
+
options?: NoInteractiveElementToNoninteractiveRoleOptions;
|
|
658
666
|
}
|
|
659
667
|
export interface RuleWithNoLabelWithoutControlOptions {
|
|
660
668
|
/**
|
|
@@ -664,7 +672,7 @@ export interface RuleWithNoLabelWithoutControlOptions {
|
|
|
664
672
|
/**
|
|
665
673
|
* Rule's options
|
|
666
674
|
*/
|
|
667
|
-
options
|
|
675
|
+
options?: NoLabelWithoutControlOptions;
|
|
668
676
|
}
|
|
669
677
|
export interface RuleWithNoNoninteractiveElementInteractionsOptions {
|
|
670
678
|
/**
|
|
@@ -674,7 +682,7 @@ export interface RuleWithNoNoninteractiveElementInteractionsOptions {
|
|
|
674
682
|
/**
|
|
675
683
|
* Rule's options
|
|
676
684
|
*/
|
|
677
|
-
options
|
|
685
|
+
options?: NoNoninteractiveElementInteractionsOptions;
|
|
678
686
|
}
|
|
679
687
|
export interface RuleWithNoNoninteractiveElementToInteractiveRoleOptions {
|
|
680
688
|
/**
|
|
@@ -688,7 +696,7 @@ export interface RuleWithNoNoninteractiveElementToInteractiveRoleOptions {
|
|
|
688
696
|
/**
|
|
689
697
|
* Rule's options
|
|
690
698
|
*/
|
|
691
|
-
options
|
|
699
|
+
options?: NoNoninteractiveElementToInteractiveRoleOptions;
|
|
692
700
|
}
|
|
693
701
|
export interface RuleWithNoNoninteractiveTabindexOptions {
|
|
694
702
|
/**
|
|
@@ -702,7 +710,7 @@ export interface RuleWithNoNoninteractiveTabindexOptions {
|
|
|
702
710
|
/**
|
|
703
711
|
* Rule's options
|
|
704
712
|
*/
|
|
705
|
-
options
|
|
713
|
+
options?: NoNoninteractiveTabindexOptions;
|
|
706
714
|
}
|
|
707
715
|
export interface RuleWithNoPositiveTabindexOptions {
|
|
708
716
|
/**
|
|
@@ -716,7 +724,7 @@ export interface RuleWithNoPositiveTabindexOptions {
|
|
|
716
724
|
/**
|
|
717
725
|
* Rule's options
|
|
718
726
|
*/
|
|
719
|
-
options
|
|
727
|
+
options?: NoPositiveTabindexOptions;
|
|
720
728
|
}
|
|
721
729
|
export interface RuleWithNoRedundantAltOptions {
|
|
722
730
|
/**
|
|
@@ -726,7 +734,7 @@ export interface RuleWithNoRedundantAltOptions {
|
|
|
726
734
|
/**
|
|
727
735
|
* Rule's options
|
|
728
736
|
*/
|
|
729
|
-
options
|
|
737
|
+
options?: NoRedundantAltOptions;
|
|
730
738
|
}
|
|
731
739
|
export interface RuleWithNoRedundantRolesOptions {
|
|
732
740
|
/**
|
|
@@ -740,7 +748,7 @@ export interface RuleWithNoRedundantRolesOptions {
|
|
|
740
748
|
/**
|
|
741
749
|
* Rule's options
|
|
742
750
|
*/
|
|
743
|
-
options
|
|
751
|
+
options?: NoRedundantRolesOptions;
|
|
744
752
|
}
|
|
745
753
|
export interface RuleWithNoStaticElementInteractionsOptions {
|
|
746
754
|
/**
|
|
@@ -750,7 +758,7 @@ export interface RuleWithNoStaticElementInteractionsOptions {
|
|
|
750
758
|
/**
|
|
751
759
|
* Rule's options
|
|
752
760
|
*/
|
|
753
|
-
options
|
|
761
|
+
options?: NoStaticElementInteractionsOptions;
|
|
754
762
|
}
|
|
755
763
|
export interface RuleWithNoSvgWithoutTitleOptions {
|
|
756
764
|
/**
|
|
@@ -760,7 +768,7 @@ export interface RuleWithNoSvgWithoutTitleOptions {
|
|
|
760
768
|
/**
|
|
761
769
|
* Rule's options
|
|
762
770
|
*/
|
|
763
|
-
options
|
|
771
|
+
options?: NoSvgWithoutTitleOptions;
|
|
764
772
|
}
|
|
765
773
|
export interface RuleWithUseAltTextOptions {
|
|
766
774
|
/**
|
|
@@ -770,7 +778,7 @@ export interface RuleWithUseAltTextOptions {
|
|
|
770
778
|
/**
|
|
771
779
|
* Rule's options
|
|
772
780
|
*/
|
|
773
|
-
options
|
|
781
|
+
options?: UseAltTextOptions;
|
|
774
782
|
}
|
|
775
783
|
export interface RuleWithUseAnchorContentOptions {
|
|
776
784
|
/**
|
|
@@ -784,7 +792,7 @@ export interface RuleWithUseAnchorContentOptions {
|
|
|
784
792
|
/**
|
|
785
793
|
* Rule's options
|
|
786
794
|
*/
|
|
787
|
-
options
|
|
795
|
+
options?: UseAnchorContentOptions;
|
|
788
796
|
}
|
|
789
797
|
export interface RuleWithUseAriaActivedescendantWithTabindexOptions {
|
|
790
798
|
/**
|
|
@@ -798,7 +806,7 @@ export interface RuleWithUseAriaActivedescendantWithTabindexOptions {
|
|
|
798
806
|
/**
|
|
799
807
|
* Rule's options
|
|
800
808
|
*/
|
|
801
|
-
options
|
|
809
|
+
options?: UseAriaActivedescendantWithTabindexOptions;
|
|
802
810
|
}
|
|
803
811
|
export interface RuleWithUseAriaPropsForRoleOptions {
|
|
804
812
|
/**
|
|
@@ -808,7 +816,7 @@ export interface RuleWithUseAriaPropsForRoleOptions {
|
|
|
808
816
|
/**
|
|
809
817
|
* Rule's options
|
|
810
818
|
*/
|
|
811
|
-
options
|
|
819
|
+
options?: UseAriaPropsForRoleOptions;
|
|
812
820
|
}
|
|
813
821
|
export interface RuleWithUseAriaPropsSupportedByRoleOptions {
|
|
814
822
|
/**
|
|
@@ -818,7 +826,7 @@ export interface RuleWithUseAriaPropsSupportedByRoleOptions {
|
|
|
818
826
|
/**
|
|
819
827
|
* Rule's options
|
|
820
828
|
*/
|
|
821
|
-
options
|
|
829
|
+
options?: UseAriaPropsSupportedByRoleOptions;
|
|
822
830
|
}
|
|
823
831
|
export interface RuleWithUseButtonTypeOptions {
|
|
824
832
|
/**
|
|
@@ -828,7 +836,7 @@ export interface RuleWithUseButtonTypeOptions {
|
|
|
828
836
|
/**
|
|
829
837
|
* Rule's options
|
|
830
838
|
*/
|
|
831
|
-
options
|
|
839
|
+
options?: UseButtonTypeOptions;
|
|
832
840
|
}
|
|
833
841
|
export interface RuleWithUseFocusableInteractiveOptions {
|
|
834
842
|
/**
|
|
@@ -838,7 +846,7 @@ export interface RuleWithUseFocusableInteractiveOptions {
|
|
|
838
846
|
/**
|
|
839
847
|
* Rule's options
|
|
840
848
|
*/
|
|
841
|
-
options
|
|
849
|
+
options?: UseFocusableInteractiveOptions;
|
|
842
850
|
}
|
|
843
851
|
export interface RuleWithUseGenericFontNamesOptions {
|
|
844
852
|
/**
|
|
@@ -848,7 +856,7 @@ export interface RuleWithUseGenericFontNamesOptions {
|
|
|
848
856
|
/**
|
|
849
857
|
* Rule's options
|
|
850
858
|
*/
|
|
851
|
-
options
|
|
859
|
+
options?: UseGenericFontNamesOptions;
|
|
852
860
|
}
|
|
853
861
|
export interface RuleWithUseHeadingContentOptions {
|
|
854
862
|
/**
|
|
@@ -858,7 +866,7 @@ export interface RuleWithUseHeadingContentOptions {
|
|
|
858
866
|
/**
|
|
859
867
|
* Rule's options
|
|
860
868
|
*/
|
|
861
|
-
options
|
|
869
|
+
options?: UseHeadingContentOptions;
|
|
862
870
|
}
|
|
863
871
|
export interface RuleWithUseHtmlLangOptions {
|
|
864
872
|
/**
|
|
@@ -868,7 +876,7 @@ export interface RuleWithUseHtmlLangOptions {
|
|
|
868
876
|
/**
|
|
869
877
|
* Rule's options
|
|
870
878
|
*/
|
|
871
|
-
options
|
|
879
|
+
options?: UseHtmlLangOptions;
|
|
872
880
|
}
|
|
873
881
|
export interface RuleWithUseIframeTitleOptions {
|
|
874
882
|
/**
|
|
@@ -878,7 +886,7 @@ export interface RuleWithUseIframeTitleOptions {
|
|
|
878
886
|
/**
|
|
879
887
|
* Rule's options
|
|
880
888
|
*/
|
|
881
|
-
options
|
|
889
|
+
options?: UseIframeTitleOptions;
|
|
882
890
|
}
|
|
883
891
|
export interface RuleWithUseKeyWithClickEventsOptions {
|
|
884
892
|
/**
|
|
@@ -888,7 +896,7 @@ export interface RuleWithUseKeyWithClickEventsOptions {
|
|
|
888
896
|
/**
|
|
889
897
|
* Rule's options
|
|
890
898
|
*/
|
|
891
|
-
options
|
|
899
|
+
options?: UseKeyWithClickEventsOptions;
|
|
892
900
|
}
|
|
893
901
|
export interface RuleWithUseKeyWithMouseEventsOptions {
|
|
894
902
|
/**
|
|
@@ -898,7 +906,7 @@ export interface RuleWithUseKeyWithMouseEventsOptions {
|
|
|
898
906
|
/**
|
|
899
907
|
* Rule's options
|
|
900
908
|
*/
|
|
901
|
-
options
|
|
909
|
+
options?: UseKeyWithMouseEventsOptions;
|
|
902
910
|
}
|
|
903
911
|
export interface RuleWithUseMediaCaptionOptions {
|
|
904
912
|
/**
|
|
@@ -908,7 +916,7 @@ export interface RuleWithUseMediaCaptionOptions {
|
|
|
908
916
|
/**
|
|
909
917
|
* Rule's options
|
|
910
918
|
*/
|
|
911
|
-
options
|
|
919
|
+
options?: UseMediaCaptionOptions;
|
|
912
920
|
}
|
|
913
921
|
export interface RuleWithUseSemanticElementsOptions {
|
|
914
922
|
/**
|
|
@@ -918,7 +926,7 @@ export interface RuleWithUseSemanticElementsOptions {
|
|
|
918
926
|
/**
|
|
919
927
|
* Rule's options
|
|
920
928
|
*/
|
|
921
|
-
options
|
|
929
|
+
options?: UseSemanticElementsOptions;
|
|
922
930
|
}
|
|
923
931
|
export interface RuleWithUseValidAnchorOptions {
|
|
924
932
|
/**
|
|
@@ -928,7 +936,7 @@ export interface RuleWithUseValidAnchorOptions {
|
|
|
928
936
|
/**
|
|
929
937
|
* Rule's options
|
|
930
938
|
*/
|
|
931
|
-
options
|
|
939
|
+
options?: UseValidAnchorOptions;
|
|
932
940
|
}
|
|
933
941
|
export interface RuleWithUseValidAriaPropsOptions {
|
|
934
942
|
/**
|
|
@@ -942,7 +950,7 @@ export interface RuleWithUseValidAriaPropsOptions {
|
|
|
942
950
|
/**
|
|
943
951
|
* Rule's options
|
|
944
952
|
*/
|
|
945
|
-
options
|
|
953
|
+
options?: UseValidAriaPropsOptions;
|
|
946
954
|
}
|
|
947
955
|
export interface RuleWithUseValidAriaRoleOptions {
|
|
948
956
|
/**
|
|
@@ -956,7 +964,7 @@ export interface RuleWithUseValidAriaRoleOptions {
|
|
|
956
964
|
/**
|
|
957
965
|
* Rule's options
|
|
958
966
|
*/
|
|
959
|
-
options
|
|
967
|
+
options?: UseValidAriaRoleOptions;
|
|
960
968
|
}
|
|
961
969
|
export interface RuleWithUseValidAriaValuesOptions {
|
|
962
970
|
/**
|
|
@@ -966,7 +974,7 @@ export interface RuleWithUseValidAriaValuesOptions {
|
|
|
966
974
|
/**
|
|
967
975
|
* Rule's options
|
|
968
976
|
*/
|
|
969
|
-
options
|
|
977
|
+
options?: UseValidAriaValuesOptions;
|
|
970
978
|
}
|
|
971
979
|
export interface RuleWithUseValidAutocompleteOptions {
|
|
972
980
|
/**
|
|
@@ -976,7 +984,7 @@ export interface RuleWithUseValidAutocompleteOptions {
|
|
|
976
984
|
/**
|
|
977
985
|
* Rule's options
|
|
978
986
|
*/
|
|
979
|
-
options
|
|
987
|
+
options?: UseValidAutocompleteOptions;
|
|
980
988
|
}
|
|
981
989
|
export interface RuleWithUseValidLangOptions {
|
|
982
990
|
/**
|
|
@@ -986,7 +994,7 @@ export interface RuleWithUseValidLangOptions {
|
|
|
986
994
|
/**
|
|
987
995
|
* Rule's options
|
|
988
996
|
*/
|
|
989
|
-
options
|
|
997
|
+
options?: UseValidLangOptions;
|
|
990
998
|
}
|
|
991
999
|
export interface RuleWithNoAdjacentSpacesInRegexOptions {
|
|
992
1000
|
/**
|
|
@@ -1000,7 +1008,7 @@ export interface RuleWithNoAdjacentSpacesInRegexOptions {
|
|
|
1000
1008
|
/**
|
|
1001
1009
|
* Rule's options
|
|
1002
1010
|
*/
|
|
1003
|
-
options
|
|
1011
|
+
options?: NoAdjacentSpacesInRegexOptions;
|
|
1004
1012
|
}
|
|
1005
1013
|
export interface RuleWithNoArgumentsOptions {
|
|
1006
1014
|
/**
|
|
@@ -1010,7 +1018,7 @@ export interface RuleWithNoArgumentsOptions {
|
|
|
1010
1018
|
/**
|
|
1011
1019
|
* Rule's options
|
|
1012
1020
|
*/
|
|
1013
|
-
options
|
|
1021
|
+
options?: NoArgumentsOptions;
|
|
1014
1022
|
}
|
|
1015
1023
|
export interface RuleWithNoBannedTypesOptions {
|
|
1016
1024
|
/**
|
|
@@ -1024,7 +1032,7 @@ export interface RuleWithNoBannedTypesOptions {
|
|
|
1024
1032
|
/**
|
|
1025
1033
|
* Rule's options
|
|
1026
1034
|
*/
|
|
1027
|
-
options
|
|
1035
|
+
options?: NoBannedTypesOptions;
|
|
1028
1036
|
}
|
|
1029
1037
|
export interface RuleWithNoCommaOperatorOptions {
|
|
1030
1038
|
/**
|
|
@@ -1034,7 +1042,7 @@ export interface RuleWithNoCommaOperatorOptions {
|
|
|
1034
1042
|
/**
|
|
1035
1043
|
* Rule's options
|
|
1036
1044
|
*/
|
|
1037
|
-
options
|
|
1045
|
+
options?: NoCommaOperatorOptions;
|
|
1038
1046
|
}
|
|
1039
1047
|
export interface RuleWithNoEmptyTypeParametersOptions {
|
|
1040
1048
|
/**
|
|
@@ -1044,7 +1052,7 @@ export interface RuleWithNoEmptyTypeParametersOptions {
|
|
|
1044
1052
|
/**
|
|
1045
1053
|
* Rule's options
|
|
1046
1054
|
*/
|
|
1047
|
-
options
|
|
1055
|
+
options?: NoEmptyTypeParametersOptions;
|
|
1048
1056
|
}
|
|
1049
1057
|
export interface RuleWithNoExcessiveCognitiveComplexityOptions {
|
|
1050
1058
|
/**
|
|
@@ -1054,7 +1062,7 @@ export interface RuleWithNoExcessiveCognitiveComplexityOptions {
|
|
|
1054
1062
|
/**
|
|
1055
1063
|
* Rule's options
|
|
1056
1064
|
*/
|
|
1057
|
-
options
|
|
1065
|
+
options?: NoExcessiveCognitiveComplexityOptions;
|
|
1058
1066
|
}
|
|
1059
1067
|
export interface RuleWithNoExcessiveLinesPerFunctionOptions {
|
|
1060
1068
|
/**
|
|
@@ -1064,53 +1072,5 @@ export interface RuleWithNoExcessiveLinesPerFunctionOptions {
|
|
|
1064
1072
|
/**
|
|
1065
1073
|
* Rule's options
|
|
1066
1074
|
*/
|
|
1067
|
-
options
|
|
1068
|
-
}
|
|
1069
|
-
export interface RuleWithNoExcessiveNestedTestSuitesOptions {
|
|
1070
|
-
/**
|
|
1071
|
-
* The severity of the emitted diagnostics by the rule
|
|
1072
|
-
*/
|
|
1073
|
-
level: RulePlainConfiguration;
|
|
1074
|
-
/**
|
|
1075
|
-
* Rule's options
|
|
1076
|
-
*/
|
|
1077
|
-
options: NoExcessiveNestedTestSuitesOptions;
|
|
1078
|
-
}
|
|
1079
|
-
export interface RuleWithNoExtraBooleanCastOptions {
|
|
1080
|
-
/**
|
|
1081
|
-
* The kind of the code actions emitted by the rule
|
|
1082
|
-
*/
|
|
1083
|
-
fix?: FixKind | null;
|
|
1084
|
-
/**
|
|
1085
|
-
* The severity of the emitted diagnostics by the rule
|
|
1086
|
-
*/
|
|
1087
|
-
level: RulePlainConfiguration;
|
|
1088
|
-
/**
|
|
1089
|
-
* Rule's options
|
|
1090
|
-
*/
|
|
1091
|
-
options: NoExtraBooleanCastOptions;
|
|
1092
|
-
}
|
|
1093
|
-
export interface RuleWithNoFlatMapIdentityOptions {
|
|
1094
|
-
/**
|
|
1095
|
-
* The kind of the code actions emitted by the rule
|
|
1096
|
-
*/
|
|
1097
|
-
fix?: FixKind | null;
|
|
1098
|
-
/**
|
|
1099
|
-
* The severity of the emitted diagnostics by the rule
|
|
1100
|
-
*/
|
|
1101
|
-
level: RulePlainConfiguration;
|
|
1102
|
-
/**
|
|
1103
|
-
* Rule's options
|
|
1104
|
-
*/
|
|
1105
|
-
options: NoFlatMapIdentityOptions;
|
|
1106
|
-
}
|
|
1107
|
-
export interface RuleWithNoForEachOptions {
|
|
1108
|
-
/**
|
|
1109
|
-
* The severity of the emitted diagnostics by the rule
|
|
1110
|
-
*/
|
|
1111
|
-
level: RulePlainConfiguration;
|
|
1112
|
-
/**
|
|
1113
|
-
* Rule's options
|
|
1114
|
-
*/
|
|
1115
|
-
options: NoForEachOptions;
|
|
1075
|
+
options?: NoExcessiveLinesPerFunctionOptions;
|
|
1116
1076
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export interface NoMagicNumbersOptions {
|
|
2
|
+
}
|
|
3
|
+
export interface NoNamespaceOptions {
|
|
4
|
+
}
|
|
5
|
+
export interface NoNegationElseOptions {
|
|
6
|
+
}
|
|
7
|
+
export interface NoNestedTernaryOptions {
|
|
8
|
+
}
|
|
1
9
|
export interface NoNonNullAssertionOptions {
|
|
2
10
|
}
|
|
3
11
|
/**
|
|
@@ -14,7 +22,7 @@ export interface NoRestrictedGlobalsOptions {
|
|
|
14
22
|
*/
|
|
15
23
|
deniedGlobals?: {
|
|
16
24
|
[k: string]: string;
|
|
17
|
-
};
|
|
25
|
+
} | null;
|
|
18
26
|
}
|
|
19
27
|
export interface PathOptions {
|
|
20
28
|
/**
|
|
@@ -63,11 +71,11 @@ export interface UseComponentExportOnlyModulesOptions {
|
|
|
63
71
|
/**
|
|
64
72
|
* Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
|
|
65
73
|
*/
|
|
66
|
-
allowConstantExport?: boolean;
|
|
74
|
+
allowConstantExport?: boolean | null;
|
|
67
75
|
/**
|
|
68
76
|
* A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
|
|
69
77
|
*/
|
|
70
|
-
allowExportNames?: string[];
|
|
78
|
+
allowExportNames?: string[] | null;
|
|
71
79
|
}
|
|
72
80
|
export type ConsistentArrayType = 'shorthand' | 'generic';
|
|
73
81
|
export interface UseConsistentBuiltinInstantiationOptions {
|
|
@@ -136,10 +144,10 @@ export interface UseReadonlyClassPropertiesOptions {
|
|
|
136
144
|
/**
|
|
137
145
|
* When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
|
|
138
146
|
*/
|
|
139
|
-
checkAllProperties?: boolean;
|
|
147
|
+
checkAllProperties?: boolean | null;
|
|
140
148
|
}
|
|
141
149
|
export interface UseSelfClosingElementsOptions {
|
|
142
|
-
ignoreHtmlElements?: boolean;
|
|
150
|
+
ignoreHtmlElements?: boolean | null;
|
|
143
151
|
}
|
|
144
152
|
export interface UseShorthandAssignOptions {
|
|
145
153
|
}
|
|
@@ -175,7 +183,7 @@ export interface NoBitwiseOperatorsOptions {
|
|
|
175
183
|
/**
|
|
176
184
|
* Allows a list of bitwise operators to be used as exceptions.
|
|
177
185
|
*/
|
|
178
|
-
allow?: string[];
|
|
186
|
+
allow?: string[] | null;
|
|
179
187
|
}
|
|
180
188
|
export interface NoCatchAssignOptions {
|
|
181
189
|
}
|
|
@@ -189,7 +197,7 @@ export interface NoConfusingLabelsOptions {
|
|
|
189
197
|
/**
|
|
190
198
|
* A list of (non-confusing) labels that should be allowed
|
|
191
199
|
*/
|
|
192
|
-
allowedLabels?: string[];
|
|
200
|
+
allowedLabels?: string[] | null;
|
|
193
201
|
}
|
|
194
202
|
export interface NoConfusingVoidTypeOptions {
|
|
195
203
|
}
|
|
@@ -197,7 +205,7 @@ export interface NoConsoleOptions {
|
|
|
197
205
|
/**
|
|
198
206
|
* Allowed calls on the console object.
|
|
199
207
|
*/
|
|
200
|
-
allow?: string[];
|
|
208
|
+
allow?: string[] | null;
|
|
201
209
|
}
|
|
202
210
|
export interface NoConstEnumOptions {
|
|
203
211
|
}
|
|
@@ -217,7 +225,7 @@ export interface NoDoubleEqualsOptions {
|
|
|
217
225
|
*
|
|
218
226
|
* If `false`, no such exception will be made.
|
|
219
227
|
*/
|
|
220
|
-
ignoreNull?: boolean;
|
|
228
|
+
ignoreNull?: boolean | null;
|
|
221
229
|
}
|
|
222
230
|
export interface NoDuplicateAtImportRulesOptions {
|
|
223
231
|
}
|
|
@@ -281,11 +289,3 @@ export interface NoImportantInKeyframeOptions {
|
|
|
281
289
|
}
|
|
282
290
|
export interface NoIrregularWhitespaceOptions {
|
|
283
291
|
}
|
|
284
|
-
export interface NoLabelVarOptions {
|
|
285
|
-
}
|
|
286
|
-
export interface NoMisleadingCharacterClassOptions {
|
|
287
|
-
}
|
|
288
|
-
export interface NoMisleadingInstantiatorOptions {
|
|
289
|
-
}
|
|
290
|
-
export interface NoMisplacedAssertionOptions {
|
|
291
|
-
}
|