From b79206533ea983620ea20378b6b1116ce2cd5bde Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 14 Sep 2026 21:58:56 -0700 Subject: [PATCH] chore(lint): enable anti-slop no-reduce-accumulator-copy and no-widen-then-assert (#20780) Both rules already report zero violations, so this only locks in the current state as a ratchet. No source changes. --- config/oxlint-anti-slop.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/oxlint-anti-slop.json b/config/oxlint-anti-slop.json index 1f488ff8c56..3e48b189302 100644 --- a/config/oxlint-anti-slop.json +++ b/config/oxlint-anti-slop.json @@ -31,7 +31,7 @@ "anti-slop/no-known-value-widening": "off", "anti-slop/no-module-mocking": "off", "anti-slop/no-object-parameters": "off", - "anti-slop/no-reduce-accumulator-copy": "off", + "anti-slop/no-reduce-accumulator-copy": "error", "anti-slop/no-reflect-apply": "off", "anti-slop/no-reflect-get": "off", "anti-slop/no-runtime-typeof": "off", @@ -40,7 +40,7 @@ "anti-slop/no-unknown-returns": "off", "anti-slop/no-unknown-type-aliases": "off", "anti-slop/no-unsafe-dictionary-type": "off", - "anti-slop/no-widen-then-assert": "off", + "anti-slop/no-widen-then-assert": "error", "anti-slop/require-readable-spacing": "off", "anti-slop/require-safety-comment-for-type-assertion": "off" },