This custom ESLint rule is based on a rule from eslint-plugin-react, but it adds one additional option to allowlist hostnames in external links.
I want to be able to use target="_blank" links for documentation articles (a site I control), and I want to keep referrer for analytics purposes. See jsx-eslint/eslint-plugin-react#2941 (comment).