Skip to content

Commit f3bff3a

Browse files
committed
chore: run Biome lint/format on Vue
1 parent d0e4141 commit f3bff3a

File tree

8 files changed

+12
-21
lines changed

8 files changed

+12
-21
lines changed

src/Vue/assets/dist/loader.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Component } from 'vue';
2-
import { ComponentCollection } from './components.js';
2+
import { type ComponentCollection } from './components.js';
33
declare global {
44
function resolveVueComponent(name: string): Component;
55
interface Window {

src/Vue/assets/dist/render_controller.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Controller } from '@hotwired/stimulus';
2-
import { App } from 'vue';
2+
import { type App } from 'vue';
33
export default class extends Controller<Element & {
44
__vue_app__?: App<Element>;
55
}> {

src/Vue/assets/src/loader.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
* file that was distributed with this source code.
88
*/
99

10-
'use strict';
11-
1210
import type { Component } from 'vue';
13-
import { ComponentCollection, components } from './components.js';
11+
import { type ComponentCollection, components } from './components.js';
1412

1513
declare global {
1614
function resolveVueComponent(name: string): Component;

src/Vue/assets/src/register_controller.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* file that was distributed with this source code.
88
*/
99

10-
'use strict';
11-
1210
import type { Component } from 'vue';
1311
import { defineAsyncComponent } from 'vue';
1412

@@ -21,10 +19,13 @@ declare global {
2119
}
2220

2321
export function registerVueControllerComponents(context: __WebpackModuleApi.RequireContext) {
24-
const vueControllers = context.keys().reduce((acc, key) => {
25-
acc[key] = undefined;
26-
return acc;
27-
}, {} as Record<string, object | undefined>);
22+
const vueControllers = context.keys().reduce(
23+
(acc, key) => {
24+
acc[key] = undefined;
25+
return acc;
26+
},
27+
{} as Record<string, object | undefined>
28+
);
2829

2930
function loadComponent(name: string): object | never {
3031
const componentPath = `./${name}.vue`;

src/Vue/assets/src/render_controller.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
* file that was distributed with this source code.
88
*/
99

10-
'use strict';
11-
1210
import { Controller } from '@hotwired/stimulus';
13-
import { App, createApp } from 'vue';
11+
import { type App, createApp } from 'vue';
1412

1513
export default class extends Controller<Element & { __vue_app__?: App<Element> }> {
1614
private props: Record<string, unknown> | null;

src/Vue/assets/test/register_controller.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* file that was distributed with this source code.
88
*/
99

10-
'use strict';
11-
1210
import {registerVueControllerComponents} from '../src/register_controller';
1311
import Hello from './fixtures/Hello.vue'
1412
import Goodbye from './fixtures-lazy/Goodbye.vue'

src/Vue/assets/test/render_controller.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* file that was distributed with this source code.
88
*/
99

10-
'use strict';
11-
1210
import { Application, Controller } from '@hotwired/stimulus';
1311
import { getByTestId, waitFor } from '@testing-library/dom';
1412
import { clearDOM, mountDOM } from '@symfony/stimulus-testing';

src/Vue/composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"name": "symfony/ux-vue",
33
"type": "symfony-bundle",
44
"description": "Integration of Vue.js in Symfony",
5-
"keywords": [
6-
"symfony-ux"
7-
],
5+
"keywords": ["symfony-ux"],
86
"homepage": "https://symfony.com",
97
"license": "MIT",
108
"authors": [

0 commit comments

Comments
 (0)