Lint Rules
This list is auto-generated from our sources.
Rules are organized by severity.
In addition, rules can be further distinguished by maturity. Unqualified rules are considered stable, while others may be marked experimental to indicate that they are under review. Lints that are marked as deprecated should not be used and are subject to removal in future Linter releases.
These rules are under active development. Feedback is welcome!
Something is malformed in your component boilerplate.
over_react_cascaded_arrow_functionsProps can't be cascaded after unparenthesized arrow functions.
over_react_exhaustive_depsVerifies the list of dependencies for React Hooks like useEffect and similar.
over_react_invalid_childDo not use unsupported types as component children.
over_react_invalid_render_return_typeDo not return unsupported types from the render method.
over_react_pseudo_static_lifecycleNever reference instance members within ReactJS "static" lifecycle methods.
over_react_rules_of_hooksEnforces the Rules of Hooks
over_react_style_missing_unitDo not use string CSS property values without specifying a unit.
Avoid setting a link target without rel="noopener noreferrer".
over_react_boilerplate_warningSomething is not quite right in your component boilerplate.
over_react_create_ref_usagePrefer useRef over createRef within a function component.
over_react_duplicate_prop_cascadeAvoid setting the same prop more than once on a component builder.
over_react_forward_only_dom_props_to_dom_buildersAvoid forwarding custom props to a Dom builder.
over_react_hash_code_as_keyAvoid deriving React keys from hashCode since it is not unique.
over_react_invalid_dom_attributeAvoid setting props that map to invalid HTML element attributes.
over_react_late_required_propAlways provide required props.
over_react_low_quality_keyAvoid deriving React keys from objects that have a high chance of colliding.
over_react_missing_cascade_parensSyntax errors around cascades
over_react_missing_keyAvoid placing elements within iterators without setting props.key to a unique value.
over_react_non_defaulted_propUse of non defaulted props in function components
over_react_object_to_string_as_keyAvoid deriving React keys from toString() since it is not unique.
over_react_proptypes_do_not_throwAvoid throwing errors within propTypes.
over_react_unknown_key_typeAvoid deriving React keys from an object typed as dynamic/Object.
over_react_unsafe_required_prop_access (experimental)Do not unsafely access required props when they're not guaranteed to be present.
Always provide required props.
over_react_boilerplate_debug (experimental)Internal tool for debugging boilerplate parsing / building.
over_react_bool_prop_name_readabilityName boolean props in a way that makes them easy to read and infer their purpose.
over_react_consumed_props_return_valueAvoid using list literals to define consumed prop keys.
over_react_incorrect_doc_comment_locationPlace documentation comments above component factories.
over_react_prefer_null_over_false_render_return_typeAvoid returning false from the render method.
over_react_prefer_use_or_create_refAvoid using callback refs to assign ref field values.
over_react_string_refAvoid using deprecated string refs.
over_react_unnecessary_keyAvoid using keys when not necessary.
over_react_variadic_childrenPrefer passing children as arguments instead of wrapping them in Iterables.