Add various things (currently only for web directory) that run on pre-commit (using husky)
Linting errors should now be caught on commit
Linting rules are based on AirBnB rules with some additional customizations that I prefer
Added stop-only, which prevents .only() being committed to the repo (it can, and should, still be used locally)
Important files
eslint.yml: Defines the linting rules used on pre-commit
.eslintignore: States what to exclude from the linting rules
Why so many changes?
The majority of the changes in this PR are simply a result of implementing the linting rules; they are non-functional changes and are only necessary to make sure the code all conforms to the new linting rules.
Description
Add various things (currently only for
web
directory) that run on pre-commit (usinghusky
)stop-only
, which prevents.only()
being committed to the repo (it can, and should, still be used locally)Important files
eslint.yml
: Defines the linting rules used on pre-commit.eslintignore
: States what to exclude from the linting rulesWhy so many changes?
The majority of the changes in this PR are simply a result of implementing the linting rules; they are non-functional changes and are only necessary to make sure the code all conforms to the new linting rules.