Add no hard coded url eslint rules for spec files
What does this MR do and why?
This is a follow up MR of !125196 (merged),
this MR:
- Add no hard coded url eslint rules for spec files
- Add no hard coded url check for template literal
- Adjust regular expression to match template literal of multiple lines
- fix a bug that
${DOCS_URL}/ee
was not throwing error message to useDOCS_URL_IN_EE_DIR
.
Screenshots or screen recordings
How to set up and validate locally
yarn run lint
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kun Qian