eslint-plugin-unicorn
eslint-plugin-unicorn copied to clipboard
Rule proposal: prefer-optional-chaining
Description
for clean code
Fail
callback && callcak()
Pass
callback?.()
Proposed rule name
prefer-optional-chaining
Additional Info
Optional Chaining should have other scenarios, I will add them later
Duplicate of #429