From 2104ffa96e77a90ace1445b1ff714290fbc9c52a Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Fri, 25 Jul 2025 12:05:35 +0800 Subject: [PATCH] Reformat config files to use spaces and single quotes Updated tsconfig.json and vitest.config.js to use consistent 2-space indentation and single quotes for strings, improving code style and readability. --- tsconfig.json | 30 ++++++++++++------------ vitest.config.js | 60 ++++++++++++++++++++++++------------------------ 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index a6a2e26..d7331c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,17 @@ { - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "module": "ESNext", - "moduleResolution": "node", - "noEmit": true, - "skipLibCheck": true, - "strict": true, - "target": "ES2022", - "types": ["@cloudflare/workers-types", "vitest/globals"] - }, - "exclude": ["node_modules", "dist", "coverage"], - "include": ["src/**/*", "test/**/*"] + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "node", + "noEmit": true, + "skipLibCheck": true, + "strict": true, + "target": "ES2022", + "types": ["@cloudflare/workers-types", "vitest/globals"] + }, + "exclude": ["node_modules", "dist", "coverage"], + "include": ["src/**/*", "test/**/*"] } diff --git a/vitest.config.js b/vitest.config.js index f647b83..688213c 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -1,33 +1,33 @@ -import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config"; +import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config'; export default defineWorkersConfig({ - test: { - poolOptions: { - workers: { - wrangler: { configPath: "./wrangler.toml" }, - }, - }, - coverage: { - provider: "v8", - reporter: ["text", "json", "html", "lcov"], - reportsDirectory: "./coverage", - exclude: [ - "node_modules/**", - "test/**", - "coverage/**", - "dist/**", - "*.config.js", - "*.config.ts", - ], - include: ["src/**/*.js", "src/**/*.ts"], - thresholds: { - global: { - branches: 80, - functions: 80, - lines: 80, - statements: 80, - }, - }, - }, - }, + test: { + poolOptions: { + workers: { + wrangler: { configPath: './wrangler.toml' } + } + }, + coverage: { + provider: 'v8', + reporter: ['text', 'json', 'html', 'lcov'], + reportsDirectory: './coverage', + exclude: [ + 'node_modules/**', + 'test/**', + 'coverage/**', + 'dist/**', + '*.config.js', + '*.config.ts' + ], + include: ['src/**/*.js', 'src/**/*.ts'], + thresholds: { + global: { + branches: 80, + functions: 80, + lines: 80, + statements: 80 + } + } + } + } });