Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "react"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"build:ssr": "vite build && vite build --ssr",
"dev": "vite",
"lint": "oxlint --fix && prettier --write resources/",
"test:lint": "oxlint && prettier --check resources/",
"test:lint": "oxlint --type-aware && prettier --check resources/",
"test:types": "tsc --noEmit"
},
"devDependencies": {
"@laravel/vite-plugin-wayfinder": "^0.1.7",
"@types/node": "^25.2.3",
"npm-check-updates": "^19.3.2",
"oxlint": "^1.48.0",
"oxlint-tsgolint": "^0.14.2",
"playwright": "^1.58.2",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion resources/js/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { initializeTheme } from './hooks/use-appearance';

const appName = import.meta.env.VITE_APP_NAME || 'Laravel';

createInertiaApp({
void createInertiaApp({
title: (title) => (title ? `${title} - ${appName}` : appName),
resolve: (name) =>
resolvePageComponent(
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/two-factor-recovery-codes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function TwoFactorRecoveryCodes({

useEffect(() => {
if (!recoveryCodesList.length) {
fetchRecoveryCodes();
void fetchRecoveryCodes();
}
}, [recoveryCodesList.length, fetchRecoveryCodes]);

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/two-factor-setup-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default function TwoFactorSetupModal({
}

if (!qrCodeSvg) {
fetchSetupData();
void fetchSetupData();
}
}, [isOpen, qrCodeSvg, fetchSetupData, resetModalState]);

Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"baseUrl": ".",
"paths": {
"@/*": ["./resources/js/*"]
},
"jsx": "react-jsx"
},
"include": ["resources/js/**/*.ts", "resources/js/**/*.d.ts", "resources/js/**/*.tsx"]
"include": [
"resources/js/**/*.ts",
"resources/js/**/*.d.ts",
"resources/js/**/*.tsx"
]
}