UNPKG

@gitlab/eslint-plugin

Version:

GitLab package for our custom eslint rules

28 lines (24 loc) 652 B
# @gitlab/no-hardcoded-urls We should not hardcode or construct URLs on the frontend. See https://docs.gitlab.com/development/urls_in_gitlab/ for more information. ## Options ```json { "@gitlab/vue-no-hardcoded-urls": [ "error", { "allowedKeys": ["path", "redirect"], "allowedFunctions": ["helpPagePath"], "allowedInterpolationVariables": [ "FORUM_URL", "DOCS_URL", "PROMO_URL", "CONTRIBUTE_URL", "DOCS_URL_IN_EE_DIR", "CUSTOMERS_PORTAL_URL" ], "allowedPatterns": ["\\/api\\/:version"], "disallowedObjectProperties": ["relative_url_root"] } ] } ```