docs: preserve concise config rationale
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
import stylistic from '@stylistic/eslint-plugin'
|
import stylistic from '@stylistic/eslint-plugin'
|
||||||
import tseslint from 'typescript-eslint'
|
import tseslint from 'typescript-eslint'
|
||||||
|
|
||||||
/**
|
|
||||||
* ESLint flat config. Two layers.
|
|
||||||
*/
|
|
||||||
export default tseslint.config(
|
export default tseslint.config(
|
||||||
{
|
{
|
||||||
ignores: [
|
ignores: [
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import tsconfigPaths from 'vite-tsconfig-paths'
|
|||||||
import { defineConfig } from 'vitest/config'
|
import { defineConfig } from 'vitest/config'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// Vite ≥8 warns that this plugin can be replaced by the native (experimental)
|
// Native path resolution reads each package's nearest tsconfig, but only the root defines
|
||||||
// `resolve.tsconfigPaths: true`.
|
// workspace paths. Keep this plugin pinned to the root map.
|
||||||
plugins: [tsconfigPaths({ projects: ['./tsconfig.json'] })],
|
plugins: [tsconfigPaths({ projects: ['./tsconfig.json'] })],
|
||||||
test: {
|
test: {
|
||||||
include: ['packages/*/*/tests/**/*.spec.ts', 'examples/*/tests/**/*.spec.ts'],
|
include: ['packages/*/*/tests/**/*.spec.ts', 'examples/*/tests/**/*.spec.ts'],
|
||||||
|
|||||||
Reference in New Issue
Block a user