diff --git a/config/default.yml b/config/default.yml index feff9cc..38df658 100644 --- a/config/default.yml +++ b/config/default.yml @@ -10,18 +10,17 @@ Markdown: # Keep in sync with MARKDOWN_EXTENSIONS Layout/CommentIndentation: &markdown_excludes Exclude: - - '**/*.md' - - '**/*.livemd' - - '**/*.markdown' - - '**/*.mdown' - - '**/*.mdwn' - - '**/*.mdx' - - '**/*.mkd' - - '**/*.mkdn' - - '**/*.mkdown' - - '**/*.ronn' - - '**/*.scd' - - '**/*.workbook' + - "**/*.md" + - "**/*.livemd" + - "**/*.markdown" + - "**/*.mdown" + - "**/*.mdwn" + - "**/*.mkd" + - "**/*.mkdn" + - "**/*.mkdown" + - "**/*.ronn" + - "**/*.scd" + - "**/*.workbook" Layout/LeadingCommentSpace: <<: *markdown_excludes diff --git a/lib/rubocop/markdown/rubocop_ext.rb b/lib/rubocop/markdown/rubocop_ext.rb index 1283b97..b399cb1 100644 --- a/lib/rubocop/markdown/rubocop_ext.rb +++ b/lib/rubocop/markdown/rubocop_ext.rb @@ -2,7 +2,6 @@ module RuboCop module Markdown # :nodoc: - # According to Linguist. mdx was dropped but is being kept for backwards compatibility. # See https://github.com/github-linguist/linguist/blob/8c380f360ce00b95fa08d14ce0ebccd481af1b33/lib/linguist/languages.yml#L4088-L4098 # Keep in sync with config/default.yml MARKDOWN_EXTENSIONS = %w[ @@ -11,7 +10,6 @@ module Markdown # :nodoc: .markdown .mdown .mdwn - .mdx .mkd .mkdn .mkdown diff --git a/test/fixtures/file_extensions/05.mdx b/test/fixtures/file_extensions/05.mdx deleted file mode 100644 index 0c0c46f..0000000 --- a/test/fixtures/file_extensions/05.mdx +++ /dev/null @@ -1,3 +0,0 @@ -```ruby -puts 'John' -``` diff --git a/test/integration_test.rb b/test/integration_test.rb index 41b9c7d..f3daa60 100644 --- a/test/integration_test.rb +++ b/test/integration_test.rb @@ -68,7 +68,6 @@ def test_file_extensions assert_includes res, "file_extensions/02.markdown:" assert_includes res, "file_extensions/03.mdown:" assert_includes res, "file_extensions/04.mdwn:" - assert_includes res, "file_extensions/05.mdx:" assert_includes res, "file_extensions/06.mkd:" assert_includes res, "file_extensions/07.mkdn:" assert_includes res, "file_extensions/08.mkdown:"