File Conventions
Use the canonical test, Playwright, and Storybook file names that determine automatic file-scoped policy.
The TypeScript loaders apply file-scoped policy by filename convention. The three canonical patterns are disjoint, so a file receives the policy intended for its role without selecting a public feature flag.
| Pattern | Ownership | Current behavior |
|---|---|---|
**/*.test.{ts,tsx}, **/__tests__/**/*.{ts,tsx} | Unit, integration, and Testing Library tests | Testing Library applies automatically. Selected Vitest or Jest scopes use the same patterns. |
**/*.spec.ts | Playwright tests | Playwright's package-owned flat/recommended preset applies automatically. |
**/*.stories.{ts,tsx} | Storybook stories | Storybook's package-owned flat/recommended story rules apply automatically. |
*.spec.ts is not a unit-test or Testing Library pattern, and *.test.{ts,tsx}
is not a Playwright pattern. The package does not recognize *.e2e.*,
*.playwright.*, or directory-based aliases as automatic compatibility-plugin
inputs.
These automatic overrides are available through getOxlintConfig() and
getComposedOxlintConfig(). Public JSON exports remain core-only because copied
JSON cannot retain package-relative JavaScript-plugin paths.