prefer-kebab-url-ignore.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // URL parts should be kebab-case, but we didn't have this rule in the past.
  2. // The ESLint rule `prefer-kebab-url` will ignore these "legacy" URL parts.
  3. const ignoreWords = {
  4. snake: new Set([
  5. 'clear_saml_data',
  6. 'confirm_link',
  7. 'confirm_university_domain',
  8. 'create_recurly_account',
  9. 'current_history_content',
  10. 'current_user',
  11. 'default_email',
  12. 'disable_managed_users',
  13. 'doc_snapshot',
  14. 'enable_history_ranges_support',
  15. 'features_override',
  16. 'generate_password_reset_url',
  17. 'get_assignment',
  18. 'get_clone',
  19. 'health_check',
  20. 'institutional_emails',
  21. 'latest_template',
  22. 'link_after_saml_response',
  23. 'linked_file',
  24. 'metrics_segmentation',
  25. 'new_users',
  26. 'no_autostart_post_gateway',
  27. 'personal_info',
  28. 'planned_maintenance',
  29. 'refresh_features',
  30. 'register_admin',
  31. 'register_ldap_admin',
  32. 'register_saml_admin',
  33. 'restore_file',
  34. 'revert_file',
  35. 'saved_vers',
  36. 'send_test_email',
  37. 'session_maintenance',
  38. 'set_in_session',
  39. 'sign_in_to_link',
  40. 'split_test',
  41. 'sso_configuration_test',
  42. 'sso_email',
  43. 'sso_enrollment',
  44. 'track_changes',
  45. 'update_admin',
  46. 'user_details',
  47. ]),
  48. camel: new Set([
  49. 'addWorkflowScope',
  50. 'aiErrorAssistant',
  51. 'aiFeatureUsage',
  52. 'beginAuth',
  53. 'brandVariationId',
  54. 'closeEditor',
  55. 'completeRegistration',
  56. 'deactivateOldProjects',
  57. 'deletedSubscription',
  58. 'disconnectAllUsers',
  59. 'editingSession',
  60. 'emailSubscription',
  61. 'enableManagedUsers',
  62. 'externalCollaboration',
  63. 'flushProjectToTpds',
  64. 'indexAll',
  65. 'offboardManagedUser',
  66. 'openEditor',
  67. 'perfTest',
  68. 'pollDropboxForUser',
  69. 'resendInvite',
  70. 'resendManagedUserInvite',
  71. 'salesContactForm',
  72. 'showSupport',
  73. ]),
  74. other: new Set([
  75. 'Project',
  76. 'disableSSO',
  77. 'enableSSO',
  78. 'resendSSOLinkInvite',
  79. 'usersCSV',
  80. ]),
  81. }
  82. module.exports = { ignoreWords }