Skip to content

Commit 517d7ca

Browse files
committed
chore: upgrade deps
1 parent 58174a4 commit 517d7ca

File tree

8 files changed

+26
-25
lines changed

8 files changed

+26
-25
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"unplugin": "^1.10.0"
8383
},
8484
"devDependencies": {
85-
"@sxzz/eslint-config": "^3.8.6",
85+
"@sxzz/eslint-config": "^3.8.7",
8686
"@sxzz/prettier-config": "^2.0.1",
8787
"@types/babel__core": "^7.20.5",
8888
"@types/node": "^20.11.30",

pnpm-lock.yaml

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

src/core/options.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import process from 'node:process'
12
import { getPackageInfo } from 'local-pkg'
2-
import { type VueJSXPluginOptions } from '@vue/babel-plugin-jsx'
3-
import { type FilterPattern } from '@rollup/pluginutils'
3+
import type { VueJSXPluginOptions } from '@vue/babel-plugin-jsx'
4+
import type { FilterPattern } from '@rollup/pluginutils'
45

56
export type Vue2JSXOptions = {
67
functional?: boolean
@@ -30,7 +31,7 @@ export type OptionsResolved = Omit<Required<Options>, 'version'> & {
3031
}
3132

3233
export async function resolveOption(
33-
options: Options
34+
options: Options,
3435
): Promise<OptionsResolved> {
3536
const root = options.root || process.cwd()
3637
let version: 2 | 3

src/core/vue2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import TS from '@babel/plugin-syntax-typescript'
44
// @ts-expect-error
55
import vue2Jsx from '@vue/babel-preset-jsx'
66
import { isTS } from './utils'
7-
import { type OptionsResolved } from './options'
7+
import type { OptionsResolved } from './options'
88

99
export const transformVue2 = (
1010
code: string,
1111
id: string,
12-
options: OptionsResolved
12+
options: OptionsResolved,
1313
) => {
1414
const transformOptions: TransformOptions = {
1515
babelrc: false,

src/core/vue3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import vue3Jsx from '@vue/babel-plugin-jsx'
33
// @ts-expect-error
44
import TS from '@babel/plugin-syntax-typescript'
55
import { isTS } from './utils'
6-
import { type OptionsResolved } from './options'
6+
import type { OptionsResolved } from './options'
77

88
export const transformVue3 = (
99
code: string,
1010
id: string,
11-
options: OptionsResolved
11+
options: OptionsResolved,
1212
) => {
1313
const transformOptions: TransformOptions = {
1414
babelrc: false,

tests/vue2.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ describe('Vue 2', () => {
2626
await transform(`<input vModel={refa} />`, {
2727
version: 2,
2828
vModel: false,
29-
})
29+
}),
3030
).toMatchSnapshot()
3131
expect(
3232
await transform(`<input vModel={refa} />`, {
3333
version: 2,
3434
vModel: true,
35-
})
35+
}),
3636
).toMatchSnapshot()
3737
})
3838
})

tests/vue3.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { transformVue3 } from '../src/core/vue3'
55
const transform = async (
66
code: string,
77
isTS = false,
8-
userOptions: Options = {}
8+
userOptions: Options = {},
99
) => {
1010
const options = await resolveOption({
1111
version: 3,
@@ -31,13 +31,13 @@ describe('Vue 3', () => {
3131
await transform(`<input on={{ click: a }} />`, false, {
3232
version: 3,
3333
transformOn: false,
34-
})
34+
}),
3535
).toMatchSnapshot()
3636
expect(
3737
await transform(`<input on={{ click: a }} />`, false, {
3838
version: 3,
3939
transformOn: true,
40-
})
40+
}),
4141
).toMatchSnapshot()
4242
})
4343
})

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"compilerOptions": {
33
"target": "es2022",
4-
"lib": ["es2022"],
54
"jsx": "preserve",
5+
"lib": ["es2022"],
66
"module": "esnext",
77
"moduleResolution": "node",
8-
"types": ["node"],
98
"resolveJsonModule": true,
10-
"esModuleInterop": true,
9+
"types": ["node"],
1110
"strict": true,
1211
"exactOptionalPropertyTypes": true,
1312
"noUnusedLocals": true,
13+
"esModuleInterop": true,
1414
"skipLibCheck": true
1515
},
1616
"include": ["src", "tests"]

0 commit comments

Comments
 (0)