AIRON Fitness is an AI-powered fitness companion supporting your personal health journey by delivering customized fitness and meal plans tailored to your goals and preferences.
Because .git configurations are local, I setup a script in our root directory /pre-commit-hook.sh which will setup the pre-commit hook for you locally. just run
chmod +x pre-commit-hook.sh
./pre-commit-hook.sh
Now, after every commit, eslint will be checked, if there are any errors, the commit will be stopped.
running eslint
In the /client, you can run these commands to either see what eslint errors there are, or automatically fix errors that can be auto-fixed. These scripts are specified in package.json
Important scripts to know
pre-commit hook
Because
.git
configurations are local, I setup a script in our root directory/pre-commit-hook.sh
which will setup the pre-commit hook for you locally. just runNow, after every commit, eslint will be checked, if there are any errors, the commit will be stopped.
running eslint
In the
/client
, you can run these commands to either see what eslint errors there are, or automatically fix errors that can be auto-fixed. These scripts are specified inpackage.json