Switch path alias from @ to ~, add Prettier with organize-imports

This commit is contained in:
2026-04-23 21:13:59 +04:00
parent d68d780a00
commit 8dd618ce88
25 changed files with 118 additions and 77 deletions

View File

@@ -1,8 +1,8 @@
import path from 'node:path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'
import react from '@vitejs/plugin-react'
import path from 'node:path'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
@@ -17,8 +17,8 @@ export default defineConfig({
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@generated': path.resolve(__dirname, './node_modules/.cache'),
'~': path.resolve(__dirname, './src'),
'~generated': path.resolve(__dirname, './node_modules/.cache'),
},
},
server: {