Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- workos

permissions:
contents: write
contents: read

jobs:
quality:
Expand All @@ -35,17 +35,11 @@ jobs:
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
npm install

- name: Run Pint
run: composer lint
- name: Check PHP Code Style (Pint)
run: composer lint:check

- name: Format Frontend
run: npm run format
- name: Check Frontend Formatting (Prettier)
run: npm run format:check

- name: Lint Frontend
run: npm run lint

# - name: Commit Changes
# uses: stefanzweifel/git-auto-commit-action@v7
# with:
# commit_message: fix code style
# commit_options: '--no-verify'
- name: Lint Frontend (ESLint)
run: npm run lint:check
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npx lint-staged

12 changes: 12 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"**/*.php": [
"vendor/bin/pint"
],
"resources/**/*.{vue,ts,js}": [
"prettier --write",
"eslint --fix"
],
"resources/**/*.{css,json}": [
"prettier --write"
]
}
2 changes: 0 additions & 2 deletions app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use App\Mail\WelcomeUserMail;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Str;
use Inertia\Inertia;
use Laravel\Socialite\Facades\Socialite;

Expand Down
84 changes: 81 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 56 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,58 @@
{
"$schema": "https://www.schemastore.org/package.json",
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"build:ssr": "vite build && vite build --ssr",
"dev": "vite",
"format": "prettier --write resources/",
"format:check": "prettier --check resources/",
"lint": "eslint . --fix",
"lint:check": "eslint .",
"types:check": "vue-tsc --noEmit"
},
"devDependencies": {
"@eslint/js": "^9.19.0",
"@laravel/vite-plugin-wayfinder": "^0.1.3",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^22.13.5",
"@vue/eslint-config-typescript": "^14.3.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-vue": "^9.32.0",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"typescript-eslint": "^8.23.0",
"vite-plugin-pwa": "^1.3.0",
"vue-tsc": "^2.2.4"
},
"dependencies": {
"@inertiajs/vite": "^3.0.0",
"@inertiajs/vue3": "^3.0.0",
"@tailwindcss/vite": "^4.1.11",
"@vitejs/plugin-vue": "^6.0.0",
"clsx": "^2.1.1",
"concurrently": "^9.0.1",
"laravel-echo": "^2.4.0",
"laravel-vite-plugin": "^3.1",
"lucide-vue-next": "^1.0.0",
"plyr": "^3.8.4",
"pusher-js": "^8.6.0",
"tailwind-merge": "^3.2.0",
"tailwindcss": "^4.1.1",
"typescript": "^5.2.2",
"vite": "^8.0.0",
"vue": "^3.5.13"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.9.5",
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.1",
"lightningcss-linux-x64-gnu": "^1.29.1"
}
"$schema": "https://www.schemastore.org/package.json",
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"build:ssr": "vite build && vite build --ssr",
"dev": "vite",
"format": "prettier --write resources/",
"format:check": "prettier --check resources/",
"lint": "eslint . --fix",
"lint:check": "eslint .",
"types:check": "vue-tsc --noEmit",
"prepare": "husky"
},
"devDependencies": {
"@eslint/js": "^9.19.0",
"@laravel/vite-plugin-wayfinder": "^0.1.3",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^22.13.5",
"@vue/eslint-config-typescript": "^14.3.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-vue": "^9.32.0",
"husky": "^9.1.7",
"lint-staged": "^17.4.1",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"typescript-eslint": "^8.23.0",
"vite-plugin-pwa": "^1.3.0",
"vue-tsc": "^2.2.4"
},
"dependencies": {
"@inertiajs/vite": "^3.0.0",
"@inertiajs/vue3": "^3.0.0",
"@tailwindcss/vite": "^4.1.11",
"@vitejs/plugin-vue": "^6.0.0",
"clsx": "^2.1.1",
"concurrently": "^9.0.1",
"laravel-echo": "^2.4.0",
"laravel-vite-plugin": "^3.1",
"lucide-vue-next": "^1.0.0",
"plyr": "^3.8.4",
"pusher-js": "^8.6.0",
"tailwind-merge": "^3.2.0",
"tailwindcss": "^4.1.1",
"typescript": "^5.2.2",
"vite": "^8.0.0",
"vue": "^3.5.13"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.9.5",
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.1",
"lightningcss-linux-x64-gnu": "^1.29.1"
}
}