eslint-plugin-total-functions icon indicating copy to clipboard operation
eslint-plugin-total-functions copied to clipboard

perf: ignore strings (and other built in types?) in isUnsafePropertyAssignment

Open danielnixon opened this issue 3 years ago • 0 comments

We already bail out early if the type in question is an array. We should do the same for strings, which are only ever immutable.

We might get a good perf boost out of ignoring other types too: number, bool, symbol, etc.

danielnixon avatar Nov 21 '20 00:11 danielnixon