fix: linter errors

This commit is contained in:
Xiaohan-Tian
2026-04-16 20:46:09 -07:00
parent e3a77e6398
commit 1d5bb59ad7
2 changed files with 12 additions and 12 deletions
+9 -9
View File
@@ -1,13 +1,13 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react';
import { readFileSync } from 'node:fs' import { readFileSync } from 'node:fs';
import { resolve } from 'node:path' import { resolve } from 'node:path';
import { fileURLToPath, URL } from 'node:url' import { fileURLToPath, URL } from 'node:url';
// Read version from package.json // Read version from package.json
const __dirname = fileURLToPath(new URL('.', import.meta.url)) const __dirname = fileURLToPath(new URL('.', import.meta.url));
const packageJson = JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf-8')) const packageJson = JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf-8'));
const version = packageJson.version const version = packageJson.version;
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
@@ -20,4 +20,4 @@ export default defineConfig({
// IMPORTANT: MAKE SURE TO UPDATE YOUR OS HOSTS FILE TO POINT `testlocal.com` TO YOUR LOCAL IP (e.g. 127.0.0.1). // IMPORTANT: MAKE SURE TO UPDATE YOUR OS HOSTS FILE TO POINT `testlocal.com` TO YOUR LOCAL IP (e.g. 127.0.0.1).
allowedHosts: ['testlocal.com', '.testlocal.com', 'localhost', '127.0.0.1'], allowedHosts: ['testlocal.com', '.testlocal.com', 'localhost', '127.0.0.1'],
}, },
}) });
+3 -3
View File
@@ -1,6 +1,6 @@
/// <reference types="vitest" /> /// <reference types="vitest" />
import { defineConfig } from 'vite' import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react';
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
@@ -59,4 +59,4 @@ export default defineConfig({
// Retry failed tests once // Retry failed tests once
retry: 1 retry: 1
} }
}) });