diff --git a/.eslintrc.yml b/.eslintrc.yml index 9251f0375..efb7267d0 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -4,6 +4,8 @@ env: extends: - eslint:recommended - plugin:vue/vue3-essential + - plugin:vue/vue3-strongly-recommended + - plugin:vue/vue3-recommended - prettier parserOptions: ecmaVersion: latest @@ -47,3 +49,8 @@ rules: multiline: 6 vue/singleline-html-element-content-newline: 0 vue/no-deprecated-events-api: 0 + vue/require-default-prop: 0 + vue/attributes-order: 0 + vue/next-tick-style: # https://eslint.vuejs.org/rules/next-tick-style.html + - error + - promise diff --git a/app/Actions/Fortify/TwoFactorChallengeView.php b/app/Actions/Fortify/TwoFactorChallengeView.php index e8af5bc23..977447932 100644 --- a/app/Actions/Fortify/TwoFactorChallengeView.php +++ b/app/Actions/Fortify/TwoFactorChallengeView.php @@ -26,7 +26,7 @@ class TwoFactorChallengeView implements TwoFactorChallengeViewContract } return Inertia::render('Auth/TwoFactorChallenge', $data + [ - 'two_factor' => optional($user)->two_factor_secret && ! is_null(optional($user)->two_factor_confirmed_at), + 'twoFactor' => optional($user)->two_factor_secret && ! is_null(optional($user)->two_factor_confirmed_at), 'remember' => $request->session()->get('login.remember'), ])->toResponse($request); } diff --git a/resources/js/Components/Jetstream/ActionSection.vue b/resources/js/Components/Jetstream/ActionSection.vue index 16d6c42b3..0c39b23e0 100644 --- a/resources/js/Components/Jetstream/ActionSection.vue +++ b/resources/js/Components/Jetstream/ActionSection.vue @@ -12,7 +12,7 @@ defineProps({