When working with object properties, ESLint often suggests using object destructuring. However, this can sometimes result in redundant lines of code.
ESLint may not allow something like the following (which might seem like the preferable approach):
const { value } = props;
const color = props.color || '#515cdc';
Instead, it typically enforces a different way of writing it:
const { value } = props;
let { color } = props;
color = color || '#515cdc';
Is there another approach that I might be missing or is this the only way to handle it according to ESLint?