Skip to content

Commit 4c6176d

Browse files
committed
chore: apply format
1 parent 4a16b20 commit 4c6176d

5 files changed

+25
-20
lines changed

.eslintrc.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
parserOptions: {
77
sourceType: 'module'
88
},
9-
plugins: ["jest"],
9+
plugins: ['jest'],
1010
rules: {
1111
'no-debugger': 'error',
1212
'no-unused-vars': [
@@ -72,7 +72,12 @@ module.exports = {
7272
},
7373
// Node scripts
7474
{
75-
files: ['scripts/**', './*.js', 'packages/**/index.js', 'packages/size-check/**'],
75+
files: [
76+
'scripts/**',
77+
'./*.js',
78+
'packages/**/index.js',
79+
'packages/size-check/**'
80+
],
7681
rules: {
7782
'no-restricted-globals': 'off',
7883
'no-restricted-syntax': 'off'

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"size-global": "node scripts/build.js vue runtime-dom -f global -p",
1010
"size-baseline": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
1111
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
12-
"format": "prettier --write --cache --parser typescript \"packages/**/*.ts?(x)\"",
13-
"format-check": "prettier --check --cache --parser typescript \"packages/**/*.ts?(x)\"",
12+
"format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\"",
13+
"format-check": "prettier --check --cache --parser typescript \"**/*.[tj]s?(x)\"",
1414
"test": "run-s \"test-unit {@}\" \"test-e2e {@}\"",
1515
"test-unit": "jest --filter ./scripts/filter-unit.js",
1616
"test-e2e": "node scripts/build.js vue -f global -d && jest --filter ./scripts/filter-e2e.js --runInBand",

test-dts/defineComponent.test-d.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,13 @@ describe('inject', () => {
10411041
},
10421042
inject: {
10431043
foo: 'foo',
1044-
bar: 'bar',
1044+
bar: 'bar'
10451045
},
10461046
created() {
10471047
expectType<unknown>(this.foo)
10481048
expectType<unknown>(this.bar)
10491049
// @ts-expect-error
1050-
expectError(this.foobar = 1)
1050+
expectError((this.foobar = 1))
10511051
}
10521052
})
10531053

@@ -1059,7 +1059,7 @@ describe('inject', () => {
10591059
expectType<unknown>(this.foo)
10601060
expectType<unknown>(this.bar)
10611061
// @ts-expect-error
1062-
expectError(this.foobar = 1)
1062+
expectError((this.foobar = 1))
10631063
}
10641064
})
10651065

@@ -1073,13 +1073,13 @@ describe('inject', () => {
10731073
bar: {
10741074
from: 'pbar',
10751075
default: 'bar'
1076-
},
1076+
}
10771077
},
10781078
created() {
10791079
expectType<unknown>(this.foo)
10801080
expectType<unknown>(this.bar)
10811081
// @ts-expect-error
1082-
expectError(this.foobar = 1)
1082+
expectError((this.foobar = 1))
10831083
}
10841084
})
10851085

@@ -1088,9 +1088,9 @@ describe('inject', () => {
10881088
props: ['a', 'b'],
10891089
created() {
10901090
// @ts-expect-error
1091-
expectError(this.foo = 1)
1091+
expectError((this.foo = 1))
10921092
// @ts-expect-error
1093-
expectError(this.bar = 1)
1093+
expectError((this.bar = 1))
10941094
}
10951095
})
10961096
})

test-dts/defineCustomElement.test-d.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ describe('inject', () => {
88
},
99
inject: {
1010
foo: 'foo',
11-
bar: 'bar',
11+
bar: 'bar'
1212
},
1313
created() {
1414
expectType<unknown>(this.foo)
1515
expectType<unknown>(this.bar)
1616
// @ts-expect-error
17-
expectError(this.foobar = 1)
17+
expectError((this.foobar = 1))
1818
}
1919
})
2020

@@ -26,7 +26,7 @@ describe('inject', () => {
2626
expectType<unknown>(this.foo)
2727
expectType<unknown>(this.bar)
2828
// @ts-expect-error
29-
expectError(this.foobar = 1)
29+
expectError((this.foobar = 1))
3030
}
3131
})
3232

@@ -40,13 +40,13 @@ describe('inject', () => {
4040
bar: {
4141
from: 'pfoo',
4242
default: 'bar'
43-
},
43+
}
4444
},
4545
created() {
4646
expectType<unknown>(this.foo)
4747
expectType<unknown>(this.bar)
4848
// @ts-expect-error
49-
expectError(this.foobar = 1)
49+
expectError((this.foobar = 1))
5050
}
5151
})
5252

@@ -55,9 +55,9 @@ describe('inject', () => {
5555
props: ['a', 'b'],
5656
created() {
5757
// @ts-expect-error
58-
expectError(this.foo = 1)
58+
expectError((this.foo = 1))
5959
// @ts-expect-error
60-
expectError(this.bar = 1)
60+
expectError((this.bar = 1))
6161
}
6262
})
63-
})
63+
})

test-dts/setupHelpers.test-d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('defineProps w/ union type declaration + withDefaults', () => {
7070
union1: 123,
7171
union2: () => [123],
7272
union3: () => ({ x: 123 }),
73-
union4: () => 123,
73+
union4: () => 123
7474
}
7575
)
7676
})

0 commit comments

Comments
 (0)