Skip to content

Commit

Permalink
Merge pull request #32 from philbates35/various-front-end-updates
Browse files Browse the repository at this point in the history
Various front end updates
  • Loading branch information
philbates35 authored Feb 29, 2024
2 parents 8d3e79f + 02e0c51 commit 30f818d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
plugins: ["import"],
rules: {
"import/exports-last": "error",
"import/extensions": ["error", "always"],
"import/extensions": ["error", "ignorePackages"],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-default-export": "error",
Expand Down
1 change: 1 addition & 0 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets::class,
],

'api' => [
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["resources/js"],
"exclude": ["resources/js/**/__tests__/*"],
"compilerOptions": {
Expand All @@ -19,11 +20,6 @@
"isolatedModules": true,
"noEmit": true,

/* Absolute imports */
"paths": {
"@/*": ["./resources/js/*"]
},

/* Linting */
"strict": true,
"noUnusedLocals": true,
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"files": [],
"compilerOptions": {
// Absolute imports. Define here instead of tsconfig.app.json because e.g. eslint-import-resolver-typescript
// and shadcn-ui don't support project references and only read directly from this file
"paths": {
"@/*": ["./resources/js/*"]
}
},
"references": [
{
"path": "./tsconfig.app.json"
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import laravel from "laravel-vite-plugin";
import { defineConfig } from "vite";
import { configDefaults } from "vitest/config"; // eslint-disable-line import/extensions
import { configDefaults } from "vitest/config";

// Exclude everything except resources/js/
const projectExcludes = [
Expand Down

0 comments on commit 30f818d

Please sign in to comment.