From b6e9a58d9431d3462fb85510c744132d4672390c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=91=E7=A7=91?= Date: Fri, 12 Apr 2024 15:15:48 +0800 Subject: [PATCH] fix: file pattern for htm files (#447) --- src/configs/formatters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, },