How do you make sure every member in your team follows best coding practices and never commits code with issues to remote repository? Answer is using Husky package and git hooks. You can configure Husky to run ESLint on modified codes before committing those code to git.
After pushing the code to the remote repository; Did I just push IDE related folder? What about that file containing sensitive information? I have been at the same spot and you can easily remove that file or folder!