no-vitest-file-parallelism-disabled
Disallow test.fileParallelism: false in committed Vitest config.
Rule catalog ID: R038
Targeted pattern scopeโ
vitest.config.*vitest.workspace.*vite.config.*when Vitesttest.fileParallelismis configured
What this rule reportsโ
This rule reports explicit test.fileParallelism: false assignments.
Why this rule existsโ
Disabling file-level parallelism can reduce test throughput and hide order-dependent issues. In shared config, this is usually an accidental or temporary setting that should not persist.
โ Incorrectโ
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
fileParallelism: false,
},
});
โ Correctโ
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
fileParallelism: true,
},
});
Behavior and migration notesโ
- this rule reports only explicit
false - use local overrides if single-threaded debugging is needed temporarily
ESLint flat config exampleโ
import vite from "@typpi/eslint-plugin-vite";
export default [vite.configs.strict, vite.configs.vitest];
When not to use itโ
Disable this rule only if your project intentionally runs tests without file parallelism in committed shared config.