Skip to content

Commit 3b1f334

Browse files
committed
chore: reformat
1 parent 7855c0c commit 3b1f334

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

src/configs/formatters.ts

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
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(
@@ -32,7 +21,11 @@ export async function formatters(
3221
}
3322
}
3423

35-
const { indent, quotes, semi } = {
24+
const {
25+
indent,
26+
quotes,
27+
semi,
28+
} = {
3629
...StylisticConfigDefaults,
3730
...stylistic,
3831
}
@@ -161,7 +154,9 @@ export async function formatters(
161154
}
162155

163156
if (options.markdown) {
164-
const formatter = options.markdown === true ? 'prettier' : options.markdown
157+
const formatter = options.markdown === true
158+
? 'prettier'
159+
: options.markdown
165160

166161
configs.push(
167162
{

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)