Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12,350 changes: 12,350 additions & 0 deletions .anti-slop-baseline.json

Large diffs are not rendered by default.

26 changes: 20 additions & 6 deletions .devkit/agent-hooks-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
{
"devkitRef": "v0.49.1",
"generatedAt": "2026-08-07T09:41:05.314Z",
"targets": [
"claude",
"cursor"
],
"schemaVersion": 2,
"kind": "hooks",
"devkitRef": "v0.51.1",
"generatedAt": "2026-08-16T02:26:52.089Z",
"files": {
"adhd-prompt-anchor.mjs": "002e1ee4dd7f10ccef97babb57b7cf0e01c76433a18b4c8be4aa04ab89288504",
"adhd-session-start.mjs": "b5257348cb11fe85742178f43bbde30a94d7b58cb8f67281e060c875bbe8bc80",
"decision-edit-guard.mjs": "041da116c296a2104f181c285e2cb40343d5e0e20c6265417f734079e16c494d"
},
"providers": {
"claude": {
"files": {
"adhd-prompt-anchor.mjs": "002e1ee4dd7f10ccef97babb57b7cf0e01c76433a18b4c8be4aa04ab89288504",
"adhd-session-start.mjs": "b5257348cb11fe85742178f43bbde30a94d7b58cb8f67281e060c875bbe8bc80",
"decision-edit-guard.mjs": "041da116c296a2104f181c285e2cb40343d5e0e20c6265417f734079e16c494d"
}
},
"cursor": {
"files": {
"adhd-prompt-anchor.mjs": "002e1ee4dd7f10ccef97babb57b7cf0e01c76433a18b4c8be4aa04ab89288504",
"adhd-session-start.mjs": "b5257348cb11fe85742178f43bbde30a94d7b58cb8f67281e060c875bbe8bc80",
"decision-edit-guard.mjs": "041da116c296a2104f181c285e2cb40343d5e0e20c6265417f734079e16c494d"
}
}
}
}
46 changes: 39 additions & 7 deletions .devkit/agents-manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,54 @@
{
"devkitRef": "v0.49.1",
"generatedAt": "2026-08-07T09:41:05.312Z",
"targets": [
"claude",
"cursor"
],
"schemaVersion": 2,
"kind": "agents",
"devkitRef": "v0.51.1",
"generatedAt": "2026-08-16T02:26:52.084Z",
"files": {
"api-security-reviewer.md": "ed7b27dbf49e30f597559baaf153487b2851abf2c6a9482ea9caaa6228ceb420",
"backend-performance-reviewer.md": "8aa858861a1afb3e740d371f7cc28d7f22552c25eb28a21fabda19186baca338",
"commit-guard.md": "1a996999d7bcd0e5c96d4e78d6b5e67c1e02f3a66ec4ea8d98548260ad511764",
"conventions-reviewer.md": "f7329e27571e9abdc6409556e4d2ae291473d001653763790ae72b9db8a8d456",
"correctness-reviewer.md": "227246dbdaea499c97d1857f23910a3c61e5f0ae314442c4a93886e215f8d6bf",
"correctness-reviewer.md": "abdb37e8a43ba1bf7d72269967dd25bc98df988681c5fca182150ce7610aacf0",
"feature-completeness-reviewer.md": "0b9a742a2692d0b0ad9b8ff9829d652f7f43c52c163d780ef1b36a3aaeba2c19",
"feature-critique.md": "36b77ef31ffd9e7c82147ba0db0b369d20420cea34cbec660db7f7d693dee5f4",
"fix-upstream-reviewer.md": "1cff6e45b474dd6900d9e0b159078fdacbb4028ac2d7feb6ba99a58a82da1326",
"frontend-accessibility-reviewer.md": "c0494ea5b15bd288a2d4476dd097cdebe6f267a542ea04efffd4dd8574626232",
"frontend-performance-reviewer.md": "66a1777cfe069196b2dc31b8f918deb0e7833d3aa96c72b615351156990731a2",
"frontend-security-reviewer.md": "1888e5a6365e4fe2d8881823da6cd2e5c66e6f8457e08295fcc0729247b25d79",
"prior-art.md": "64525643e13a9c2180cdea5029ef4335791a5673dbce7f3bbe14e3c4aa30ad40"
},
"providers": {
"claude": {
"files": {
"api-security-reviewer.md": "ed7b27dbf49e30f597559baaf153487b2851abf2c6a9482ea9caaa6228ceb420",
"backend-performance-reviewer.md": "8aa858861a1afb3e740d371f7cc28d7f22552c25eb28a21fabda19186baca338",
"commit-guard.md": "1a996999d7bcd0e5c96d4e78d6b5e67c1e02f3a66ec4ea8d98548260ad511764",
"conventions-reviewer.md": "f7329e27571e9abdc6409556e4d2ae291473d001653763790ae72b9db8a8d456",
"correctness-reviewer.md": "abdb37e8a43ba1bf7d72269967dd25bc98df988681c5fca182150ce7610aacf0",
"feature-completeness-reviewer.md": "0b9a742a2692d0b0ad9b8ff9829d652f7f43c52c163d780ef1b36a3aaeba2c19",
"feature-critique.md": "36b77ef31ffd9e7c82147ba0db0b369d20420cea34cbec660db7f7d693dee5f4",
"fix-upstream-reviewer.md": "1cff6e45b474dd6900d9e0b159078fdacbb4028ac2d7feb6ba99a58a82da1326",
"frontend-accessibility-reviewer.md": "c0494ea5b15bd288a2d4476dd097cdebe6f267a542ea04efffd4dd8574626232",
"frontend-performance-reviewer.md": "66a1777cfe069196b2dc31b8f918deb0e7833d3aa96c72b615351156990731a2",
"frontend-security-reviewer.md": "1888e5a6365e4fe2d8881823da6cd2e5c66e6f8457e08295fcc0729247b25d79",
"prior-art.md": "64525643e13a9c2180cdea5029ef4335791a5673dbce7f3bbe14e3c4aa30ad40"
}
},
"cursor": {
"files": {
"api-security-reviewer.md": "ed7b27dbf49e30f597559baaf153487b2851abf2c6a9482ea9caaa6228ceb420",
"backend-performance-reviewer.md": "8aa858861a1afb3e740d371f7cc28d7f22552c25eb28a21fabda19186baca338",
"commit-guard.md": "1a996999d7bcd0e5c96d4e78d6b5e67c1e02f3a66ec4ea8d98548260ad511764",
"conventions-reviewer.md": "f7329e27571e9abdc6409556e4d2ae291473d001653763790ae72b9db8a8d456",
"correctness-reviewer.md": "abdb37e8a43ba1bf7d72269967dd25bc98df988681c5fca182150ce7610aacf0",
"feature-completeness-reviewer.md": "0b9a742a2692d0b0ad9b8ff9829d652f7f43c52c163d780ef1b36a3aaeba2c19",
"feature-critique.md": "36b77ef31ffd9e7c82147ba0db0b369d20420cea34cbec660db7f7d693dee5f4",
"fix-upstream-reviewer.md": "1cff6e45b474dd6900d9e0b159078fdacbb4028ac2d7feb6ba99a58a82da1326",
"frontend-accessibility-reviewer.md": "c0494ea5b15bd288a2d4476dd097cdebe6f267a542ea04efffd4dd8574626232",
"frontend-performance-reviewer.md": "66a1777cfe069196b2dc31b8f918deb0e7833d3aa96c72b615351156990731a2",
"frontend-security-reviewer.md": "1888e5a6365e4fe2d8881823da6cd2e5c66e6f8457e08295fcc0729247b25d79",
"prior-art.md": "64525643e13a9c2180cdea5029ef4335791a5673dbce7f3bbe14e3c4aa30ad40"
}
}
}
}
8 changes: 8 additions & 0 deletions .devkit/anti-slop/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [
"../oxc/oxlint.base.json"
],
"rules": {
"anti-slop/no-object-parameters": "off"
}
}
21 changes: 21 additions & 0 deletions .devkit/anti-slop/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dillon Mulroy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 26 additions & 0 deletions .devkit/anti-slop/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"schemaVersion": 1,
"upstreamCommit": "446268e5d15baa968eaec669ff65358d36ae6259",
"pluginApiVersion": "1.78.0",
"ruleIds": [
"anti-slop/no-chained-type-assertions",
"anti-slop/no-conditional-empty-object-spread",
"anti-slop/no-known-value-widening",
"anti-slop/no-module-mocking",
"anti-slop/no-object-parameters",
"anti-slop/no-reflect-apply",
"anti-slop/no-reflect-get",
"anti-slop/no-runtime-typeof",
"anti-slop/no-shape-in-symbol-names",
"anti-slop/no-unknown-parameters",
"anti-slop/no-unknown-returns",
"anti-slop/no-unknown-type-aliases",
"anti-slop/no-unsafe-dictionary-type",
"anti-slop/no-widen-then-assert",
"anti-slop/require-safety-comment-for-type-assertion"
],
"pluginDigest": "40a480e9670b4c28fed3ec7577e1b1f4321c58ab41ddacd46709fe21a5a15f96",
"configDigest": "a1755ce4c9bd74b4800717f1f316b1047d638dc59d6277c4844b59c55306c496",
"probeDigest": "bf2c2181804ac4004aed98aa41133e080068be9b2e9bf9d47a459ce75c6cdb87",
"probeConfigDigest": "b9bfbd93519b843df6bd175b91f5742bb67be649cac5c82492621e5a7bbd7604"
}
60 changes: 60 additions & 0 deletions .devkit/anti-slop/oxlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"jsPlugins": [
{
"name": "anti-slop",
"specifier": "./plugin/index.ts"
}
],
"overrides": [
{
"files": [
".agent/**",
".agents/**",
".claude/**",
".codex/**",
".continue/**",
".cursor/**",
".devkit/anti-slop/plugin/**",
".gemini/**",
".opencode/**",
".pi/**",
".roo/**",
".windsurf/**"
],
"rules": {
"anti-slop/no-chained-type-assertions": "off",
"anti-slop/no-conditional-empty-object-spread": "off",
"anti-slop/no-known-value-widening": "off",
"anti-slop/no-module-mocking": "off",
"anti-slop/no-object-parameters": "off",
"anti-slop/no-reflect-apply": "off",
"anti-slop/no-reflect-get": "off",
"anti-slop/no-runtime-typeof": "off",
"anti-slop/no-shape-in-symbol-names": "off",
"anti-slop/no-unknown-parameters": "off",
"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/require-safety-comment-for-type-assertion": "off"
}
}
],
"rules": {
"anti-slop/no-chained-type-assertions": "error",
"anti-slop/no-conditional-empty-object-spread": "error",
"anti-slop/no-known-value-widening": "error",
"anti-slop/no-module-mocking": "error",
"anti-slop/no-object-parameters": "error",
"anti-slop/no-reflect-apply": "error",
"anti-slop/no-reflect-get": "error",
"anti-slop/no-runtime-typeof": "error",
"anti-slop/no-shape-in-symbol-names": "error",
"anti-slop/no-unknown-parameters": "error",
"anti-slop/no-unknown-returns": "error",
"anti-slop/no-unknown-type-aliases": "error",
"anti-slop/no-unsafe-dictionary-type": "error",
"anti-slop/no-widen-then-assert": "error",
"anti-slop/require-safety-comment-for-type-assertion": "error"
}
}
41 changes: 41 additions & 0 deletions .devkit/anti-slop/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { eslintCompatPlugin } from "#oxlint-plugins";

import { noChainedTypeAssertionsRule } from "./rules/no-chained-type-assertions.ts";
import { noConditionalEmptyObjectSpreadRule } from "./rules/no-conditional-empty-object-spread.ts";
import { noKnownValueWideningRule } from "./rules/no-known-value-widening.ts";
import { noModuleMockingRule } from "./rules/no-module-mocking.ts";
import { noObjectParametersRule } from "./rules/no-object-parameters.ts";
import { noReflectApplyRule } from "./rules/no-reflect-apply.ts";
import { noReflectGetRule } from "./rules/no-reflect-get.ts";
import { noRuntimeTypeofRule } from "./rules/no-runtime-typeof.ts";
import { noForbiddenTermInSymbolNamesRule } from "./rules/no-shape-in-symbol-names.ts";
import { noUnknownParametersRule } from "./rules/no-unknown-parameters.ts";
import { noUnknownReturnsRule } from "./rules/no-unknown-returns.ts";
import { noUnknownTypeAliasesRule } from "./rules/no-unknown-type-aliases.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";

/** Generic Oxlint rules that reject low-evidence and low-signal implementation patterns. */
const antiSlopPlugin = eslintCompatPlugin({
meta: { name: "anti-slop" },
rules: {
"no-chained-type-assertions": noChainedTypeAssertionsRule,
"no-conditional-empty-object-spread": noConditionalEmptyObjectSpreadRule,
"no-known-value-widening": noKnownValueWideningRule,
"no-module-mocking": noModuleMockingRule,
"no-object-parameters": noObjectParametersRule,
"no-reflect-apply": noReflectApplyRule,
"no-reflect-get": noReflectGetRule,
"no-runtime-typeof": noRuntimeTypeofRule,
"no-unsafe-dictionary-type": noUnsafeDictionaryTypeRule,
"no-shape-in-symbol-names": noForbiddenTermInSymbolNamesRule,
"no-unknown-parameters": noUnknownParametersRule,
"no-unknown-returns": noUnknownReturnsRule,
"no-unknown-type-aliases": noUnknownTypeAliasesRule,
"no-widen-then-assert": noWidenThenAssertRule,
"require-safety-comment-for-type-assertion": requireSafetyCommentForTypeAssertionRule,
},
});

export default antiSlopPlugin;
22 changes: 22 additions & 0 deletions .devkit/anti-slop/plugin/oxlint-plugins-api/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2024-present VoidZero Inc. & Contributors
Copyright (c) 2023 Boshen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
95 changes: 95 additions & 0 deletions .devkit/anti-slop/plugin/oxlint-plugins-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# @oxlint/plugins

Plugin utilities for [Oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins).

This package provides optional functions to assist in creating Oxlint JS plugins and rules.

## Installation

```bash
npm install @oxlint/plugins
```

## Usage

### Define functions

Use `definePlugin` and `defineRule` if authoring your plugin in TypeScript for type safety.

```typescript
import { definePlugin, defineRule } from "@oxlint/plugins";

const rule = defineRule({
create(context) {
return {
Program(node) {
// Rule logic here
},
};
},
});

export default definePlugin({
meta: { name: "oxlint-plugin-amazing" },
rules: { amazing: rule },
});
```

### Types

This package also includes types for plugins and rules.

```typescript
import type { Context, Rule, ESTree } from "@oxlint/plugins";

const rule: Rule = {
create(context: Context) {
return {
Program(node: ESTree.Program) {
// Rule logic here
},
};
},
};
```

### ESLint compatibility

If your plugin uses Oxlint's [alternative `createOnce` API](https://oxc.rs/docs/guide/usage/linter/js-plugins#alternative-api),
use `eslintCompatPlugin` to convert the plugin so it will also work with ESLint.

```typescript
import { eslintCompatPlugin } from "@oxlint/plugins";

const rule = {
createOnce(context) {
return {
Program(node) {
// Rule logic here
},
};
},
};

export default eslintCompatPlugin({
meta: { name: "oxlint-plugin-amazing" },
rules: { amazing: rule },
});
```

## Node.js version

This package requires Node.js 12.22.0+, 14.17.0+, 16.0.0+, or later.
This matches the minimum Node.js version required by ESLint 8.

This package provides both ESM and CommonJS entry points.

So a plugin which depends on `@oxlint/plugins` can be:

- Used with any version of Oxlint.
- Used with ESLint 8+.
- Published as either ESM or CommonJS.

## Docs

For full documentation, see [Oxlint JS Plugins docs](https://oxc.rs/docs/guide/usage/linter/js-plugins).
Loading
Loading