Skip to main content

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 Vitest test.fileParallelism is 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.

Package documentationโ€‹

Further readingโ€‹