Skip to content

Commit b6e9a58

Browse files
authoredApr 12, 2024··
fix: file pattern for htm files (#447)
1 parent d7a157a commit b6e9a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/configs/formatters.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isPackageExists } from 'local-pkg'
2-
import { GLOB_ASTRO, GLOB_CSS, GLOB_GRAPHQL, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS } from '../globs'
2+
import { GLOB_ASTRO, GLOB_CSS, GLOB_GRAPHQL, GLOB_HTML, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS } from '../globs'
33
import type { VendoredPrettierOptions } from '../vender/prettier-types'
44
import { ensurePackages, interopDefault, parserPlain } from '../utils'
55
import type { OptionsFormatters, StylisticConfig, TypedFlatConfigItem } from '../types'
@@ -125,7 +125,7 @@ export async function formatters(
125125

126126
if (options.html) {
127127
configs.push({
128-
files: ['**/*.html'],
128+
files: [GLOB_HTML],
129129
languageOptions: {
130130
parser: parserPlain,
131131
},

0 commit comments

Comments
 (0)
Please sign in to comment.