Magento 2 JavaScript validators

How to implement a custom JavaScript validator for a backend configuration field?