@storm-software/eslint 0.76.1 → 0.77.1

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