From 836dead046fa34d334ecf8f557b4a04622f1a4a8 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 2 Dec 2023 09:54:41 +0100 Subject: [PATCH] chore: remove markdown --- eslint.config.js | 1 - src/configs/prettier.ts | 5 +---- src/types.ts | 4 ---- test/fixtures.test.ts | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 9b37975d71..8c92544edd 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -13,7 +13,6 @@ export default antfu( ], prettier: { html: true, - markdown: true, css: true, }, }, diff --git a/src/configs/prettier.ts b/src/configs/prettier.ts index 7d504ebb0b..d3d00d326b 100644 --- a/src/configs/prettier.ts +++ b/src/configs/prettier.ts @@ -1,4 +1,4 @@ -import { GLOB_CSS, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS } from '../globs' +import { GLOB_CSS, GLOB_LESS, GLOB_POSTCSS, GLOB_SCSS } from '../globs' import type { VendoredPrettierOptions } from '../vender/prettier-types' import { ensurePackages, interopDefault } from '../utils' import type { FlatConfigItem, OptionsPrettier, StylisticConfig } from '../types' @@ -52,9 +52,6 @@ export async function prettier( if (options.graphql) rules.graphql ||= ['**/*.graphql', '**/*.gql'] - if (options.markdown) - rules.markdown ||= [GLOB_MARKDOWN] - if (!Object.keys(rules).length) throw new Error('No languages specified for Prettier') diff --git a/src/types.ts b/src/types.ts index ee6bc6214c..5c222ac860 100644 --- a/src/types.ts +++ b/src/types.ts @@ -91,10 +91,6 @@ export interface OptionsPrettier { * Enable Prettier support for GraphQL. */ graphql?: boolean - /** - * Enable Prettier support for Markdown. - */ - markdown?: boolean /** * Custom files to apply Prettier. diff --git a/test/fixtures.test.ts b/test/fixtures.test.ts index 78cd8ddb4b..4afdbb5c93 100644 --- a/test/fixtures.test.ts +++ b/test/fixtures.test.ts @@ -47,7 +47,6 @@ runWithConfig( prettier: { html: true, css: true, - markdown: true, }, }, )