diff --git a/src/configs/formatters.ts b/src/configs/formatters.ts index aa44d90ba8..1592801e8d 100644 --- a/src/configs/formatters.ts +++ b/src/configs/formatters.ts @@ -1,5 +1,5 @@ import { isPackageExists } from 'local-pkg' -import { GLOB_ASTRO, GLOB_CSS, GLOB_GRAPHQL, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS } from '../globs' +import { GLOB_ASTRO, GLOB_CSS, GLOB_GRAPHQL, GLOB_HTML, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS } from '../globs' import type { VendoredPrettierOptions } from '../vender/prettier-types' import { ensurePackages, interopDefault, parserPlain } from '../utils' import type { OptionsFormatters, StylisticConfig, TypedFlatConfigItem } from '../types' @@ -125,7 +125,7 @@ export async function formatters( if (options.html) { configs.push({ - files: ['**/*.html'], + files: [GLOB_HTML], languageOptions: { parser: parserPlain, },