With integration of eslint's jquery plugin on horizon for eslint-config-wikimedia, we should take action and replace jQuery functions with native equivalents where useful:
Followed @Jdrewniak's take for MobileFrontend/MinervaNeue presenting reports in T100254#4678253, providing the same here, very generally for now.