docs: preserve concise config rationale

This commit is contained in:
Tianyi Cui
2026-07-12 23:41:59 +08:00
parent 74ada5777c
commit 32d9268d4a
2 changed files with 2 additions and 5 deletions

View File

@@ -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: [

View File

@@ -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'],