skohub-io / skohub-vocabs

A lightweight tool to publish SKOS Vocabularies
https://skohub.io/
Apache License 2.0
32 stars 25 forks source link

223 code consistency #224

Closed sroertgen closed 1 year ago

sroertgen commented 1 year ago

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.