// Vendored from github.com/dmmulroy/anti-slop (MIT), trimmed to the adopted // rule set in references/architecture.md. Do not add rules here without // updating the adopted list. import { eslintCompatPlugin } from "@oxlint/plugins"; import { noChainedTypeAssertionsRule } from "./rules/no-chained-type-assertions.ts"; import { noKnownValueWideningRule } from "./rules/no-known-value-widening.ts"; import { noUnsafeDictionaryTypeRule } from "./rules/no-unsafe-dictionary-type.ts"; import { noWidenThenAssertRule } from "./rules/no-widen-then-assert.ts"; import { requireSafetyCommentForTypeAssertionRule } from "./rules/require-safety-comment-for-type-assertion.ts"; const antiSlopPlugin = eslintCompatPlugin({ meta: { name: "anti-slop" }, rules: { "no-chained-type-assertions": noChainedTypeAssertionsRule, "no-known-value-widening": noKnownValueWideningRule, "no-unsafe-dictionary-type": noUnsafeDictionaryTypeRule, "no-widen-then-assert": noWidenThenAssertRule, "require-safety-comment-for-type-assertion": requireSafetyCommentForTypeAssertionRule, }, }); export default antiSlopPlugin;