chore: finish frontend ESLint migration #18

Enable every plugin recommended preset and replace Biome with ESLint formatting.

Preserve API contracts and JSX whitespace; verify source, tests, builds and tooling.
This commit is contained in:
2026-09-28 16:36:40 +03:00
committed by ksv741
parent 57630102e4
commit 72d7835227
253 changed files with 10059 additions and 8864 deletions
+27 -27
View File
@@ -1,6 +1,6 @@
import { fileURLToPath, URL } from "node:url";
import babel from "@rolldown/plugin-babel";
import react, { reactCompilerPreset } from "@vitejs/plugin-react";
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
@@ -10,48 +10,48 @@ export default defineConfig({
react(),
babel({ presets: [reactCompilerPreset()] }),
VitePWA({
injectRegister: "script-defer",
// Let the waiting worker activate after all app windows close.
registerType: "prompt",
includeAssets: ["favicon.svg", "icons.svg", "apple-touch-icon.png"],
injectRegister: "script-defer",
integration: {
configureOptions(config, options) {
// Storybook loads this Vite config but must not install an app worker.
options.disable = config.plugins.some(plugin =>
plugin.name.startsWith("storybook:"),
);
},
},
manifest: {
id: "/",
name: "WealthLedger",
short_name: "WealthLedger",
description: "Личные финансы и инвестиции",
lang: "ru",
start_url: "/",
scope: "/",
display: "standalone",
theme_color: "#ffffff",
background_color: "#ffffff",
description: "Личные финансы и инвестиции",
display: "standalone",
icons: [
{ src: "/pwa-192x192.png", sizes: "192x192", type: "image/png" },
{ src: "/pwa-512x512.png", sizes: "512x512", type: "image/png" },
{ sizes: "192x192", src: "/pwa-192x192.png", type: "image/png" },
{ sizes: "512x512", src: "/pwa-512x512.png", type: "image/png" },
{
src: "/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
sizes: "512x512",
src: "/pwa-512x512.png",
type: "image/png",
},
],
id: "/",
lang: "ru",
name: "WealthLedger",
scope: "/",
short_name: "WealthLedger",
start_url: "/",
theme_color: "#ffffff",
},
// Let the waiting worker activate after all app windows close.
registerType: "prompt",
workbox: {
globPatterns: ["**/*.{js,css,html,woff2}"],
// Only the static shell is cached; API requests always use the network.
navigateFallbackDenylist: [/^\/api(?:\/|$)/],
},
integration: {
configureOptions(config, options) {
// Storybook loads this Vite config but must not install an app worker.
options.disable = config.plugins.some((plugin) =>
plugin.name.startsWith("storybook:"),
);
},
},
}),
],
resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } },
resolve: { alias: { "@": fileURLToPath(new URL("src", import.meta.url)) } },
server: {
proxy: {
"/api/": {