Skip to content

Add no hard coded url eslint rules

What does this MR do and why?

As hard coded docs and promo site url were fixed in !124548 (merged) but appears again in !124426 (diffs), ESLint rules are added in this MR to prevent JH fixing them frequently, and also keep upstream url code centralized as related domains and urls have already been extracted to jh_else_ce/lib/utils/url_utility.js

Screenshots or screen recordings

No visual changes

How to set up and validate locally

yarn run lint:eslint .

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

/cc @daveliu @JeremyWuuuuu @fenyuluoshang

Edited by Kun Qian

Merge request reports