I added two new ESLint rules:
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live
_(Obviously joking, if it's not clear already
Other than that, I found and fixed an endless rendering issue in a separate commit.
npm run lint
and make sure there is no error like the below:I made the code simpler and more readable but we still need to add more comments to explain different parts of the code. For example, in the searchResultsLocal.tsx
file, there is a logic for finding the right fields name that I can't explain (because I was not involved in the decision-making part). Someone familiar with the project must write comments there and explain the code so other devs can also understand them.