Commit hooks are added and were applied which enforce formatting of code as well as hint for linting errors.
SkoHub Vocabs already provided npm scripts for formatting and linting, but they were not used for a very long time.
With the proposed approach they are applied at every commit. If linting rules are broken, the commit will error and give hints in the output of what went wrong.
This should lead to more consistent code. Infos about the hook were added in the README.
Commit hooks are added and were applied which enforce formatting of code as well as hint for linting errors.
SkoHub Vocabs already provided npm scripts for formatting and linting, but they were not used for a very long time.
With the proposed approach they are applied at every commit. If linting rules are broken, the commit will error and give hints in the output of what went wrong.
This should lead to more consistent code. Infos about the hook were added in the README.