## Description Make eslint rules stricter for packages #### Type of change - Chore (housekeeping or task changes that don't impact user perception) ## Testing > #### How Has This Been Tested? > Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration. > Delete anything that is not relevant - [x] Manual - [x] Jest - [ ] Cypress ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
34 lines
1.5 KiB
TypeScript
34 lines
1.5 KiB
TypeScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const { match } = require("path-to-regexp");
|
|
|
|
export const BASE_URL = "/";
|
|
export const WORKSPACE_URL = "/workspace";
|
|
export const PAGE_NOT_FOUND_URL = "/404";
|
|
export const SERVER_ERROR_URL = "/500";
|
|
export const APPLICATIONS_URL = `/applications`;
|
|
export const LICENSE_CHECK_PATH = "/license";
|
|
|
|
export const TEMPLATES_PATH = "/templates";
|
|
export const TEMPLATES_ID_PATH = "/templates/:templateId";
|
|
|
|
export const USER_AUTH_URL = "/user";
|
|
export const PROFILE = "/profile";
|
|
export const GIT_PROFILE_ROUTE = `${PROFILE}/git`;
|
|
export const USERS_URL = "/users";
|
|
export const SETUP = "/setup/welcome";
|
|
export const FORGOT_PASSWORD_URL = `${USER_AUTH_URL}/forgotPassword`;
|
|
export const RESET_PASSWORD_URL = `${USER_AUTH_URL}/resetPassword`;
|
|
export const BASE_SIGNUP_URL = `/signup`;
|
|
export const SIGN_UP_URL = `${USER_AUTH_URL}/signup`;
|
|
export const BASE_LOGIN_URL = `/login`;
|
|
export const AUTH_LOGIN_URL = `${USER_AUTH_URL}/login`;
|
|
export const SIGNUP_SUCCESS_URL = `/signup-success`;
|
|
export const WORKSPACE_INVITE_USERS_PAGE_URL = `${WORKSPACE_URL}/invite`;
|
|
export const WORKSPACE_SETTINGS_PAGE_URL = `${WORKSPACE_URL}/settings`;
|
|
export const WORKSPACE_SETTINGS_GENERAL_PAGE_URL = `${WORKSPACE_URL}/settings/general`;
|
|
export const WORKSPACE_SETTINGS_MEMBERS_PAGE_URL = `${WORKSPACE_URL}/settings/members`;
|
|
|
|
export const matchApplicationPath = match(APPLICATIONS_URL);
|
|
export const matchTemplatesPath = match(TEMPLATES_PATH);
|
|
export const matchTemplatesIdPath = match(TEMPLATES_ID_PATH);
|