In my project, there is a lot of getters like a.b.c to get the c prop from a, but sometimes it does not have b prop in a, so my app is crashing. I know the lodash/get is the right way to avoid this problem, but there is a couple of people working together on the project and everyone has different writing style. So I was wondering if there is ESLint rule to do following:
a.b.cIf you are able to use babel or typescript in your project then you could try optional chaining in combination with eslint rule no-unsafe-optional-chaining