mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:00:44 +00:00
lint: enforce exhaustive switches
This commit is contained in:
@@ -132,6 +132,15 @@ describe("oxlint config", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("enables exhaustive switch linting", () => {
|
||||
const config = readJson(".oxlintrc.json") as OxlintConfig;
|
||||
|
||||
expect(config.rules?.["typescript/switch-exhaustiveness-check"]).toEqual([
|
||||
"error",
|
||||
{ considerDefaultExhaustiveForUnions: true },
|
||||
]);
|
||||
});
|
||||
|
||||
it("enables clean zero-baseline lint rules", () => {
|
||||
const config = readJson(".oxlintrc.json") as OxlintConfig;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user