From: btea <2356281422@qq.com> Date: Fri, 8 Oct 2021 16:00:05 +0000 (-0500) Subject: chore: prettier format (#4715) [ci skip] X-Git-Tag: v3.2.20~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9613ebe0972f7fe7a9c6820d8258d75d83c463d;p=thirdparty%2Fvuejs%2Fcore.git chore: prettier format (#4715) [ci skip] --- diff --git a/packages/compiler-core/__tests__/transforms/vSlot.spec.ts b/packages/compiler-core/__tests__/transforms/vSlot.spec.ts index 4a7df1e8df..687c4d8b35 100644 --- a/packages/compiler-core/__tests__/transforms/vSlot.spec.ts +++ b/packages/compiler-core/__tests__/transforms/vSlot.spec.ts @@ -780,9 +780,7 @@ describe('compiler: transform component slots', () => { }) test('', () => { - const { slots } = parseWithSlots( - `` - ) + const { slots } = parseWithSlots(``) expect(slots).toMatchObject(toMatch) }) }) diff --git a/packages/compiler-sfc/src/cssVars.ts b/packages/compiler-sfc/src/cssVars.ts index f51269f126..3032e2fbf5 100644 --- a/packages/compiler-sfc/src/cssVars.ts +++ b/packages/compiler-sfc/src/cssVars.ts @@ -12,7 +12,8 @@ import { PluginCreator } from 'postcss' import hash from 'hash-sum' export const CSS_VARS_HELPER = `useCssVars` -export const cssVarRE = /\bv-bind\(\s*(?:'([^']+)'|"([^"]+)"|([^'"][^)]*))\s*\)/g +export const cssVarRE = + /\bv-bind\(\s*(?:'([^']+)'|"([^"]+)"|([^'"][^)]*))\s*\)/g export function genCssVarsFromList( vars: string[], diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index f365e45814..e86b67fa35 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -29,7 +29,9 @@ import { VNode } from '@vue/runtime-core' import * as CSS from 'csstype' -export interface CSSProperties extends CSS.Properties, CSS.PropertiesHyphen { +export interface CSSProperties + extends CSS.Properties, + CSS.PropertiesHyphen { /** * The index signature was removed to enable closed typing for style * using CSSType. You're able to use type assertion or module augmentation