@iam4x/oxlint-plugin-anti-slop
v0.1.0
Published
Oxlint rules that reject low-evidence TypeScript and JavaScript patterns
Maintainers
Readme
@iam4x/oxlint-plugin-anti-slop
Oxlint rules that reject low-evidence TypeScript and JavaScript patterns.
Install
bun add -d @iam4x/oxlint-plugin-anti-slopnpm or pnpm also work.
Register
Add the plugin in .oxlintrc.json. Enable only the rules you want.
{
"jsPlugins": [
{
"name": "anti-slop",
"specifier": "@iam4x/oxlint-plugin-anti-slop"
}
],
"rules": {
"anti-slop/no-chained-type-assertions": "error"
}
}Rules
anti-slop/no-chained-type-assertionsanti-slop/no-conditional-empty-object-spreadanti-slop/no-known-value-wideninganti-slop/no-object-parametersanti-slop/no-reflect-applyanti-slop/no-reflect-getanti-slop/no-runtime-typeofanti-slop/no-shape-in-symbol-namesanti-slop/no-unknown-parametersanti-slop/no-unknown-returnsanti-slop/no-unknown-type-aliasesanti-slop/no-unsafe-dictionary-typeanti-slop/no-widen-then-assert
Dependencies
@oxlint/plugins is a runtime dependency of this package. oxlint is a peer.
Publish
npm publish runs prepack, which builds dist/index.js into the tarball. Do not commit node_modules or dist.
