Older versions of eslint use the deprecated method, so add a fallback in the event a modern version of eslint isn't available