Skip to content

Commit 93a3f0b

Browse files
chore: apply new stylelint rules
1 parent 16db00c commit 93a3f0b

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
lines changed

frontend/e2e/MachineUserFlow.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { expect, test } from '@playwright/test'
22

3-
import { setup } from 'xstate'
43
import { createTestModel } from '@xstate/test'
4+
import { setup } from 'xstate'
55

66
const MachineUserFlow = setup({
77
types: {} as {
88
events: |
9-
{
10-
type: 'User successfully logged'
11-
} |
12-
{
13-
type: 'User submitted form with blank username'
14-
}
9+
{
10+
type: 'User successfully logged'
11+
} |
12+
{
13+
type: 'User submitted form with blank username'
14+
}
1515
},
1616
}).createMachine({
1717
/** @xstate-layout N4IgpgJg5mDOIC5QFkCGBjAFgSwHZgFVYwAnAMQBsB7AdwDojSACAN21mwBdYmSqrOAYkYkmsAK7p0cWADNxFCgE8m1KDAgBtAAwBdRKAAOVDp2xVcBkAA9EAJgDMdgDQgliABwA2OgFYAvv6uaFh4hMTk1PQirOxcPHwCwhFi4gBGALZcnJBMslQkGUw0XJhMaRSouADWTOIRuKgZYDr6SCDGpuaW7bYIdnYAnH6u7ggAjB52foFBILhUEHBWITj4IpS0Vp1c3VZ92qOIALTjgcEYa+Gkm9EpbKYJ-JzbJrsW+4gALB5HCN4zOarMIbKIMFLsVRUdSQV5dD69RBeOy+P4AgJAy4giK3OgANVQFGwEFQZgsTFIfFEkNgmFoPSMbzJDJsSIGfkGDgA7Ki3IhJtMMYEgA */

frontend/src/components/BaseInput/BaseInput.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { expect, it } from 'vitest'
2-
31
import { mount } from '@vue/test-utils'
2+
3+
import { expect, it } from 'vitest'
44
import BaseInput from './BaseInput.vue'
55

66
it('renders validation error', () => {

frontend/src/components/FormLogin/FormLogin.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script setup lang='ts'>
2+
import type { UserInfo } from '@/types/TypeUserInfo'
3+
import BaseButton from '@/components//BaseButton/BaseButton.vue'
4+
import BaseInput from '@/components/BaseInput/BaseInput.vue'
25
import { useMachine } from '@xstate/vue'
36
import { ref } from 'vue'
47
import { MachineIndex } from './machines/MachineIndex'
5-
import BaseInput from '@/components/BaseInput/BaseInput.vue'
6-
import BaseButton from '@/components//BaseButton/BaseButton.vue'
7-
import type { UserInfo } from '@/types/TypeUserInfo'
88
99
const emit = defineEmits<{
1010
(e: 'logged', arg: { userInfo: UserInfo }): void

frontend/src/components/FormLogin/machines/MachineIndex.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { assign, fromPromise, setup } from 'xstate'
2-
import type { DoneActorEvent, ErrorActorEvent } from 'xstate'
1+
import type { UserInfo } from '@/types/TypeUserInfo'
32
import type { Ref } from 'vue'
3+
import type { DoneActorEvent, ErrorActorEvent } from 'xstate'
44
import type { FormData, ValidationErrors } from '../types'
55
import { useApi } from '@/composables/useApi'
6-
import type { UserInfo } from '@/types/TypeUserInfo'
6+
import { assign, fromPromise, setup } from 'xstate'
77

88
export const MachineIndex = setup({
99
types: {} as {

frontend/src/components/TheInitializationWrapper/TheInitializationWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang='ts'>
2+
import { machineApp } from '@/machines/MachineApp/MachineApp'
23
/*
34
This component waits for all of the logic required for application to be loaded before starting rendering anything.
45
For example, you have something on your backend and you want to be safe that when any page renders it will already have that information.
@@ -7,7 +8,6 @@
78
*/
89
import { RouterView } from 'vue-router'
910
import { waitFor } from 'xstate'
10-
import { machineApp } from '@/machines/MachineApp/MachineApp'
1111
1212
await waitFor(
1313
machineApp.actorRef,

frontend/src/composables/useApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type UseFetchOptions, createFetch } from '@vueuse/core'
1+
import { createFetch, type UseFetchOptions } from '@vueuse/core'
22

33
const useApiRaw = createFetch({
44
baseUrl: '/api',

frontend/src/machines/MachineApp/MachineApp.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { assign, fromPromise, setup } from 'xstate'
2-
import type { DoneActorEvent } from 'xstate'
3-
import { useMachine } from '@xstate/vue'
1+
import type { UserInfo } from '@/types/TypeUserInfo'
42
import type { Ref } from 'vue'
5-
import { createBrowserInspector } from '@statelyai/inspect'
3+
import type { DoneActorEvent } from 'xstate'
64
import type { ConfigurationData } from './types'
7-
import type { UserInfo } from '@/types/TypeUserInfo'
85
import { useApi } from '@/composables/useApi'
6+
import { createBrowserInspector } from '@statelyai/inspect'
7+
import { useMachine } from '@xstate/vue'
8+
import { assign, fromPromise, setup } from 'xstate'
99

1010
const MachineApp = setup({
1111
types: {} as {

frontend/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import './assets/css/main.css'
21
import { ViteSSG } from 'vite-ssg'
32
import App from './App.vue'
43
import { routes } from './router'
4+
import './assets/css/main.css'
55

66
export const createApp = ViteSSG(
77
// the root component

frontend/src/pages/PageIndex/PageIndex.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang='ts'>
2+
import type { UserInfo } from '@/types/TypeUserInfo'
3+
import FormLogin from '@/components/FormLogin/FormLogin.vue'
24
import LayoutBase from '@/layouts/LayoutBase.vue'
35
import { machineApp } from '@/machines/MachineApp/MachineApp'
4-
import FormLogin from '@/components/FormLogin/FormLogin.vue'
5-
import type { UserInfo } from '@/types/TypeUserInfo'
66
77
function sendUserInfoToMachineApp({ userInfo }: { userInfo: UserInfo }) {
88
machineApp.send({

frontend/vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { URL, fileURLToPath } from 'node:url'
1+
import { fileURLToPath, URL } from 'node:url'
22

3-
import { defineConfig } from 'vite'
4-
import { configDefaults } from 'vitest/config'
53
import vue from '@vitejs/plugin-vue'
4+
import { defineConfig } from 'vite'
65
import VueDevTools from 'vite-plugin-vue-devtools'
6+
import { configDefaults } from 'vitest/config'
77

88
// https://vitejs.dev/config/
99
export default defineConfig(({ mode }) => {

0 commit comments

Comments
 (0)