Skip to content

Commit fed9e7c

Browse files
committed
chore: update to prettier v3.7
1 parent 80e051a commit fed9e7c

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"jsdom": "27.2.0",
5050
"jsdom-global": "3.0.2",
5151
"lint-staged": "16.2.7",
52-
"prettier": "3.6.2",
52+
"prettier": "3.7.4",
5353
"reflect-metadata": "0.2.2",
5454
"rollup": "4.53.3",
5555
"tslib": "2.8.1",

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/baseWrapper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ import { stringifyNode } from './utils/stringifyNode'
3333
import type { HTMLBeautifyOptions } from 'js-beautify'
3434
import beautify from 'js-beautify'
3535

36-
export default abstract class BaseWrapper<ElementType extends Node>
37-
implements WrapperLike
38-
{
36+
export default abstract class BaseWrapper<
37+
ElementType extends Node
38+
> implements WrapperLike {
3939
protected readonly wrapperElement: VueNode<ElementType>
4040
protected abstract getRootNodes(): VueNode[]
4141

src/types.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ interface BaseMountingOptions<Props, Data = {}> {
8686
/**
8787
* Mounting options for `mount` and `shallowMount`
8888
*/
89-
export interface MountingOptions<Props, Data = {}>
90-
extends BaseMountingOptions<Props, Data> {
89+
export interface MountingOptions<Props, Data = {}> extends BaseMountingOptions<
90+
Props,
91+
Data
92+
> {
9193
/**
9294
* Specify where to mount the component.
9395
* Can be a valid CSS selector, or an Element connected to the document.
@@ -99,8 +101,10 @@ export interface MountingOptions<Props, Data = {}>
99101
/**
100102
* Mounting options for `renderToString`
101103
*/
102-
export interface RenderMountingOptions<Props, Data = {}>
103-
extends BaseMountingOptions<Props, Data> {
104+
export interface RenderMountingOptions<
105+
Props,
106+
Data = {}
107+
> extends BaseMountingOptions<Props, Data> {
104108
/**
105109
* Attach to is not available in SSR mode
106110
*/

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export function isComponent(
133133
): component is ConcreteComponent {
134134
return Boolean(
135135
component &&
136-
(typeof component === 'object' || typeof component === 'function')
136+
(typeof component === 'object' || typeof component === 'function')
137137
)
138138
}
139139

src/utils/vueCompatSupport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export function unwrapLegacyVueExtendComponent<T>(
3232
export function isLegacyFunctionalComponent(component: unknown): boolean {
3333
return Boolean(
3434
component &&
35-
typeof component === 'object' &&
36-
hasOwnProperty(component, 'functional') &&
37-
component.functional
35+
typeof component === 'object' &&
36+
hasOwnProperty(component, 'functional') &&
37+
component.functional
3838
)
3939
}

0 commit comments

Comments
 (0)