@storm-software/eslint 0.76.1 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rules.d.ts CHANGED
@@ -791,513 +791,6 @@ export interface RuleOptions {
791
791
  * @see https://github.com/prettier/eslint-plugin-prettier#options
792
792
  */
793
793
  'prettier/prettier'?: Linter.RuleEntry<PrettierPrettier>
794
- /**
795
- * Enforces consistent naming for boolean props
796
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
797
- */
798
- 'react/boolean-prop-naming'?: Linter.RuleEntry<ReactBooleanPropNaming>
799
- /**
800
- * Disallow usage of `button` elements without an explicit `type` attribute
801
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/button-has-type.md
802
- */
803
- 'react/button-has-type'?: Linter.RuleEntry<ReactButtonHasType>
804
- /**
805
- * Enforce using `onChange` or `readonly` attribute when `checked` is used
806
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/checked-requires-onchange-or-readonly.md
807
- */
808
- 'react/checked-requires-onchange-or-readonly'?: Linter.RuleEntry<ReactCheckedRequiresOnchangeOrReadonly>
809
- /**
810
- * Enforce all defaultProps have a corresponding non-required PropType
811
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/default-props-match-prop-types.md
812
- */
813
- 'react/default-props-match-prop-types'?: Linter.RuleEntry<ReactDefaultPropsMatchPropTypes>
814
- /**
815
- * Enforce consistent usage of destructuring assignment of props, state, and context
816
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/destructuring-assignment.md
817
- */
818
- 'react/destructuring-assignment'?: Linter.RuleEntry<ReactDestructuringAssignment>
819
- /**
820
- * Disallow missing displayName in a React component definition
821
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/display-name.md
822
- */
823
- 'react/display-name'?: Linter.RuleEntry<ReactDisplayName>
824
- /**
825
- * Disallow certain props on components
826
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-component-props.md
827
- */
828
- 'react/forbid-component-props'?: Linter.RuleEntry<ReactForbidComponentProps>
829
- /**
830
- * Disallow certain props on DOM Nodes
831
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-dom-props.md
832
- */
833
- 'react/forbid-dom-props'?: Linter.RuleEntry<ReactForbidDomProps>
834
- /**
835
- * Disallow certain elements
836
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-elements.md
837
- */
838
- 'react/forbid-elements'?: Linter.RuleEntry<ReactForbidElements>
839
- /**
840
- * Disallow using another component's propTypes
841
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-foreign-prop-types.md
842
- */
843
- 'react/forbid-foreign-prop-types'?: Linter.RuleEntry<ReactForbidForeignPropTypes>
844
- /**
845
- * Disallow certain propTypes
846
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-prop-types.md
847
- */
848
- 'react/forbid-prop-types'?: Linter.RuleEntry<ReactForbidPropTypes>
849
- /**
850
- * Enforce a specific function type for function components
851
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/function-component-definition.md
852
- */
853
- 'react/function-component-definition'?: Linter.RuleEntry<ReactFunctionComponentDefinition>
854
- /**
855
- * Ensure destructuring and symmetric naming of useState hook value and setter variables
856
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/hook-use-state.md
857
- */
858
- 'react/hook-use-state'?: Linter.RuleEntry<ReactHookUseState>
859
- /**
860
- * Enforce sandbox attribute on iframe elements
861
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/iframe-missing-sandbox.md
862
- */
863
- 'react/iframe-missing-sandbox'?: Linter.RuleEntry<[]>
864
- /**
865
- * Enforce boolean attributes notation in JSX
866
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-boolean-value.md
867
- */
868
- 'react/jsx-boolean-value'?: Linter.RuleEntry<ReactJsxBooleanValue>
869
- /**
870
- * Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
871
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-child-element-spacing.md
872
- */
873
- 'react/jsx-child-element-spacing'?: Linter.RuleEntry<[]>
874
- /**
875
- * Enforce closing bracket location in JSX
876
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-bracket-location.md
877
- */
878
- 'react/jsx-closing-bracket-location'?: Linter.RuleEntry<ReactJsxClosingBracketLocation>
879
- /**
880
- * Enforce closing tag location for multiline JSX
881
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-tag-location.md
882
- */
883
- 'react/jsx-closing-tag-location'?: Linter.RuleEntry<[]>
884
- /**
885
- * Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
886
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-brace-presence.md
887
- */
888
- 'react/jsx-curly-brace-presence'?: Linter.RuleEntry<ReactJsxCurlyBracePresence>
889
- /**
890
- * Enforce consistent linebreaks in curly braces in JSX attributes and expressions
891
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-newline.md
892
- */
893
- 'react/jsx-curly-newline'?: Linter.RuleEntry<ReactJsxCurlyNewline>
894
- /**
895
- * Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
896
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-spacing.md
897
- */
898
- 'react/jsx-curly-spacing'?: Linter.RuleEntry<ReactJsxCurlySpacing>
899
- /**
900
- * Enforce or disallow spaces around equal signs in JSX attributes
901
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-equals-spacing.md
902
- */
903
- 'react/jsx-equals-spacing'?: Linter.RuleEntry<ReactJsxEqualsSpacing>
904
- /**
905
- * Disallow file extensions that may contain JSX
906
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-filename-extension.md
907
- */
908
- 'react/jsx-filename-extension'?: Linter.RuleEntry<ReactJsxFilenameExtension>
909
- /**
910
- * Enforce proper position of the first property in JSX
911
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-first-prop-new-line.md
912
- */
913
- 'react/jsx-first-prop-new-line'?: Linter.RuleEntry<ReactJsxFirstPropNewLine>
914
- /**
915
- * Enforce shorthand or standard form for React fragments
916
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-fragments.md
917
- */
918
- 'react/jsx-fragments'?: Linter.RuleEntry<ReactJsxFragments>
919
- /**
920
- * Enforce event handler naming conventions in JSX
921
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-handler-names.md
922
- */
923
- 'react/jsx-handler-names'?: Linter.RuleEntry<ReactJsxHandlerNames>
924
- /**
925
- * Enforce JSX indentation
926
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-indent.md
927
- */
928
- 'react/jsx-indent'?: Linter.RuleEntry<ReactJsxIndent>
929
- /**
930
- * Enforce props indentation in JSX
931
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-indent-props.md
932
- */
933
- 'react/jsx-indent-props'?: Linter.RuleEntry<ReactJsxIndentProps>
934
- /**
935
- * Disallow missing `key` props in iterators/collection literals
936
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-key.md
937
- */
938
- 'react/jsx-key'?: Linter.RuleEntry<ReactJsxKey>
939
- /**
940
- * Enforce JSX maximum depth
941
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-depth.md
942
- */
943
- 'react/jsx-max-depth'?: Linter.RuleEntry<ReactJsxMaxDepth>
944
- /**
945
- * Enforce maximum of props on a single line in JSX
946
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-props-per-line.md
947
- */
948
- 'react/jsx-max-props-per-line'?: Linter.RuleEntry<ReactJsxMaxPropsPerLine>
949
- /**
950
- * Require or prevent a new line after jsx elements and expressions.
951
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-newline.md
952
- */
953
- 'react/jsx-newline'?: Linter.RuleEntry<ReactJsxNewline>
954
- /**
955
- * Disallow `.bind()` or arrow functions in JSX props
956
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-bind.md
957
- */
958
- 'react/jsx-no-bind'?: Linter.RuleEntry<ReactJsxNoBind>
959
- /**
960
- * Disallow comments from being inserted as text nodes
961
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md
962
- */
963
- 'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>
964
- /**
965
- * Disallows JSX context provider values from taking values that will cause needless rerenders
966
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-constructed-context-values.md
967
- */
968
- 'react/jsx-no-constructed-context-values'?: Linter.RuleEntry<[]>
969
- /**
970
- * Disallow duplicate properties in JSX
971
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md
972
- */
973
- 'react/jsx-no-duplicate-props'?: Linter.RuleEntry<ReactJsxNoDuplicateProps>
974
- /**
975
- * Disallow problematic leaked values from being rendered
976
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-leaked-render.md
977
- */
978
- 'react/jsx-no-leaked-render'?: Linter.RuleEntry<ReactJsxNoLeakedRender>
979
- /**
980
- * Disallow usage of string literals in JSX
981
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-literals.md
982
- */
983
- 'react/jsx-no-literals'?: Linter.RuleEntry<ReactJsxNoLiterals>
984
- /**
985
- * Disallow usage of `javascript:` URLs
986
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-script-url.md
987
- */
988
- 'react/jsx-no-script-url'?: Linter.RuleEntry<ReactJsxNoScriptUrl>
989
- /**
990
- * Disallow `target="_blank"` attribute without `rel="noreferrer"`
991
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-target-blank.md
992
- */
993
- 'react/jsx-no-target-blank'?: Linter.RuleEntry<ReactJsxNoTargetBlank>
994
- /**
995
- * Disallow undeclared variables in JSX
996
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-undef.md
997
- */
998
- 'react/jsx-no-undef'?: Linter.RuleEntry<ReactJsxNoUndef>
999
- /**
1000
- * Disallow unnecessary fragments
1001
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-useless-fragment.md
1002
- */
1003
- 'react/jsx-no-useless-fragment'?: Linter.RuleEntry<ReactJsxNoUselessFragment>
1004
- /**
1005
- * Require one JSX element per line
1006
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-one-expression-per-line.md
1007
- */
1008
- 'react/jsx-one-expression-per-line'?: Linter.RuleEntry<ReactJsxOneExpressionPerLine>
1009
- /**
1010
- * Enforce PascalCase for user-defined JSX components
1011
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-pascal-case.md
1012
- */
1013
- 'react/jsx-pascal-case'?: Linter.RuleEntry<ReactJsxPascalCase>
1014
- /**
1015
- * Disallow multiple spaces between inline JSX props
1016
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-multi-spaces.md
1017
- */
1018
- 'react/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
1019
- /**
1020
- * Disallow JSX prop spreading
1021
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spreading.md
1022
- */
1023
- 'react/jsx-props-no-spreading'?: Linter.RuleEntry<ReactJsxPropsNoSpreading>
1024
- /**
1025
- * Enforce defaultProps declarations alphabetical sorting
1026
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-sort-default-props.md
1027
- * @deprecated
1028
- */
1029
- 'react/jsx-sort-default-props'?: Linter.RuleEntry<ReactJsxSortDefaultProps>
1030
- /**
1031
- * Enforce props alphabetical sorting
1032
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-sort-props.md
1033
- */
1034
- 'react/jsx-sort-props'?: Linter.RuleEntry<ReactJsxSortProps>
1035
- /**
1036
- * Enforce spacing before closing bracket in JSX
1037
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-space-before-closing.md
1038
- * @deprecated
1039
- */
1040
- 'react/jsx-space-before-closing'?: Linter.RuleEntry<ReactJsxSpaceBeforeClosing>
1041
- /**
1042
- * Enforce whitespace in and around the JSX opening and closing brackets
1043
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-tag-spacing.md
1044
- */
1045
- 'react/jsx-tag-spacing'?: Linter.RuleEntry<ReactJsxTagSpacing>
1046
- /**
1047
- * Disallow React to be incorrectly marked as unused
1048
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-uses-react.md
1049
- */
1050
- 'react/jsx-uses-react'?: Linter.RuleEntry<[]>
1051
- /**
1052
- * Disallow variables used in JSX to be incorrectly marked as unused
1053
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-uses-vars.md
1054
- */
1055
- 'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
1056
- /**
1057
- * Disallow missing parentheses around multiline JSX
1058
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-wrap-multilines.md
1059
- */
1060
- 'react/jsx-wrap-multilines'?: Linter.RuleEntry<ReactJsxWrapMultilines>
1061
- /**
1062
- * Disallow when this.state is accessed within setState
1063
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-access-state-in-setstate.md
1064
- */
1065
- 'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
1066
- /**
1067
- * Disallow adjacent inline elements not separated by whitespace.
1068
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-adjacent-inline-elements.md
1069
- */
1070
- 'react/no-adjacent-inline-elements'?: Linter.RuleEntry<[]>
1071
- /**
1072
- * Disallow usage of Array index in keys
1073
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-array-index-key.md
1074
- */
1075
- 'react/no-array-index-key'?: Linter.RuleEntry<[]>
1076
- /**
1077
- * Lifecycle methods should be methods on the prototype, not class fields
1078
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-arrow-function-lifecycle.md
1079
- */
1080
- 'react/no-arrow-function-lifecycle'?: Linter.RuleEntry<[]>
1081
- /**
1082
- * Disallow passing of children as props
1083
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-children-prop.md
1084
- */
1085
- 'react/no-children-prop'?: Linter.RuleEntry<ReactNoChildrenProp>
1086
- /**
1087
- * Disallow usage of dangerous JSX properties
1088
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger.md
1089
- */
1090
- 'react/no-danger'?: Linter.RuleEntry<[]>
1091
- /**
1092
- * Disallow when a DOM element is using both children and dangerouslySetInnerHTML
1093
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger-with-children.md
1094
- */
1095
- 'react/no-danger-with-children'?: Linter.RuleEntry<[]>
1096
- /**
1097
- * Disallow usage of deprecated methods
1098
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md
1099
- */
1100
- 'react/no-deprecated'?: Linter.RuleEntry<[]>
1101
- /**
1102
- * Disallow usage of setState in componentDidMount
1103
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-did-mount-set-state.md
1104
- */
1105
- 'react/no-did-mount-set-state'?: Linter.RuleEntry<ReactNoDidMountSetState>
1106
- /**
1107
- * Disallow usage of setState in componentDidUpdate
1108
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-did-update-set-state.md
1109
- */
1110
- 'react/no-did-update-set-state'?: Linter.RuleEntry<ReactNoDidUpdateSetState>
1111
- /**
1112
- * Disallow direct mutation of this.state
1113
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-direct-mutation-state.md
1114
- */
1115
- 'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
1116
- /**
1117
- * Disallow usage of findDOMNode
1118
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-find-dom-node.md
1119
- */
1120
- 'react/no-find-dom-node'?: Linter.RuleEntry<[]>
1121
- /**
1122
- * Disallow usage of invalid attributes
1123
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-invalid-html-attribute.md
1124
- */
1125
- 'react/no-invalid-html-attribute'?: Linter.RuleEntry<ReactNoInvalidHtmlAttribute>
1126
- /**
1127
- * Disallow usage of isMounted
1128
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-is-mounted.md
1129
- */
1130
- 'react/no-is-mounted'?: Linter.RuleEntry<[]>
1131
- /**
1132
- * Disallow multiple component definition per file
1133
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-multi-comp.md
1134
- */
1135
- 'react/no-multi-comp'?: Linter.RuleEntry<ReactNoMultiComp>
1136
- /**
1137
- * Enforce that namespaces are not used in React elements
1138
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-namespace.md
1139
- */
1140
- 'react/no-namespace'?: Linter.RuleEntry<[]>
1141
- /**
1142
- * Disallow usage of referential-type variables as default param in functional component
1143
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-object-type-as-default-prop.md
1144
- */
1145
- 'react/no-object-type-as-default-prop'?: Linter.RuleEntry<[]>
1146
- /**
1147
- * Disallow usage of shouldComponentUpdate when extending React.PureComponent
1148
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-redundant-should-component-update.md
1149
- */
1150
- 'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
1151
- /**
1152
- * Disallow usage of the return value of ReactDOM.render
1153
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-render-return-value.md
1154
- */
1155
- 'react/no-render-return-value'?: Linter.RuleEntry<[]>
1156
- /**
1157
- * Disallow usage of setState
1158
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-set-state.md
1159
- */
1160
- 'react/no-set-state'?: Linter.RuleEntry<[]>
1161
- /**
1162
- * Disallow using string references
1163
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-string-refs.md
1164
- */
1165
- 'react/no-string-refs'?: Linter.RuleEntry<ReactNoStringRefs>
1166
- /**
1167
- * Disallow `this` from being used in stateless functional components
1168
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-this-in-sfc.md
1169
- */
1170
- 'react/no-this-in-sfc'?: Linter.RuleEntry<[]>
1171
- /**
1172
- * Disallow common typos
1173
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-typos.md
1174
- */
1175
- 'react/no-typos'?: Linter.RuleEntry<[]>
1176
- /**
1177
- * Disallow unescaped HTML entities from appearing in markup
1178
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unescaped-entities.md
1179
- */
1180
- 'react/no-unescaped-entities'?: Linter.RuleEntry<ReactNoUnescapedEntities>
1181
- /**
1182
- * Disallow usage of unknown DOM property
1183
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unknown-property.md
1184
- */
1185
- 'react/no-unknown-property'?: Linter.RuleEntry<ReactNoUnknownProperty>
1186
- /**
1187
- * Disallow usage of unsafe lifecycle methods
1188
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unsafe.md
1189
- */
1190
- 'react/no-unsafe'?: Linter.RuleEntry<ReactNoUnsafe>
1191
- /**
1192
- * Disallow creating unstable components inside components
1193
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unstable-nested-components.md
1194
- */
1195
- 'react/no-unstable-nested-components'?: Linter.RuleEntry<ReactNoUnstableNestedComponents>
1196
- /**
1197
- * Disallow declaring unused methods of component class
1198
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unused-class-component-methods.md
1199
- */
1200
- 'react/no-unused-class-component-methods'?: Linter.RuleEntry<[]>
1201
- /**
1202
- * Disallow definitions of unused propTypes
1203
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unused-prop-types.md
1204
- */
1205
- 'react/no-unused-prop-types'?: Linter.RuleEntry<ReactNoUnusedPropTypes>
1206
- /**
1207
- * Disallow definitions of unused state
1208
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unused-state.md
1209
- */
1210
- 'react/no-unused-state'?: Linter.RuleEntry<[]>
1211
- /**
1212
- * Disallow usage of setState in componentWillUpdate
1213
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-will-update-set-state.md
1214
- */
1215
- 'react/no-will-update-set-state'?: Linter.RuleEntry<ReactNoWillUpdateSetState>
1216
- /**
1217
- * Enforce ES5 or ES6 class for React Components
1218
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-es6-class.md
1219
- */
1220
- 'react/prefer-es6-class'?: Linter.RuleEntry<ReactPreferEs6Class>
1221
- /**
1222
- * Prefer exact proptype definitions
1223
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-exact-props.md
1224
- */
1225
- 'react/prefer-exact-props'?: Linter.RuleEntry<[]>
1226
- /**
1227
- * Enforce that props are read-only
1228
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-read-only-props.md
1229
- */
1230
- 'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
1231
- /**
1232
- * Enforce stateless components to be written as a pure function
1233
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-stateless-function.md
1234
- */
1235
- 'react/prefer-stateless-function'?: Linter.RuleEntry<ReactPreferStatelessFunction>
1236
- /**
1237
- * Disallow missing props validation in a React component definition
1238
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prop-types.md
1239
- */
1240
- 'react/prop-types'?: Linter.RuleEntry<ReactPropTypes>
1241
- /**
1242
- * Disallow missing React when using JSX
1243
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/react-in-jsx-scope.md
1244
- */
1245
- 'react/react-in-jsx-scope'?: Linter.RuleEntry<[]>
1246
- /**
1247
- * Enforce a defaultProps definition for every prop that is not a required prop
1248
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-default-props.md
1249
- */
1250
- 'react/require-default-props'?: Linter.RuleEntry<ReactRequireDefaultProps>
1251
- /**
1252
- * Enforce React components to have a shouldComponentUpdate method
1253
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-optimization.md
1254
- */
1255
- 'react/require-optimization'?: Linter.RuleEntry<ReactRequireOptimization>
1256
- /**
1257
- * Enforce ES5 or ES6 class for returning value in render function
1258
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-render-return.md
1259
- */
1260
- 'react/require-render-return'?: Linter.RuleEntry<[]>
1261
- /**
1262
- * Disallow extra closing tags for components without children
1263
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/self-closing-comp.md
1264
- */
1265
- 'react/self-closing-comp'?: Linter.RuleEntry<ReactSelfClosingComp>
1266
- /**
1267
- * Enforce component methods order
1268
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-comp.md
1269
- */
1270
- 'react/sort-comp'?: Linter.RuleEntry<ReactSortComp>
1271
- /**
1272
- * Enforce defaultProps declarations alphabetical sorting
1273
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-default-props.md
1274
- */
1275
- 'react/sort-default-props'?: Linter.RuleEntry<ReactSortDefaultProps>
1276
- /**
1277
- * Enforce propTypes declarations alphabetical sorting
1278
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-prop-types.md
1279
- */
1280
- 'react/sort-prop-types'?: Linter.RuleEntry<ReactSortPropTypes>
1281
- /**
1282
- * Enforce class component state initialization style
1283
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/state-in-constructor.md
1284
- */
1285
- 'react/state-in-constructor'?: Linter.RuleEntry<ReactStateInConstructor>
1286
- /**
1287
- * Enforces where React component static properties should be positioned.
1288
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/static-property-placement.md
1289
- */
1290
- 'react/static-property-placement'?: Linter.RuleEntry<ReactStaticPropertyPlacement>
1291
- /**
1292
- * Enforce style prop value is an object
1293
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/style-prop-object.md
1294
- */
1295
- 'react/style-prop-object'?: Linter.RuleEntry<ReactStylePropObject>
1296
- /**
1297
- * Disallow void DOM elements (e.g. `<img />`, `<br />`) from receiving children
1298
- * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
1299
- */
1300
- 'react/void-dom-elements-no-children'?: Linter.RuleEntry<[]>
1301
794
  /**
1302
795
  * Validates that TypeScript documentation comments conform to the TSDoc standard
1303
796
  * @see https://tsdoc.org/pages/packages/eslint-plugin-tsdoc
@@ -3764,433 +3257,6 @@ type PrettierPrettier = []|[{
3764
3257
  }
3765
3258
  [k: string]: unknown | undefined
3766
3259
  }]
3767
- // ----- react/boolean-prop-naming -----
3768
- type ReactBooleanPropNaming = []|[{
3769
-
3770
- propTypeNames?: [string, ...(string)[]]
3771
- rule?: string
3772
- message?: string
3773
- validateNested?: boolean
3774
- }]
3775
- // ----- react/button-has-type -----
3776
- type ReactButtonHasType = []|[{
3777
- button?: boolean
3778
- submit?: boolean
3779
- reset?: boolean
3780
- }]
3781
- // ----- react/checked-requires-onchange-or-readonly -----
3782
- type ReactCheckedRequiresOnchangeOrReadonly = []|[{
3783
- ignoreMissingProperties?: boolean
3784
- ignoreExclusiveCheckedAttribute?: boolean
3785
- }]
3786
- // ----- react/default-props-match-prop-types -----
3787
- type ReactDefaultPropsMatchPropTypes = []|[{
3788
- allowRequiredDefaults?: boolean
3789
- }]
3790
- // ----- react/destructuring-assignment -----
3791
- type ReactDestructuringAssignment = []|[("always" | "never")]|[("always" | "never"), {
3792
- ignoreClassFields?: boolean
3793
- destructureInSignature?: ("always" | "ignore")
3794
- }]
3795
- // ----- react/display-name -----
3796
- type ReactDisplayName = []|[{
3797
- ignoreTranspilerName?: boolean
3798
- checkContextObjects?: boolean
3799
- }]
3800
- // ----- react/forbid-component-props -----
3801
- type ReactForbidComponentProps = []|[{
3802
- forbid?: (string | {
3803
- propName?: string
3804
- allowedFor?: string[]
3805
- message?: string
3806
- } | {
3807
- propName?: string
3808
-
3809
- disallowedFor: [string, ...(string)[]]
3810
- message?: string
3811
- })[]
3812
- [k: string]: unknown | undefined
3813
- }]
3814
- // ----- react/forbid-dom-props -----
3815
- type ReactForbidDomProps = []|[{
3816
- forbid?: (string | {
3817
- propName?: string
3818
- disallowedFor?: string[]
3819
- message?: string
3820
- [k: string]: unknown | undefined
3821
- })[]
3822
- }]
3823
- // ----- react/forbid-elements -----
3824
- type ReactForbidElements = []|[{
3825
- forbid?: (string | {
3826
- element: string
3827
- message?: string
3828
- })[]
3829
- }]
3830
- // ----- react/forbid-foreign-prop-types -----
3831
- type ReactForbidForeignPropTypes = []|[{
3832
- allowInPropTypes?: boolean
3833
- }]
3834
- // ----- react/forbid-prop-types -----
3835
- type ReactForbidPropTypes = []|[{
3836
- forbid?: string[]
3837
- checkContextTypes?: boolean
3838
- checkChildContextTypes?: boolean
3839
- [k: string]: unknown | undefined
3840
- }]
3841
- // ----- react/function-component-definition -----
3842
- type ReactFunctionComponentDefinition = []|[{
3843
- namedComponents?: (("function-declaration" | "arrow-function" | "function-expression") | ("function-declaration" | "arrow-function" | "function-expression")[])
3844
- unnamedComponents?: (("arrow-function" | "function-expression") | ("arrow-function" | "function-expression")[])
3845
- [k: string]: unknown | undefined
3846
- }]
3847
- // ----- react/hook-use-state -----
3848
- type ReactHookUseState = []|[{
3849
- allowDestructuredState?: boolean
3850
- }]
3851
- // ----- react/jsx-boolean-value -----
3852
- type ReactJsxBooleanValue = ([]|[("always" | "never")] | []|["always"]|["always", {
3853
- never?: string[]
3854
- assumeUndefinedIsFalse?: boolean
3855
- }] | []|["never"]|["never", {
3856
- always?: string[]
3857
- assumeUndefinedIsFalse?: boolean
3858
- }])
3859
- // ----- react/jsx-closing-bracket-location -----
3860
- type ReactJsxClosingBracketLocation = []|[(("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | {
3861
- location?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned")
3862
- } | {
3863
- nonEmpty?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
3864
- selfClosing?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false)
3865
- })]
3866
- // ----- react/jsx-curly-brace-presence -----
3867
- type ReactJsxCurlyBracePresence = []|[({
3868
- props?: ("always" | "never" | "ignore")
3869
- children?: ("always" | "never" | "ignore")
3870
- propElementValues?: ("always" | "never" | "ignore")
3871
- } | ("always" | "never" | "ignore"))]
3872
- // ----- react/jsx-curly-newline -----
3873
- type ReactJsxCurlyNewline = []|[(("consistent" | "never") | {
3874
- singleline?: ("consistent" | "require" | "forbid")
3875
- multiline?: ("consistent" | "require" | "forbid")
3876
- })]
3877
- // ----- react/jsx-curly-spacing -----
3878
- type ReactJsxCurlySpacing = []|[((_ReactJsxCurlySpacing_BasicConfig & {
3879
- attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean
3880
- children?: _ReactJsxCurlySpacingBasicConfigOrBoolean
3881
- [k: string]: unknown | undefined
3882
- }) | ("always" | "never"))]|[((_ReactJsxCurlySpacing_BasicConfig & {
3883
- attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean
3884
- children?: _ReactJsxCurlySpacingBasicConfigOrBoolean
3885
- [k: string]: unknown | undefined
3886
- }) | ("always" | "never")), {
3887
- allowMultiline?: boolean
3888
- spacing?: {
3889
- objectLiterals?: ("always" | "never")
3890
- [k: string]: unknown | undefined
3891
- }
3892
- }]
3893
- type _ReactJsxCurlySpacingBasicConfigOrBoolean = (_ReactJsxCurlySpacing_BasicConfig | boolean)
3894
- interface _ReactJsxCurlySpacing_BasicConfig {
3895
- when?: ("always" | "never")
3896
- allowMultiline?: boolean
3897
- spacing?: {
3898
- objectLiterals?: ("always" | "never")
3899
- [k: string]: unknown | undefined
3900
- }
3901
- [k: string]: unknown | undefined
3902
- }
3903
- // ----- react/jsx-equals-spacing -----
3904
- type ReactJsxEqualsSpacing = []|[("always" | "never")]
3905
- // ----- react/jsx-filename-extension -----
3906
- type ReactJsxFilenameExtension = []|[{
3907
- allow?: ("always" | "as-needed")
3908
- extensions?: string[]
3909
- ignoreFilesWithoutCode?: boolean
3910
- }]
3911
- // ----- react/jsx-first-prop-new-line -----
3912
- type ReactJsxFirstPropNewLine = []|[("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")]
3913
- // ----- react/jsx-fragments -----
3914
- type ReactJsxFragments = []|[("syntax" | "element")]
3915
- // ----- react/jsx-handler-names -----
3916
- type ReactJsxHandlerNames = []|[({
3917
- eventHandlerPrefix?: string
3918
- eventHandlerPropPrefix?: string
3919
- checkLocalVariables?: boolean
3920
- checkInlineFunction?: boolean
3921
- } | {
3922
- eventHandlerPrefix?: string
3923
- eventHandlerPropPrefix?: false
3924
- checkLocalVariables?: boolean
3925
- checkInlineFunction?: boolean
3926
- } | {
3927
- eventHandlerPrefix?: false
3928
- eventHandlerPropPrefix?: string
3929
- checkLocalVariables?: boolean
3930
- checkInlineFunction?: boolean
3931
- } | {
3932
- checkLocalVariables?: boolean
3933
- } | {
3934
- checkInlineFunction?: boolean
3935
- })]
3936
- // ----- react/jsx-indent -----
3937
- type ReactJsxIndent = []|[("tab" | number)]|[("tab" | number), {
3938
- checkAttributes?: boolean
3939
- indentLogicalExpressions?: boolean
3940
- }]
3941
- // ----- react/jsx-indent-props -----
3942
- type ReactJsxIndentProps = []|[(("tab" | "first") | number | {
3943
- indentMode?: (("tab" | "first") | number)
3944
- ignoreTernaryOperator?: boolean
3945
- [k: string]: unknown | undefined
3946
- })]
3947
- // ----- react/jsx-key -----
3948
- type ReactJsxKey = []|[{
3949
- checkFragmentShorthand?: boolean
3950
- checkKeyMustBeforeSpread?: boolean
3951
- warnOnDuplicates?: boolean
3952
- }]
3953
- // ----- react/jsx-max-depth -----
3954
- type ReactJsxMaxDepth = []|[{
3955
- max?: number
3956
- }]
3957
- // ----- react/jsx-max-props-per-line -----
3958
- type ReactJsxMaxPropsPerLine = []|[({
3959
- maximum?: {
3960
- single?: number
3961
- multi?: number
3962
- [k: string]: unknown | undefined
3963
- }
3964
- } | {
3965
- maximum?: number
3966
- when?: ("always" | "multiline")
3967
- })]
3968
- // ----- react/jsx-newline -----
3969
- type ReactJsxNewline = []|[{
3970
- prevent?: boolean
3971
- allowMultilines?: boolean
3972
- }]
3973
- // ----- react/jsx-no-bind -----
3974
- type ReactJsxNoBind = []|[{
3975
- allowArrowFunctions?: boolean
3976
- allowBind?: boolean
3977
- allowFunctions?: boolean
3978
- ignoreRefs?: boolean
3979
- ignoreDOMComponents?: boolean
3980
- }]
3981
- // ----- react/jsx-no-duplicate-props -----
3982
- type ReactJsxNoDuplicateProps = []|[{
3983
- ignoreCase?: boolean
3984
- }]
3985
- // ----- react/jsx-no-leaked-render -----
3986
- type ReactJsxNoLeakedRender = []|[{
3987
- validStrategies?: ("ternary" | "coerce")[]
3988
- }]
3989
- // ----- react/jsx-no-literals -----
3990
- type ReactJsxNoLiterals = []|[{
3991
- noStrings?: boolean
3992
- allowedStrings?: string[]
3993
- ignoreProps?: boolean
3994
- noAttributeStrings?: boolean
3995
- }]
3996
- // ----- react/jsx-no-script-url -----
3997
- type ReactJsxNoScriptUrl = ([]|[{
3998
- name: string
3999
- props: string[]
4000
- }[]]|[{
4001
- name: string
4002
- props: string[]
4003
- }[], {
4004
- includeFromSettings?: boolean
4005
- [k: string]: unknown | undefined
4006
- }] | []|[{
4007
- includeFromSettings?: boolean
4008
- [k: string]: unknown | undefined
4009
- }])
4010
- // ----- react/jsx-no-target-blank -----
4011
- type ReactJsxNoTargetBlank = []|[{
4012
- allowReferrer?: boolean
4013
- enforceDynamicLinks?: ("always" | "never")
4014
- warnOnSpreadAttributes?: boolean
4015
- links?: boolean
4016
- forms?: boolean
4017
- }]
4018
- // ----- react/jsx-no-undef -----
4019
- type ReactJsxNoUndef = []|[{
4020
- allowGlobals?: boolean
4021
- }]
4022
- // ----- react/jsx-no-useless-fragment -----
4023
- type ReactJsxNoUselessFragment = []|[{
4024
- allowExpressions?: boolean
4025
- [k: string]: unknown | undefined
4026
- }]
4027
- // ----- react/jsx-one-expression-per-line -----
4028
- type ReactJsxOneExpressionPerLine = []|[{
4029
- allow?: ("none" | "literal" | "single-child" | "non-jsx")
4030
- }]
4031
- // ----- react/jsx-pascal-case -----
4032
- type ReactJsxPascalCase = []|[{
4033
- allowAllCaps?: boolean
4034
- allowLeadingUnderscore?: boolean
4035
- allowNamespace?: boolean
4036
-
4037
- ignore?: []|[string]
4038
- }]
4039
- // ----- react/jsx-props-no-spreading -----
4040
- type ReactJsxPropsNoSpreading = []|[({
4041
- html?: ("enforce" | "ignore")
4042
- custom?: ("enforce" | "ignore")
4043
- exceptions?: string[]
4044
- [k: string]: unknown | undefined
4045
- } & {
4046
- [k: string]: unknown | undefined
4047
- })]
4048
- // ----- react/jsx-sort-default-props -----
4049
- type ReactJsxSortDefaultProps = []|[{
4050
- ignoreCase?: boolean
4051
- }]
4052
- // ----- react/jsx-sort-props -----
4053
- type ReactJsxSortProps = []|[{
4054
- callbacksLast?: boolean
4055
- shorthandFirst?: boolean
4056
- shorthandLast?: boolean
4057
- multiline?: ("ignore" | "first" | "last")
4058
- ignoreCase?: boolean
4059
- noSortAlphabetically?: boolean
4060
- reservedFirst?: (unknown[] | boolean)
4061
- locale?: string
4062
- }]
4063
- // ----- react/jsx-space-before-closing -----
4064
- type ReactJsxSpaceBeforeClosing = []|[("always" | "never")]
4065
- // ----- react/jsx-tag-spacing -----
4066
- type ReactJsxTagSpacing = []|[{
4067
- closingSlash?: ("always" | "never" | "allow")
4068
- beforeSelfClosing?: ("always" | "proportional-always" | "never" | "allow")
4069
- afterOpening?: ("always" | "allow-multiline" | "never" | "allow")
4070
- beforeClosing?: ("always" | "proportional-always" | "never" | "allow")
4071
- }]
4072
- // ----- react/jsx-wrap-multilines -----
4073
- type ReactJsxWrapMultilines = []|[{
4074
- declaration?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4075
- assignment?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4076
- return?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4077
- arrow?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4078
- condition?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4079
- logical?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4080
- prop?: (true | false | "ignore" | "parens" | "parens-new-line" | "never")
4081
- }]
4082
- // ----- react/no-children-prop -----
4083
- type ReactNoChildrenProp = []|[{
4084
- allowFunctions?: boolean
4085
- }]
4086
- // ----- react/no-did-mount-set-state -----
4087
- type ReactNoDidMountSetState = []|["disallow-in-func"]
4088
- // ----- react/no-did-update-set-state -----
4089
- type ReactNoDidUpdateSetState = []|["disallow-in-func"]
4090
- // ----- react/no-invalid-html-attribute -----
4091
- type ReactNoInvalidHtmlAttribute = []|[("rel")[]]
4092
- // ----- react/no-multi-comp -----
4093
- type ReactNoMultiComp = []|[{
4094
- ignoreStateless?: boolean
4095
- }]
4096
- // ----- react/no-string-refs -----
4097
- type ReactNoStringRefs = []|[{
4098
- noTemplateLiterals?: boolean
4099
- }]
4100
- // ----- react/no-unescaped-entities -----
4101
- type ReactNoUnescapedEntities = []|[{
4102
- forbid?: (string | {
4103
- char?: string
4104
- alternatives?: string[]
4105
- [k: string]: unknown | undefined
4106
- })[]
4107
- }]
4108
- // ----- react/no-unknown-property -----
4109
- type ReactNoUnknownProperty = []|[{
4110
- ignore?: string[]
4111
- requireDataLowercase?: boolean
4112
- }]
4113
- // ----- react/no-unsafe -----
4114
- type ReactNoUnsafe = []|[{
4115
- checkAliases?: boolean
4116
- }]
4117
- // ----- react/no-unstable-nested-components -----
4118
- type ReactNoUnstableNestedComponents = []|[{
4119
- customValidators?: string[]
4120
- allowAsProps?: boolean
4121
- }]
4122
- // ----- react/no-unused-prop-types -----
4123
- type ReactNoUnusedPropTypes = []|[{
4124
- ignore?: string[]
4125
- customValidators?: string[]
4126
- skipShapeProps?: boolean
4127
- }]
4128
- // ----- react/no-will-update-set-state -----
4129
- type ReactNoWillUpdateSetState = []|["disallow-in-func"]
4130
- // ----- react/prefer-es6-class -----
4131
- type ReactPreferEs6Class = []|[("always" | "never")]
4132
- // ----- react/prefer-stateless-function -----
4133
- type ReactPreferStatelessFunction = []|[{
4134
- ignorePureComponents?: boolean
4135
- }]
4136
- // ----- react/prop-types -----
4137
- type ReactPropTypes = []|[{
4138
- ignore?: string[]
4139
- customValidators?: string[]
4140
- skipUndeclared?: boolean
4141
- }]
4142
- // ----- react/require-default-props -----
4143
- type ReactRequireDefaultProps = []|[{
4144
- forbidDefaultForRequired?: boolean
4145
- classes?: ("defaultProps" | "ignore")
4146
- functions?: ("defaultArguments" | "defaultProps" | "ignore")
4147
- ignoreFunctionalComponents?: boolean
4148
- }]
4149
- // ----- react/require-optimization -----
4150
- type ReactRequireOptimization = []|[{
4151
- allowDecorators?: string[]
4152
- }]
4153
- // ----- react/self-closing-comp -----
4154
- type ReactSelfClosingComp = []|[{
4155
- component?: boolean
4156
- html?: boolean
4157
- }]
4158
- // ----- react/sort-comp -----
4159
- type ReactSortComp = []|[{
4160
- order?: string[]
4161
- groups?: {
4162
- [k: string]: string[]
4163
- }
4164
- }]
4165
- // ----- react/sort-default-props -----
4166
- type ReactSortDefaultProps = []|[{
4167
- ignoreCase?: boolean
4168
- }]
4169
- // ----- react/sort-prop-types -----
4170
- type ReactSortPropTypes = []|[{
4171
- requiredFirst?: boolean
4172
- callbacksLast?: boolean
4173
- ignoreCase?: boolean
4174
- noSortAlphabetically?: boolean
4175
- sortShapeProp?: boolean
4176
- checkTypes?: boolean
4177
- }]
4178
- // ----- react/state-in-constructor -----
4179
- type ReactStateInConstructor = []|[("always" | "never")]
4180
- // ----- react/static-property-placement -----
4181
- type ReactStaticPropertyPlacement = []|[("static public field" | "static getter" | "property assignment")]|[("static public field" | "static getter" | "property assignment"), {
4182
- propTypes?: ("static public field" | "static getter" | "property assignment")
4183
- defaultProps?: ("static public field" | "static getter" | "property assignment")
4184
- childContextTypes?: ("static public field" | "static getter" | "property assignment")
4185
- contextTypes?: ("static public field" | "static getter" | "property assignment")
4186
- contextType?: ("static public field" | "static getter" | "property assignment")
4187
- displayName?: ("static public field" | "static getter" | "property assignment")
4188
- }]
4189
- // ----- react/style-prop-object -----
4190
- type ReactStylePropObject = []|[{
4191
- allow?: string[]
4192
- [k: string]: unknown | undefined
4193
- }]
4194
3260
  // ----- unicorn/better-regex -----
4195
3261
  type UnicornBetterRegex = []|[{
4196
3262
  sortCharacterClasses?: boolean