Husky - tool to automate some actions on event - here for pre-commit activity
lint-staged - tool for invoking all linters (eslint, stylelint, prettier) for files that are staged in repo - NOTE: works asynchronously
When you edit files in ui/src that have .js, .jsx or scss extension and then add to stage, all these files will be checked and linted automatically before commit, if eslint detects something wrong, then throws an error and thanks to this we will not push rubbish code and commits and we will fix all before extending our history of repo.
This PR adds 2 automate tools:
When you edit files in ui/src that have .js, .jsx or scss extension and then add to stage, all these files will be checked and linted automatically before commit, if eslint detects something wrong, then throws an error and thanks to this we will not push rubbish code and commits and we will fix all before extending our history of repo.