ab3ae78ba2
`lint.exclude` is not a property of OxlintConfig (the correct key is `ignorePatterns`). The invalid property failed defineConfig overload resolution, which surfaced as a TS2769 plus a TS2321 excessive-stack-depth error against the recursive vitest-augmented UserConfig. Using `ignorePatterns` excludes the PTY fixtures from lint as intended and clears both config type errors.
18 lines
585 B
TypeScript
18 lines
585 B
TypeScript
import { defineConfig } from "vite-plus";
|
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
|
|
|
export default defineConfig({
|
|
plugins: [vueJsx()],
|
|
test: {
|
|
// chalk disables color in non-TTY envs; force it on so ANSI style bugs don't hide from tests
|
|
env: { FORCE_COLOR: "3" },
|
|
// PTY tests run separately via vitest.pty.config.ts (they need node-pty, no parallelism, longer timeout)
|
|
exclude: ["integration/pty/**", "node_modules/**"],
|
|
},
|
|
lint: {
|
|
options: { typeAware: true, typeCheck: true },
|
|
ignorePatterns: ["integration/pty/fixtures/**"],
|
|
},
|
|
fmt: {},
|
|
});
|