Skip to content

Commit c51e343

Browse files
committed
linting
1 parent e3917fe commit c51e343

File tree

7 files changed

+26
-18
lines changed

7 files changed

+26
-18
lines changed

eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ import typescriptEslint from 'typescript-eslint';
1111
export default typescriptEslint.config(
1212
{ ignores: ['*.d.ts', '**/coverage', '**/dist', 'vendor/**'] },
1313
{
14+
files: ['**/*.js'],
15+
...eslint.configs.recommended,
16+
languageOptions: {
17+
ecmaVersion: 'latest',
18+
sourceType: 'module',
19+
},
20+
},
21+
{
22+
files: ['**/*.{ts,vue}'],
1423
extends: [
1524
eslint.configs.recommended,
1625
...typescriptEslint.configs.recommended,
1726
...eslintPluginVue.configs['flat/recommended'],
1827
],
19-
files: ['**/*.{ts,js,vue}'],
2028
languageOptions: {
2129
ecmaVersion: 'latest',
2230
globals: {

resources/js/Pages/Auth/ForgotPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ onMounted(() => {
4444
<div class="space-y-2">
4545
<label for="email">Email</label>
4646
<InputText
47-
ref="email-input"
4847
id="email"
48+
ref="email-input"
4949
v-model="form.email"
5050
type="email"
5151
required

resources/js/Pages/Auth/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ onMounted(() => {
9090
<div class="flex items-center">
9191
<Checkbox
9292
id="remember"
93-
class="mr-2"
9493
v-model="form.remember"
94+
class="mr-2"
9595
:binary="true"
9696
></Checkbox>
9797
<label for="remember">Remember me</label>

resources/js/Pages/Auth/Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ onMounted(() => {
3333
<InputText
3434
id="name"
3535
ref="name-input"
36-
type="text"
3736
v-model="form.name"
37+
type="text"
3838
:invalid="Boolean(form.errors.name)"
3939
required
4040
fluid

resources/js/Pages/Profile/Partials/DeleteUserForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ function focusPasswordInput() {
4444

4545
<div class="space-y-2">
4646
<InputText
47-
autofocus
4847
id="password"
4948
ref="password-input"
5049
v-model="form.password"
5150
type="password"
5251
placeholder="Password"
52+
autofocus
5353
required
5454
fluid
5555
:invalid="Boolean(form.errors.password)"
@@ -85,10 +85,10 @@ function focusPasswordInput() {
8585
</Dialog>
8686

8787
<Button
88-
@click="modalOpen = true"
8988
label="Delete Account"
9089
severity="danger"
9190
raised
91+
@click="modalOpen = true"
9292
/>
9393
</section>
9494
</template>

resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ const updatePassword = () => {
4343
</script>
4444
4545
<template>
46-
<form @submit.prevent="updatePassword" class="space-y-6">
46+
<form class="space-y-6" @submit.prevent="updatePassword">
4747
<div class="space-y-2">
4848
<label for="current_password">Current Password</label>
4949
<InputText
50-
required
5150
id="current_password"
5251
ref="current-password-input"
53-
type="password"
5452
v-model="form.current_password"
53+
type="password"
54+
required
5555
fluid
5656
:invalid="Boolean(form.errors?.current_password)"
5757
autocomplete="current-password"
@@ -69,11 +69,11 @@ const updatePassword = () => {
6969
<div class="space-y-2">
7070
<label for="password">New Password</label>
7171
<InputText
72-
required
7372
id="password"
7473
ref="new-password-input"
75-
type="password"
7674
v-model="form.password"
75+
type="password"
76+
required
7777
fluid
7878
:invalid="Boolean(form.errors.password)"
7979
autocomplete="new-password"
@@ -91,10 +91,10 @@ const updatePassword = () => {
9191
<div class="space-y-2">
9292
<label for="password_confirmation">Confirm Password</label>
9393
<InputText
94-
required
9594
id="password_confirmation"
96-
type="password"
9795
v-model="form.password_confirmation"
96+
type="password"
97+
required
9898
fluid
9999
:invalid="Boolean(form.errors.password_confirmation)"
100100
autocomplete="new-password"

resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ onMounted(() => {
4444
</script>
4545

4646
<template>
47-
<form @submit.prevent="updateProfileInformation" class="space-y-6">
47+
<form class="space-y-6" @submit.prevent="updateProfileInformation">
4848
<div class="space-y-2">
4949
<label for="name">Name</label>
5050
<InputText
51-
required
5251
ref="name-input"
5352
id="name"
54-
type="text"
5553
v-model="form.name"
54+
type="text"
55+
required
5656
fluid
5757
:invalid="Boolean(form.errors.name)"
5858
autocomplete="name"
@@ -69,10 +69,10 @@ onMounted(() => {
6969
<div class="space-y-2">
7070
<label for="email">Email</label>
7171
<InputText
72-
required
7372
id="email"
74-
type="email"
7573
v-model="form.email"
74+
type="email"
75+
required
7676
fluid
7777
:invalid="Boolean(form.errors.email)"
7878
autocomplete="username"

0 commit comments

Comments
 (0)