瀏覽代碼

docs: preserve concise config rationale

Tianyi Cui 2 月之前
父節點
當前提交
32d9268d4a
共有 2 個文件被更改,包括 2 次插入 和 5 次删除
  1. 0 3
      eslint.config.mjs
  2. 2 2
      vitest.config.ts

+ 0 - 3
eslint.config.mjs

@@ -1,9 +1,6 @@
 import stylistic from '@stylistic/eslint-plugin'
 import tseslint from 'typescript-eslint'
 
-/**
- * ESLint flat config. Two layers.
- */
 export default tseslint.config(
   {
     ignores: [

+ 2 - 2
vitest.config.ts

@@ -2,8 +2,8 @@ import tsconfigPaths from 'vite-tsconfig-paths'
 import { defineConfig } from 'vitest/config'
 
 export default defineConfig({
-  // Vite ≥8 warns that this plugin can be replaced by the native (experimental)
-  // `resolve.tsconfigPaths: true`.
+  // Native path resolution reads each package's nearest tsconfig, but only the root defines
+  // workspace paths. Keep this plugin pinned to the root map.
   plugins: [tsconfigPaths({ projects: ['./tsconfig.json'] })],
   test: {
     include: ['packages/*/*/tests/**/*.spec.ts', 'examples/*/tests/**/*.spec.ts'],