JS: Add a related location in UnusedOrUndefinedStateProperty

This commit is contained in:
Asger F
2025-02-26 13:02:38 +01:00
parent 8ef51c495f
commit aade1e863d

View File

@@ -61,7 +61,7 @@ new C5({writtenInUnknownInitializerObject: 42});
React.createClass({ // $ Alert
render: function() {
this.state.writtenInKnownInitializerObject;
this.state.notWrittenInKnownInitializerObject;
this.state.notWrittenInKnownInitializerObject; // $ RelatedLocation
return <div/>;
},
getInitialState: function() {