prefer-kebab-url-ignore.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. 'beginAuth',
  52. 'brandVariationId',
  53. 'closeEditor',
  54. 'completeRegistration',
  55. 'deactivateOldProjects',
  56. 'deletedSubscription',
  57. 'disconnectAllUsers',
  58. 'editingSession',
  59. 'emailSubscription',
  60. 'enableManagedUsers',
  61. 'externalCollaboration',
  62. 'flushProjectToTpds',
  63. 'indexAll',
  64. 'offboardManagedUser',
  65. 'openEditor',
  66. 'perfTest',
  67. 'pollDropboxForUser',
  68. 'resendInvite',
  69. 'resendManagedUserInvite',
  70. 'salesContactForm',
  71. 'showSupport',
  72. ]),
  73. other: new Set([
  74. 'Project',
  75. 'disableSSO',
  76. 'enableSSO',
  77. 'resendSSOLinkInvite',
  78. 'usersCSV',
  79. ]),
  80. }
  81. module.exports = { ignoreWords }