`prefer-spread` should not report on optional chaining
JounQin opened this issue · comments
JounQin commented
scopeManager?.scopes.slice()
The fix will error on runtime:
[...scopeManager?.scopes]
fisker Cheung commented
Note: Add test for (scopeManager?.scopes).slice()
when work on it.