

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1234567891011# Strict TypeScript: Detectors1213## Task1415Fix all strict-mode TypeScript errors in 4 detector files and add them to `CORE_FILES`.1617## Branch1819```20git checkout main && git pull origin main && git checkout -b cursor/strict/detectors21```2223## Files (17 errors total)2425### `injected/src/detectors/detections/adwall-detection.js` (2 errors)26```27(55,13): error TS2339: Property 'textPatterns' does not exist on type '{}'.28(55,27): error TS2339: Property 'textSources' does not exist on type '{}'.29```3031### `injected/src/detectors/detections/bot-detection.js` (1 error)32```33(33,21): error TS7006: Parameter 'statusSelectors' implicitly has an 'any' type.34```3536### `injected/src/detectors/detections/youtube-ad-detection.js` (12 errors)37```38(57,9): error TS7022: 'trackedVideoElement' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.39(58,9): error TS7022: 'lastLoggedVideoId' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.40(64,9): error TS7022: 'playerRoot' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.41(116,26): error TS2339: Property 'message' does not exist on type 'Object'.42(116,47): error TS2339: Property 'lastMessage' does not exist on type union.43(116,71): error TS2339: Property 'message' does not exist on type 'Object'.44(121,53): error TS2339: Property 'message' does not exist on type 'Object'.45(125,21): error TS2339: Property 'message' does not exist on type 'Object'.46(126,45): error TS2339: Property 'message' does not exist on type 'Object'.47(333,32): error TS2339: Property 'maxLength' does not exist on type 'Object'.48(334,48): error TS2339: Property 'checkAttributedStrings' does not exist on type 'Object'.49(335,45): error TS2339: Property 'checkDialogFallback' does not exist on type 'Object'.50```5152### `injected/src/detectors/utils/detection-utils.js` (2 errors)53```54(34,54): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.55(62,36): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Element'.56```5758## Fix Patterns5960- **TS2339** (Property doesn't exist on type): Add JSDoc `@typedef` or `@type` cast before accessing properties. For `Object` typed params, define an interface via `@typedef` or cast with `/** @type {{prop: type}} */`.61- **TS7006** (Parameter implicitly any): Add `@param {Type}` JSDoc annotations.62- **TS7022** (Variable implicitly any due to circular ref): Add explicit `/** @type {Type} */` annotation at declaration.63- **TS7015/TS7053** (No index signature): Use `/** @type {Record<string, X>} */` cast or narrow the index type.6465## Workflow66671. `npm ci`682. Add all 4 files to CORE_FILES in `scripts/check-strict-core.js`693. Fix each file's errors using JSDoc type annotations (no `any`, no `@ts-ignore`)704. `npm run tsc-strict-core` — must pass715. `npm run test-unit` — must pass726. `npm run lint` — must pass (run `npm run lint-fix` first if needed)737. Commit: `fix(types): add strict checking for detector files`748. `git push -u origin cursor/strict/detectors`7576## Constraints7778- Do NOT use `any` — use `unknown`, specific types, or proper interfaces79- Do NOT use `@ts-ignore` or `@ts-expect-error`80- Do NOT modify files outside the assigned list (except `scripts/check-strict-core.js`)81- Do NOT remove existing CORE_FILES entries82- Preserve existing behavior — type fixes only, no logic changes83
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| duckduckgo/content-scope-scriptstypes-generator/AGENTS.md · 70 | AGENTS.md | testarchtypesdo-not | 73/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-broker-protection-actions.mdc · 70 | Cursor rules | buildteststyletypes+4 | 93/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-broker-protection-rest.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-click-to-load.mdc · 70 | Cursor rules | teststyletypesgit+2 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-duckplayer-native.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-duckplayer.mdc · 70 | Cursor rules | setupteststyletypes+4 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-fingerprinting.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-message-bridge.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-a.mdc · 70 | Cursor rules | teststyletypesgit+4 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-b.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-c.mdc · 70 | Cursor rules | teststyletypesgit+4 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-web-compat-and-telemetry.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-zero-errors-batch.mdc · 70 | Cursor rules | testtypesgitdo-not+1 | 81/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsAGENTS.md · 70 | AGENTS.md | buildtestlint-formatstyle+5 | 83/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsinjected/AGENTS.md · 70 | AGENTS.md | buildteststylearch+2 | 92/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsmessaging/AGENTS.md · 70 | AGENTS.md | testarchtesting-strategyapi | 66/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 14 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 46 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 14 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 14 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 14 days ago | |
| bybren-llc/safe-agentic-workflow.cursor/rules/10-backend-python.mdc · 399 | Cursor rules | testlint-formatstylegit+4 | 97/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/duckduckgo-content-scope-scripts-cursor-rules-strict-detectors)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.