Skip to content

chore(lint): enforce anti-slop rules - #141

Merged
HazAT merged 2 commits into
masterfrom
chore/anti-slop-audit
Aug 15, 2026
Merged

chore(lint): enforce anti-slop rules#141
HazAT merged 2 commits into
masterfrom
chore/anti-slop-audit

Conversation

@HazAT

@HazAT HazAT commented Aug 15, 2026

Copy link
Copy Markdown
Member

JavaScript and TypeScript linting now enforces the vendored anti-slop rules across the app, worker, video processor, migration tooling, and tests. The existing codebase is migrated to that policy with explicit JSON boundary parsing and narrower domain contracts, preserving current user-facing behavior while making low-evidence casts, broad input types, runtime representation checks, and conditional omission patterns fail future checks.

Reviewers should start with vite.config.ts and src/shared/json.ts to establish the policy and parsing model, then focus on migration reconciliation and video processing where replacing open dictionaries and assertion chains required the most structural change. The plugin is intentionally project-owned and its Oxlint runtime is pinned; the main review risk is whether the stricter boundary parsing exactly preserves accepted payloads and processor results.

Vendor the anti-slop Oxlint plugin and enable its full rule set across application, worker, processor, migration, and test code.\n\nReplace broad runtime narrowing and unsafe assertions with explicit JSON boundary parsing, precise contracts, and structurally typed test doubles so the stricter policy starts from a clean baseline.
@HazAT
HazAT marked this pull request as ready for review August 15, 2026 23:05

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 30b1bb1. Configure here.

Comment thread package.json
Force Vite+ to resolve the same pinned Oxlint and plugin versions as the vendored anti-slop integration. This removes the nested older runtime so lint execution and plugin loading share version 1.78.0.
@HazAT
HazAT merged commit 381b772 into master Aug 15, 2026
13 checks passed
@HazAT
HazAT deleted the chore/anti-slop-audit branch August 15, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant