Skip to content

Commit

Permalink
chore: remove markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 2, 2023
1 parent 3e77dae commit 836dead
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default antfu(
],
prettier: {
html: true,
markdown: true,
css: true,
},
},
Expand Down
5 changes: 1 addition & 4 deletions src/configs/prettier.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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')

Expand Down
4 changes: 0 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion test/fixtures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ runWithConfig(
prettier: {
html: true,
css: true,
markdown: true,
},
},
)
Expand Down

0 comments on commit 836dead

Please sign in to comment.