Skip to content

Commit fde3719

Browse files
committed
chore: fix format
1 parent b1f096d commit fde3719

File tree

17 files changed

+3225
-5149
lines changed

17 files changed

+3225
-5149
lines changed

examples/backend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"vue": "^3.3.4",
15-
"vue-i18n": "workspace:*"
15+
"vue-i18n": "11.1.12"
1616
},
1717
"devDependencies": {
1818
"@vitejs/plugin-vue": "^4.2.3",
@@ -26,7 +26,7 @@
2626
"body-parser": "^1.20.3",
2727
"jiti": "^1.19.3",
2828
"ofetch": "^1.1.1",
29-
"@intlify/unplugin-vue-i18n": "^0.12.0",
30-
"@intlify/bundle-utils": "next"
29+
"@intlify/unplugin-vue-i18n": "^11.0.1",
30+
"@intlify/bundle-utils": "^10.0.1"
3131
}
3232
}

examples/lazy-loading/vite/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
},
1010
"dependencies": {
1111
"vue": "^3.3.4",
12-
"vue-i18n": "workspace:*",
12+
"vue-i18n": "11.1.12",
1313
"vue-router": "4"
1414
},
1515
"devDependencies": {
16-
"@intlify/unplugin-vue-i18n": "^0.12.0",
16+
"@intlify/unplugin-vue-i18n": "^11.0.1",
1717
"@vitejs/plugin-vue": "^4.2.3",
1818
"typescript": "^5.0.2",
1919
"vite": "^4.5.2",

examples/lazy-loading/vite/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
2+
import vue from '@vitejs/plugin-vue'
13
import path from 'path'
24
import { defineConfig } from 'vite'
3-
import vue from '@vitejs/plugin-vue'
4-
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
55

66
export default defineConfig({
77
plugins: [

examples/storybook/.prettierrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/storybook/.storybook/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config: StorybookConfig = {
55
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions'],
66
framework: {
77
name: '@storybook/vue3-vite',
8-
options: {},
9-
},
8+
options: {}
9+
}
1010
}
1111
export default config

examples/storybook/.storybook/preview.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const i18n: I18n = createI18n({
1010
fallbackLocale: 'en',
1111
messages: {
1212
en,
13-
fr,
14-
},
13+
fr
14+
}
1515
})
1616

17-
setup((app) => {
17+
setup(app => {
1818
app.use(i18n)
1919
})
2020

@@ -27,11 +27,11 @@ export const globalTypes = {
2727
icon: 'globe',
2828
items: [
2929
{ value: 'en', title: 'English' },
30-
{ value: 'fr', title: 'French' },
30+
{ value: 'fr', title: 'French' }
3131
],
32-
showName: true,
33-
},
34-
},
32+
showName: true
33+
}
34+
}
3535
}
3636

3737
// Decorator for updating locale
@@ -45,20 +45,20 @@ export const decorators = [
4545

4646
return {
4747
components: { story },
48-
template: '<story />',
48+
template: '<story />'
4949
}
50-
},
50+
}
5151
]
5252

5353
const preview: Preview = {
5454
parameters: {
5555
controls: {
5656
matchers: {
5757
color: /(background|color)$/i,
58-
date: /Date$/i,
59-
},
60-
},
61-
},
58+
date: /Date$/i
59+
}
60+
}
61+
}
6262
}
6363

6464
export default preview
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { globalIgnores } from 'eslint/config'
1+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
22
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
33
import pluginVue from 'eslint-plugin-vue'
4-
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
4+
import { globalIgnores } from 'eslint/config'
55

66
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
77
// import { configureVueProject } from '@vue/eslint-config-typescript'
@@ -11,12 +11,12 @@ import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
1111
export default defineConfigWithVueTs(
1212
{
1313
name: 'app/files-to-lint',
14-
files: ['**/*.{ts,mts,tsx,vue}'],
14+
files: ['**/*.{ts,mts,tsx,vue}']
1515
},
1616

1717
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
1818

1919
pluginVue.configs['flat/essential'],
2020
vueTsConfigs.recommended,
21-
skipFormatting,
21+
skipFormatting
2222
)

examples/storybook/src/stories/Button.stories.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ const meta = {
1111
tags: ['autodocs'],
1212
argTypes: {
1313
size: { control: 'select', options: ['small', 'medium', 'large'] },
14-
backgroundColor: { control: 'color' },
14+
backgroundColor: { control: 'color' }
1515
},
1616
args: {
1717
primary: false,
1818
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
19-
onClick: fn(),
20-
},
19+
onClick: fn()
20+
}
2121
} satisfies Meta<typeof Button>
2222

2323
export default meta
@@ -30,27 +30,27 @@ type Story = StoryObj<typeof meta>
3030
export const Primary: Story = {
3131
args: {
3232
primary: true,
33-
label: 'Button',
34-
},
33+
label: 'Button'
34+
}
3535
}
3636

3737
export const Secondary: Story = {
3838
args: {
3939
primary: false,
40-
label: 'Button',
41-
},
40+
label: 'Button'
41+
}
4242
}
4343

4444
export const Large: Story = {
4545
args: {
4646
label: 'Button',
47-
size: 'large',
48-
},
47+
size: 'large'
48+
}
4949
}
5050

5151
export const Small: Story = {
5252
args: {
5353
label: 'Button',
54-
size: 'small',
55-
},
54+
size: 'small'
55+
}
5656
}

examples/storybook/src/stories/Button.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const props = withDefaults(
2929
*/
3030
backgroundColor?: string
3131
}>(),
32-
{ primary: false },
32+
{ primary: false }
3333
)
3434
3535
const emit = defineEmits<{
@@ -40,7 +40,7 @@ const classes = computed(() => ({
4040
'storybook-button': true,
4141
'storybook-button--primary': props.primary,
4242
'storybook-button--secondary': !props.primary,
43-
[`storybook-button--${props.size || 'medium'}`]: true,
43+
[`storybook-button--${props.size || 'medium'}`]: true
4444
}))
4545
4646
const translatedLabel = computed(() => {
@@ -52,7 +52,7 @@ const translatedLabel = computed(() => {
5252
})
5353
5454
const style = computed(() => ({
55-
backgroundColor: props.backgroundColor,
55+
backgroundColor: props.backgroundColor
5656
}))
5757
5858
const onClick = () => {

examples/storybook/src/stories/Header.stories.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ const meta = {
1515
setup() {
1616
return { args }
1717
},
18-
template: '<my-header :user="args.user" />',
18+
template: '<my-header :user="args.user" />'
1919
}),
2020
parameters: {
2121
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
22-
layout: 'fullscreen',
22+
layout: 'fullscreen'
2323
},
2424
args: {
2525
onLogin: fn(),
2626
onLogout: fn(),
27-
onCreateAccount: fn(),
27+
onCreateAccount: fn()
2828
},
2929
// This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/writing-docs/autodocs
30-
tags: ['autodocs'],
30+
tags: ['autodocs']
3131
} satisfies Meta<typeof MyHeader>
3232

3333
export default meta
@@ -36,13 +36,13 @@ type Story = StoryObj<typeof meta>
3636
export const LoggedIn: Story = {
3737
args: {
3838
user: {
39-
name: 'Jane Doe',
40-
},
41-
},
39+
name: 'Jane Doe'
40+
}
41+
}
4242
}
4343

4444
export const LoggedOut: Story = {
4545
args: {
46-
user: null,
47-
},
46+
user: null
47+
}
4848
}

0 commit comments

Comments
 (0)