Skip to content

Commit 5fc3d88

Browse files
Reorganize configuration files for improved readability and consistency
1 parent 2b46d11 commit 5fc3d88

4 files changed

Lines changed: 14 additions & 39 deletions

File tree

.prettierrc

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,14 @@
55
"tabWidth": 4,
66
"singleAttributePerLine": false,
77
"htmlWhitespaceSensitivity": "css",
8-
"plugins": [
9-
"prettier-plugin-organize-imports",
10-
"prettier-plugin-tailwindcss",
11-
"prettier-plugin-blade"
12-
],
13-
"tailwindFunctions": [
14-
"clsx",
15-
"cn",
16-
"cva"
17-
],
8+
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss", "prettier-plugin-blade"],
9+
"tailwindFunctions": ["clsx", "cn", "cva"],
1810
"overrides": [
1911
{
20-
"files": "**/*.yml",
21-
"options": {
22-
"tabWidth": 2
23-
}
24-
},
25-
{
26-
"files": [
27-
"*.blade.php"
28-
],
12+
"files": ["*.blade.php"],
2913
"options": {
3014
"parser": "blade"
3115
}
3216
}
3317
]
34-
}
18+
}

eslint.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
12
import prettier from 'eslint-config-prettier';
23
import vue from 'eslint-plugin-vue';
34

4-
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript';
5-
65
export default defineConfigWithVueTs(
76
vue.configs['flat/essential'],
87
vueTsConfigs.recommended,
98
{
10-
ignores: ['vendor', 'node_modules', 'public'],
9+
ignores: ['vendor', 'node_modules', 'public', 'socket-real-time/*'],
1110
},
1211
{
1312
rules: {
@@ -17,4 +16,4 @@ export default defineConfigWithVueTs(
1716
},
1817
},
1918
prettier,
20-
);
19+
);

tsconfig.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@
3131
"moduleResolution": "bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
3232
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3333
"paths": {
34-
"@/*": [
35-
"./resources/js/*"
36-
],
37-
"ziggy-js": [
38-
"./vendor/tightenco/ziggy"
39-
]
34+
"@/*": ["./resources/js/*"],
35+
"ziggy-js": ["./vendor/tightenco/ziggy"]
4036
},
4137
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
4238
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
@@ -114,9 +110,5 @@
114110
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
115111
"skipLibCheck": true /* Skip type checking all .d.ts files. */
116112
},
117-
"include": [
118-
"resources/js/**/*.ts",
119-
"resources/js/**/*.d.ts",
120-
"resources/js/**/*.vue"
121-
]
122-
}
113+
"include": ["resources/js/**/*.ts", "resources/js/**/*.d.ts", "resources/js/**/*.vue"]
114+
}

vite.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { defineConfig } from 'vite';
2-
import laravel from 'laravel-vite-plugin';
3-
import vue from '@vitejs/plugin-vue';
41
import tailwindcss from '@tailwindcss/vite';
2+
import vue from '@vitejs/plugin-vue';
3+
import laravel from 'laravel-vite-plugin';
54
import { resolve } from 'node:path';
5+
import { defineConfig } from 'vite';
66

77
export default defineConfig({
88
plugins: [

0 commit comments

Comments
 (0)