[Fix] no-unused-state
: handle optional chaining
#2588
Merged
no-unused-state
: handle optional chaining
#2588