Skip to content

Commit 4da3ed9

Browse files
committed
refactor: do lint fix
1 parent 463ef3b commit 4da3ed9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

eslint.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export default withNuxt(
1111
'no-console': 'off',
1212
},
1313
},
14-
)
14+
)

src/store/user.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { defineStore } from 'pinia'
44
export const useUserStore = defineStore('user', {
55
state: () => ({
66
// ユーザーの定義・初期化
7-
user: { email: '', password: '' }
7+
user: { email: '', password: '' },
88
}),
99
actions: {
1010
// ユーザー情報の更新
11-
setUserInfo (email: string, password: string) {
11+
setUserInfo(email: string, password: string) {
1212
this.user.email = email
1313
this.user.password = password
14-
}
15-
}
14+
},
15+
},
1616
})

src/tests/unitTest/store/user.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { useUserStore } from '../../../store/user'
44

55
const initialUser = {
66
email: '',
7-
password: ''
7+
password: '',
88
}
99
const updatedUser = {
1010
email: 'new email',
11-
password: 'new password'
11+
password: 'new password',
1212
}
1313

1414
describe('Store', () => {

0 commit comments

Comments
 (0)