skohub-io / skohub-vocabs

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

Add pre-commit hooks to improve code consistency #223

Closed sroertgen closed 1 year ago

sroertgen commented 1 year ago

To improve code style, formatting and linting automatic checks should be implemented that enforce certain rules.

SkoHub Vocabs already uses prettier and eslint and has npm run commands for them. The usage should be enforced with pre-commit hooks, which will prevent code from being commit if it does not follow the rules.