Browse Source

Rename JSX files with proper `.jsx` extension (#23733)

closed-social-glitch-2
Renaud Chaput 1 year ago
committed by GitHub
parent
commit
44a7d87cb1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
248 changed files with 10 additions and 2 deletions
  1. +4
    -1
      .eslintrc.js
  2. +2
    -0
      .github/workflows/lint-js.yml
  3. +2
    -0
      .github/workflows/test-js.yml
  4. +0
    -0
      app/javascript/mastodon/components/__tests__/__snapshots__/autosuggest_emoji-test.jsx.snap
  5. +0
    -0
      app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.jsx.snap
  6. +0
    -0
      app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.jsx.snap
  7. +0
    -0
      app/javascript/mastodon/components/__tests__/__snapshots__/button-test.jsx.snap
  8. +0
    -0
      app/javascript/mastodon/components/__tests__/__snapshots__/display_name-test.jsx.snap
  9. +0
    -0
      app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.jsx
  10. +0
    -0
      app/javascript/mastodon/components/__tests__/avatar-test.jsx
  11. +0
    -0
      app/javascript/mastodon/components/__tests__/avatar_overlay-test.jsx
  12. +0
    -0
      app/javascript/mastodon/components/__tests__/button-test.jsx
  13. +0
    -0
      app/javascript/mastodon/components/__tests__/display_name-test.jsx
  14. +0
    -0
      app/javascript/mastodon/components/account.jsx
  15. +0
    -0
      app/javascript/mastodon/components/admin/Counter.jsx
  16. +0
    -0
      app/javascript/mastodon/components/admin/Dimension.jsx
  17. +0
    -0
      app/javascript/mastodon/components/admin/ReportReasonSelector.jsx
  18. +0
    -0
      app/javascript/mastodon/components/admin/Retention.jsx
  19. +0
    -0
      app/javascript/mastodon/components/admin/Trends.jsx
  20. +0
    -0
      app/javascript/mastodon/components/animated_number.jsx
  21. +0
    -0
      app/javascript/mastodon/components/attachment_list.jsx
  22. +0
    -0
      app/javascript/mastodon/components/autosuggest_emoji.jsx
  23. +0
    -0
      app/javascript/mastodon/components/autosuggest_hashtag.jsx
  24. +0
    -0
      app/javascript/mastodon/components/autosuggest_input.jsx
  25. +0
    -0
      app/javascript/mastodon/components/autosuggest_textarea.jsx
  26. +0
    -0
      app/javascript/mastodon/components/avatar.jsx
  27. +0
    -0
      app/javascript/mastodon/components/avatar_composite.jsx
  28. +0
    -0
      app/javascript/mastodon/components/avatar_overlay.jsx
  29. +0
    -0
      app/javascript/mastodon/components/blurhash.jsx
  30. +0
    -0
      app/javascript/mastodon/components/button.jsx
  31. +0
    -0
      app/javascript/mastodon/components/check.jsx
  32. +0
    -0
      app/javascript/mastodon/components/column.jsx
  33. +0
    -0
      app/javascript/mastodon/components/column_back_button.jsx
  34. +0
    -0
      app/javascript/mastodon/components/column_back_button_slim.jsx
  35. +0
    -0
      app/javascript/mastodon/components/column_header.jsx
  36. +0
    -0
      app/javascript/mastodon/components/common_counter.jsx
  37. +0
    -0
      app/javascript/mastodon/components/dismissable_banner.jsx
  38. +0
    -0
      app/javascript/mastodon/components/display_name.jsx
  39. +0
    -0
      app/javascript/mastodon/components/domain.jsx
  40. +0
    -0
      app/javascript/mastodon/components/dropdown_menu.jsx
  41. +0
    -0
      app/javascript/mastodon/components/edited_timestamp/index.jsx
  42. +0
    -0
      app/javascript/mastodon/components/error_boundary.jsx
  43. +0
    -0
      app/javascript/mastodon/components/gifv.jsx
  44. +0
    -0
      app/javascript/mastodon/components/hashtag.jsx
  45. +0
    -0
      app/javascript/mastodon/components/icon.jsx
  46. +0
    -0
      app/javascript/mastodon/components/icon_button.jsx
  47. +0
    -0
      app/javascript/mastodon/components/icon_with_badge.jsx
  48. +0
    -0
      app/javascript/mastodon/components/image.jsx
  49. +0
    -0
      app/javascript/mastodon/components/inline_account.jsx
  50. +0
    -0
      app/javascript/mastodon/components/intersection_observer_article.jsx
  51. +0
    -0
      app/javascript/mastodon/components/load_gap.jsx
  52. +0
    -0
      app/javascript/mastodon/components/load_more.jsx
  53. +0
    -0
      app/javascript/mastodon/components/load_pending.jsx
  54. +0
    -0
      app/javascript/mastodon/components/loading_indicator.jsx
  55. +0
    -0
      app/javascript/mastodon/components/logo.jsx
  56. +0
    -0
      app/javascript/mastodon/components/media_attachments.jsx
  57. +0
    -0
      app/javascript/mastodon/components/media_gallery.jsx
  58. +0
    -0
      app/javascript/mastodon/components/missing_indicator.jsx
  59. +0
    -0
      app/javascript/mastodon/components/modal_root.jsx
  60. +0
    -0
      app/javascript/mastodon/components/navigation_portal.jsx
  61. +0
    -0
      app/javascript/mastodon/components/not_signed_in_indicator.jsx
  62. +0
    -0
      app/javascript/mastodon/components/picture_in_picture_placeholder.jsx
  63. +0
    -0
      app/javascript/mastodon/components/poll.jsx
  64. +0
    -0
      app/javascript/mastodon/components/radio_button.jsx
  65. +0
    -0
      app/javascript/mastodon/components/regeneration_indicator.jsx
  66. +0
    -0
      app/javascript/mastodon/components/relative_timestamp.jsx
  67. +0
    -0
      app/javascript/mastodon/components/scrollable_list.jsx
  68. +0
    -0
      app/javascript/mastodon/components/server_banner.jsx
  69. +0
    -0
      app/javascript/mastodon/components/short_number.jsx
  70. +0
    -0
      app/javascript/mastodon/components/skeleton.jsx
  71. +0
    -0
      app/javascript/mastodon/components/status.jsx
  72. +0
    -0
      app/javascript/mastodon/components/status_action_bar.jsx
  73. +0
    -0
      app/javascript/mastodon/components/status_content.jsx
  74. +0
    -0
      app/javascript/mastodon/components/status_list.jsx
  75. +0
    -0
      app/javascript/mastodon/components/timeline_hint.jsx
  76. +0
    -0
      app/javascript/mastodon/containers/account_container.jsx
  77. +0
    -0
      app/javascript/mastodon/containers/admin_component.jsx
  78. +0
    -0
      app/javascript/mastodon/containers/compose_container.jsx
  79. +0
    -0
      app/javascript/mastodon/containers/domain_container.jsx
  80. +0
    -0
      app/javascript/mastodon/containers/mastodon.jsx
  81. +0
    -0
      app/javascript/mastodon/containers/media_container.jsx
  82. +0
    -0
      app/javascript/mastodon/containers/status_container.jsx
  83. +0
    -0
      app/javascript/mastodon/features/about/index.jsx
  84. +0
    -0
      app/javascript/mastodon/features/account/components/account_note.jsx
  85. +0
    -0
      app/javascript/mastodon/features/account/components/featured_tags.jsx
  86. +0
    -0
      app/javascript/mastodon/features/account/components/follow_request_note.jsx
  87. +0
    -0
      app/javascript/mastodon/features/account/components/header.jsx
  88. +0
    -0
      app/javascript/mastodon/features/account/navigation.jsx
  89. +0
    -0
      app/javascript/mastodon/features/account_gallery/components/media_item.jsx
  90. +0
    -0
      app/javascript/mastodon/features/account_gallery/index.jsx
  91. +0
    -0
      app/javascript/mastodon/features/account_timeline/components/header.jsx
  92. +0
    -0
      app/javascript/mastodon/features/account_timeline/components/limited_account_hint.jsx
  93. +0
    -0
      app/javascript/mastodon/features/account_timeline/components/moved_note.jsx
  94. +0
    -0
      app/javascript/mastodon/features/account_timeline/containers/header_container.jsx
  95. +0
    -0
      app/javascript/mastodon/features/account_timeline/index.jsx
  96. +0
    -0
      app/javascript/mastodon/features/audio/index.jsx
  97. +0
    -0
      app/javascript/mastodon/features/blocks/index.jsx
  98. +0
    -0
      app/javascript/mastodon/features/bookmarked_statuses/index.jsx
  99. +0
    -0
      app/javascript/mastodon/features/closed_registrations_modal/index.jsx
  100. +0
    -0
      app/javascript/mastodon/features/community_timeline/components/column_settings.jsx

+ 4
- 1
.eslintrc.js View File

@ -43,7 +43,7 @@ module.exports = {
version: 'detect',
},
'import/extensions': [
'.js',
'.js', '.jsx',
],
'import/ignore': [
'node_modules',
@ -52,6 +52,7 @@ module.exports = {
'import/resolver': {
node: {
paths: ['app/javascript'],
extensions: ['.js', '.jsx'],
},
},
},
@ -111,6 +112,7 @@ module.exports = {
semi: 'error',
'valid-typeof': 'error',
'react/jsx-filename-extension': ['error', { 'allow': 'as-needed' }],
'react/jsx-boolean-value': 'error',
'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
'react/jsx-curly-spacing': 'error',
@ -185,6 +187,7 @@ module.exports = {
'always',
{
js: 'never',
jsx: 'never',
},
],
'import/newline-after-import': 'error',

+ 2
- 0
.github/workflows/lint-js.yml View File

@ -10,6 +10,7 @@ on:
- '.prettier*'
- '.eslint*'
- '**/*.js'
- '**/*.jsx'
- '.github/workflows/lint-js.yml'
pull_request:
@ -20,6 +21,7 @@ on:
- '.prettier*'
- '.eslint*'
- '**/*.js'
- '**/*.jsx'
- '.github/workflows/lint-js.yml'
jobs:

+ 2
- 0
.github/workflows/test-js.yml View File

@ -8,6 +8,7 @@ on:
- 'yarn.lock'
- '.nvmrc'
- '**/*.js'
- '**/*.jsx'
- '**/*.snap'
- '.github/workflows/test-js.yml'
@ -17,6 +18,7 @@ on:
- 'yarn.lock'
- '.nvmrc'
- '**/*.js'
- '**/*.jsx'
- '**/*.snap'
- '.github/workflows/test-js.yml'

app/javascript/mastodon/components/__tests__/__snapshots__/autosuggest_emoji-test.js.snap → app/javascript/mastodon/components/__tests__/__snapshots__/autosuggest_emoji-test.jsx.snap View File


app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.js.snap → app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.jsx.snap View File


app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.js.snap → app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.jsx.snap View File


app/javascript/mastodon/components/__tests__/__snapshots__/button-test.js.snap → app/javascript/mastodon/components/__tests__/__snapshots__/button-test.jsx.snap View File


app/javascript/mastodon/components/__tests__/__snapshots__/display_name-test.js.snap → app/javascript/mastodon/components/__tests__/__snapshots__/display_name-test.jsx.snap View File


app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.js → app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.jsx View File


app/javascript/mastodon/components/__tests__/avatar-test.js → app/javascript/mastodon/components/__tests__/avatar-test.jsx View File


app/javascript/mastodon/components/__tests__/avatar_overlay-test.js → app/javascript/mastodon/components/__tests__/avatar_overlay-test.jsx View File


app/javascript/mastodon/components/__tests__/button-test.js → app/javascript/mastodon/components/__tests__/button-test.jsx View File


app/javascript/mastodon/components/__tests__/display_name-test.js → app/javascript/mastodon/components/__tests__/display_name-test.jsx View File


app/javascript/mastodon/components/account.js → app/javascript/mastodon/components/account.jsx View File


app/javascript/mastodon/components/admin/Counter.js → app/javascript/mastodon/components/admin/Counter.jsx View File


app/javascript/mastodon/components/admin/Dimension.js → app/javascript/mastodon/components/admin/Dimension.jsx View File


app/javascript/mastodon/components/admin/ReportReasonSelector.js → app/javascript/mastodon/components/admin/ReportReasonSelector.jsx View File


app/javascript/mastodon/components/admin/Retention.js → app/javascript/mastodon/components/admin/Retention.jsx View File


app/javascript/mastodon/components/admin/Trends.js → app/javascript/mastodon/components/admin/Trends.jsx View File


app/javascript/mastodon/components/animated_number.js → app/javascript/mastodon/components/animated_number.jsx View File


app/javascript/mastodon/components/attachment_list.js → app/javascript/mastodon/components/attachment_list.jsx View File


app/javascript/mastodon/components/autosuggest_emoji.js → app/javascript/mastodon/components/autosuggest_emoji.jsx View File


app/javascript/mastodon/components/autosuggest_hashtag.js → app/javascript/mastodon/components/autosuggest_hashtag.jsx View File


app/javascript/mastodon/components/autosuggest_input.js → app/javascript/mastodon/components/autosuggest_input.jsx View File


app/javascript/mastodon/components/autosuggest_textarea.js → app/javascript/mastodon/components/autosuggest_textarea.jsx View File


app/javascript/mastodon/components/avatar.js → app/javascript/mastodon/components/avatar.jsx View File


app/javascript/mastodon/components/avatar_composite.js → app/javascript/mastodon/components/avatar_composite.jsx View File


app/javascript/mastodon/components/avatar_overlay.js → app/javascript/mastodon/components/avatar_overlay.jsx View File


app/javascript/mastodon/components/blurhash.js → app/javascript/mastodon/components/blurhash.jsx View File


app/javascript/mastodon/components/button.js → app/javascript/mastodon/components/button.jsx View File


app/javascript/mastodon/components/check.js → app/javascript/mastodon/components/check.jsx View File


app/javascript/mastodon/components/column.js → app/javascript/mastodon/components/column.jsx View File


app/javascript/mastodon/components/column_back_button.js → app/javascript/mastodon/components/column_back_button.jsx View File


app/javascript/mastodon/components/column_back_button_slim.js → app/javascript/mastodon/components/column_back_button_slim.jsx View File


app/javascript/mastodon/components/column_header.js → app/javascript/mastodon/components/column_header.jsx View File


app/javascript/mastodon/components/common_counter.js → app/javascript/mastodon/components/common_counter.jsx View File


app/javascript/mastodon/components/dismissable_banner.js → app/javascript/mastodon/components/dismissable_banner.jsx View File


app/javascript/mastodon/components/display_name.js → app/javascript/mastodon/components/display_name.jsx View File


app/javascript/mastodon/components/domain.js → app/javascript/mastodon/components/domain.jsx View File


app/javascript/mastodon/components/dropdown_menu.js → app/javascript/mastodon/components/dropdown_menu.jsx View File


app/javascript/mastodon/components/edited_timestamp/index.js → app/javascript/mastodon/components/edited_timestamp/index.jsx View File


app/javascript/mastodon/components/error_boundary.js → app/javascript/mastodon/components/error_boundary.jsx View File


app/javascript/mastodon/components/gifv.js → app/javascript/mastodon/components/gifv.jsx View File


app/javascript/mastodon/components/hashtag.js → app/javascript/mastodon/components/hashtag.jsx View File


app/javascript/mastodon/components/icon.js → app/javascript/mastodon/components/icon.jsx View File


app/javascript/mastodon/components/icon_button.js → app/javascript/mastodon/components/icon_button.jsx View File


app/javascript/mastodon/components/icon_with_badge.js → app/javascript/mastodon/components/icon_with_badge.jsx View File


app/javascript/mastodon/components/image.js → app/javascript/mastodon/components/image.jsx View File


app/javascript/mastodon/components/inline_account.js → app/javascript/mastodon/components/inline_account.jsx View File


app/javascript/mastodon/components/intersection_observer_article.js → app/javascript/mastodon/components/intersection_observer_article.jsx View File


app/javascript/mastodon/components/load_gap.js → app/javascript/mastodon/components/load_gap.jsx View File


app/javascript/mastodon/components/load_more.js → app/javascript/mastodon/components/load_more.jsx View File


app/javascript/mastodon/components/load_pending.js → app/javascript/mastodon/components/load_pending.jsx View File


app/javascript/mastodon/components/loading_indicator.js → app/javascript/mastodon/components/loading_indicator.jsx View File


app/javascript/mastodon/components/logo.js → app/javascript/mastodon/components/logo.jsx View File


app/javascript/mastodon/components/media_attachments.js → app/javascript/mastodon/components/media_attachments.jsx View File


app/javascript/mastodon/components/media_gallery.js → app/javascript/mastodon/components/media_gallery.jsx View File


app/javascript/mastodon/components/missing_indicator.js → app/javascript/mastodon/components/missing_indicator.jsx View File


app/javascript/mastodon/components/modal_root.js → app/javascript/mastodon/components/modal_root.jsx View File


app/javascript/mastodon/components/navigation_portal.js → app/javascript/mastodon/components/navigation_portal.jsx View File


app/javascript/mastodon/components/not_signed_in_indicator.js → app/javascript/mastodon/components/not_signed_in_indicator.jsx View File


app/javascript/mastodon/components/picture_in_picture_placeholder.js → app/javascript/mastodon/components/picture_in_picture_placeholder.jsx View File


app/javascript/mastodon/components/poll.js → app/javascript/mastodon/components/poll.jsx View File


app/javascript/mastodon/components/radio_button.js → app/javascript/mastodon/components/radio_button.jsx View File


app/javascript/mastodon/components/regeneration_indicator.js → app/javascript/mastodon/components/regeneration_indicator.jsx View File


app/javascript/mastodon/components/relative_timestamp.js → app/javascript/mastodon/components/relative_timestamp.jsx View File


app/javascript/mastodon/components/scrollable_list.js → app/javascript/mastodon/components/scrollable_list.jsx View File


app/javascript/mastodon/components/server_banner.js → app/javascript/mastodon/components/server_banner.jsx View File


app/javascript/mastodon/components/short_number.js → app/javascript/mastodon/components/short_number.jsx View File


app/javascript/mastodon/components/skeleton.js → app/javascript/mastodon/components/skeleton.jsx View File


app/javascript/mastodon/components/status.js → app/javascript/mastodon/components/status.jsx View File


app/javascript/mastodon/components/status_action_bar.js → app/javascript/mastodon/components/status_action_bar.jsx View File


app/javascript/mastodon/components/status_content.js → app/javascript/mastodon/components/status_content.jsx View File


app/javascript/mastodon/components/status_list.js → app/javascript/mastodon/components/status_list.jsx View File


app/javascript/mastodon/components/timeline_hint.js → app/javascript/mastodon/components/timeline_hint.jsx View File


app/javascript/mastodon/containers/account_container.js → app/javascript/mastodon/containers/account_container.jsx View File


app/javascript/mastodon/containers/admin_component.js → app/javascript/mastodon/containers/admin_component.jsx View File


app/javascript/mastodon/containers/compose_container.js → app/javascript/mastodon/containers/compose_container.jsx View File


app/javascript/mastodon/containers/domain_container.js → app/javascript/mastodon/containers/domain_container.jsx View File


app/javascript/mastodon/containers/mastodon.js → app/javascript/mastodon/containers/mastodon.jsx View File


app/javascript/mastodon/containers/media_container.js → app/javascript/mastodon/containers/media_container.jsx View File


app/javascript/mastodon/containers/status_container.js → app/javascript/mastodon/containers/status_container.jsx View File


app/javascript/mastodon/features/about/index.js → app/javascript/mastodon/features/about/index.jsx View File


app/javascript/mastodon/features/account/components/account_note.js → app/javascript/mastodon/features/account/components/account_note.jsx View File


app/javascript/mastodon/features/account/components/featured_tags.js → app/javascript/mastodon/features/account/components/featured_tags.jsx View File


app/javascript/mastodon/features/account/components/follow_request_note.js → app/javascript/mastodon/features/account/components/follow_request_note.jsx View File


app/javascript/mastodon/features/account/components/header.js → app/javascript/mastodon/features/account/components/header.jsx View File


app/javascript/mastodon/features/account/navigation.js → app/javascript/mastodon/features/account/navigation.jsx View File


app/javascript/mastodon/features/account_gallery/components/media_item.js → app/javascript/mastodon/features/account_gallery/components/media_item.jsx View File


app/javascript/mastodon/features/account_gallery/index.js → app/javascript/mastodon/features/account_gallery/index.jsx View File


app/javascript/mastodon/features/account_timeline/components/header.js → app/javascript/mastodon/features/account_timeline/components/header.jsx View File


app/javascript/mastodon/features/account_timeline/components/limited_account_hint.js → app/javascript/mastodon/features/account_timeline/components/limited_account_hint.jsx View File


app/javascript/mastodon/features/account_timeline/components/moved_note.js → app/javascript/mastodon/features/account_timeline/components/moved_note.jsx View File


app/javascript/mastodon/features/account_timeline/containers/header_container.js → app/javascript/mastodon/features/account_timeline/containers/header_container.jsx View File


app/javascript/mastodon/features/account_timeline/index.js → app/javascript/mastodon/features/account_timeline/index.jsx View File


app/javascript/mastodon/features/audio/index.js → app/javascript/mastodon/features/audio/index.jsx View File


app/javascript/mastodon/features/blocks/index.js → app/javascript/mastodon/features/blocks/index.jsx View File


app/javascript/mastodon/features/bookmarked_statuses/index.js → app/javascript/mastodon/features/bookmarked_statuses/index.jsx View File


app/javascript/mastodon/features/closed_registrations_modal/index.js → app/javascript/mastodon/features/closed_registrations_modal/index.jsx View File


app/javascript/mastodon/features/community_timeline/components/column_settings.js → app/javascript/mastodon/features/community_timeline/components/column_settings.jsx View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save