build: enable additional oxlint rules

This commit is contained in:
Peter Steinberger
2026-04-23 04:42:54 +01:00
parent dc5ab602df
commit 2e40ca2c15
16 changed files with 103 additions and 73 deletions

View File

@@ -139,7 +139,7 @@ describe("prototype pollution prevention", () => {
const obj: Record<string, unknown> = {};
setPathValue(obj, ["__proto__", "polluted"], true);
expect(({} as Record<string, unknown>).polluted).toBeUndefined();
expect(obj.__proto__).toBe(Object.prototype);
expect(Object.getPrototypeOf(obj)).toBe(Object.prototype);
});
it("setPathValue rejects constructor in path", () => {