chore: make lint pass for vitest tests

This commit is contained in:
shamoon
2026-02-03 14:47:47 -08:00
parent 641562ac85
commit 87deb24cd0
3 changed files with 12 additions and 6 deletions

View File

@@ -65,5 +65,14 @@ export default defineConfig([
],
},
},
// Vitest tests often intentionally place imports after `vi.mock(...)` to ensure
// modules under test see the mocked dependencies. `import/order` can't safely
// auto-fix those cases, so disable it for test files.
{
files: ["src/**/*.test.{js,jsx}", "src/**/*.spec.{js,jsx}"],
rules: {
"import/order": "off",
},
},
globalIgnores(["./config/", "./.venv/", "./.next/", "./site/"]),
]);