0👍
✅
For reference: I have forgone setters since they seemed too obvious and linter complained about property modification.
Instead I have created setter functions, e.g. setMaximumWidth
on the object containing the property.
This solution seems like it conforms to best practices, at least as far as I understand them, and doesn’t really change the approach.
I’m happy, but will probably get bashed some time for not using something more obvious, whatever that may be.
Source:stackexchange.com