Skip to content

Commit 8a3bd14

Browse files
committed
chore: reformat
1 parent 7855c0c commit 8a3bd14

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

src/configs/formatters.ts

+13-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
import * as parserPlain from 'eslint-parser-plain'
2-
import {
3-
GLOB_CSS,
4-
GLOB_LESS,
5-
GLOB_MARKDOWN,
6-
GLOB_MDX,
7-
GLOB_POSTCSS,
8-
GLOB_SCSS,
9-
} from '../globs'
2+
import { GLOB_CSS, GLOB_LESS, GLOB_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS } from '../globs'
103
import type { VendoredPrettierOptions } from '../vender/prettier-types'
114
import { ensurePackages, interopDefault } from '../utils'
12-
import type {
13-
FlatConfigItem,
14-
OptionsFormatters,
15-
StylisticConfig,
16-
} from '../types'
5+
import type { FlatConfigItem, OptionsFormatters, StylisticConfig } from '../types'
176
import { StylisticConfigDefaults } from './stylistic'
187

198
export async function formatters(
209
options: OptionsFormatters | true = {},
2110
stylistic: StylisticConfig = {},
2211
): Promise<FlatConfigItem[]> {
23-
await ensurePackages(['eslint-plugin-format'])
12+
await ensurePackages([
13+
'eslint-plugin-format',
14+
])
2415

2516
if (options === true) {
2617
options = {
@@ -32,7 +23,11 @@ export async function formatters(
3223
}
3324
}
3425

35-
const { indent, quotes, semi } = {
26+
const {
27+
indent,
28+
quotes,
29+
semi,
30+
} = {
3631
...StylisticConfigDefaults,
3732
...stylistic,
3833
}
@@ -161,7 +156,9 @@ export async function formatters(
161156
}
162157

163158
if (options.markdown) {
164-
const formatter = options.markdown === true ? 'prettier' : options.markdown
159+
const formatter = options.markdown === true
160+
? 'prettier'
161+
: options.markdown
165162

166163
configs.push(
167164
{

src/configs/markdown.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import * as mdx from 'eslint-plugin-mdx'
22

3-
import type {
4-
FlatConfigItem,
5-
OptionsComponentExts,
6-
OptionsFiles,
7-
OptionsOverrides,
8-
} from '../types'
3+
import type { FlatConfigItem, OptionsComponentExts, OptionsFiles, OptionsOverrides } from '../types'
94
import { GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_OR_MDX } from '../globs'
105

116
export async function markdown(
127
options: OptionsFiles & OptionsComponentExts & OptionsOverrides = {},
138
): Promise<FlatConfigItem[]> {
14-
const { componentExts = [], overrides = {} } = options
9+
const {
10+
componentExts = [],
11+
overrides = {},
12+
} = options
1513

1614
return [
1715
{

0 commit comments

Comments
 (0)