You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could also add a script in the package.json so that it's easier to check, something like:
"lint": "eslint ."
You could then run this script before pushing up to make sure your codebase is following all the rules.
Or even better you could use a tool like husky to add a git hook which will stop you pushing up to Github if there are errors. Another way to do this would be to add a Github action that would prevent anyone from merging to main if there are any errors.
This would have prevented something like the following line where you have a variable that's not being used
You could also add a script in the
package.json
so that it's easier to check, something like:"lint": "eslint ."
You could then run this script before pushing up to make sure your codebase is following all the rules.
Or even better you could use a tool like husky to add a git hook which will stop you pushing up to Github if there are errors. Another way to do this would be to add a Github action that would prevent anyone from merging to main if there are any errors.
This would have prevented something like the following line where you have a variable that's not being used
week1-server-karol-natalia-laura-gareth/src/template.js
Line 1 in 8a70773
The text was updated successfully, but these errors were encountered: