

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456789101112# Strict TypeScript: Standalone Features B1314## Task1516Fix all strict-mode TypeScript errors in 5 standalone feature files and add them to `CORE_FILES`.1718## Branch1920```21git checkout main && git pull origin main && git checkout -b cursor/strict/standalone-features-b22```2324## Files (53 errors total)2526### `injected/src/features/duck-ai-chat-history.js` (11 errors)27```28(25,13): error TS2322: Type 'Promise<void>' is not assignable to type 'void'.29(51,31): error TS2339: Property 'message' does not exist on type '{}'.30(227,22): error TS2339: Property 'pinned' does not exist on type 'object'.31(244,30): error TS2339: Property 'lastEdit' does not exist on type 'object'.32(250,27): error TS2339: Property 'chatId' does not exist on type 'object'.33(251,26): error TS2339: Property 'title' does not exist on type 'object'.34(252,26): error TS2339: Property 'model' does not exist on type 'object'.35(254,27): error TS2339: Property 'pinned' does not exist on type 'object'.36(265,35): error TS2339: Property 'title' does not exist on type 'object'.37(265,61): error TS2339: Property 'title' does not exist on type 'object'.38(277,31): error TS2339: Property 'lastEdit' does not exist on type 'object'.39```4041### `injected/src/features/duck-ai-data-clearing.js` (5 errors)42```43(14,110): error TS2322: Type 'Promise<void>' is not assignable to type 'void'.44(92,29): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.45(111,29): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.46(153,41): error TS7006: Parameter 'chat' implicitly has an 'any' type.47(163,23): error TS7006: Parameter 'localStorageKey' implicitly has an 'any' type.48```4950### `injected/src/features/element-hiding.js` (11 errors)51```52(56,5): TS7034: Variable 'adLabelStrings' implicitly has type 'any[]'.53(227,32): TS7005: Variable 'adLabelStrings' implicitly has an 'any[]' type.54(270,11): TS7034: Variable 'strictHideRules' implicitly has type 'any[]'.55(271,11): TS7034: Variable 'timeoutRules' implicitly has type 'any[]'.56(281,20): TS7005: Variable 'strictHideRules' implicitly has an 'any[]' type.57(282,12): TS7005: Variable 'timeoutRules' implicitly has an 'any[]' type.58(348,28): TS7006: Parameter 'selector' implicitly has an 'any' type.59(361,13): TS7034: Variable 'activeRules' implicitly has type 'any'.60(406,31): TS2345: Argument of type callback not assignable.61(407,27): TS7005: Variable 'activeRules' implicitly has an 'any' type.62(417,28): TS7005: Variable 'activeRules' implicitly has an 'any' type.63```6465### `injected/src/features/page-context.js` (19 errors)66```67(10,36): TS7006: Parameter 'node' implicitly has an 'any' type.68(24,29): TS7006: Parameter 'str' implicitly has an 'any' type.69(196,26): TS7006: Parameter 'str' implicitly has an 'any' type.70(205,22): TS7006: Parameter 'node' implicitly has an 'any' type.71(205,28): TS7006: Parameter 'children' implicitly has an 'any' type.72(205,38): TS7006: Parameter 'settings' implicitly has an 'any' type.73(484,21): TS2339: Property 'metaDescription' does not exist on type.74(487,21): TS2339: Property 'headings' does not exist on type.75(490,21): TS2339: Property 'links' does not exist on type.76(493,21): TS2339: Property 'images' does not exist on type.77(553,33): TS7006: Parameter 'root' implicitly has an 'any' type.78(592,15): TS7034: Variable 'headings' implicitly has type 'any[]'.79(604,16): TS7005: Variable 'headings' implicitly has an 'any[]' type.80(608,15): TS7034: Variable 'links' implicitly has type 'any[]'.81(620,16): TS7005: Variable 'links' implicitly has an 'any[]' type.82(624,15): TS7034: Variable 'images' implicitly has type 'any[]'.83(636,16): TS7005: Variable 'images' implicitly has an 'any[]' type.84(639,25): TS7006: Parameter 'content' implicitly has an 'any' type.85(652,23): TS7006: Parameter 'error' implicitly has an 'any' type.86```8788### `injected/src/features/ua-ch-brands.js` (7 errors)89```90(5,17): TS7006: Parameter 'featureName' implicitly has an 'any' type.91(5,30): TS7006: Parameter 'importConfig' implicitly has an 'any' type.92(5,44): TS7006: Parameter 'features' implicitly has an 'any' type.93(5,54): TS7006: Parameter 'args' implicitly has an 'any' type.94(96,37): TS2532: Object is possibly 'undefined'.95(133,75): TS2683: 'this' implicitly has type 'any'.96(147,21): TS7053: Element implicitly has an 'any' type (string index on {}).97```9899## Fix Patterns100101- **TS2339 on `object`/`{}`**: Define proper `@typedef` for chat history entries, page context data shapes.102- **TS2322 (Promise<void> → void)**: The function signature expects `void` return but the method is `async`. Either mark the return type as `void | Promise<void>` or handle the promise.103- **TS7034/TS7005** (implicit any arrays): Add `/** @type {string[]} */` or appropriate typed array annotation.104- **TS7006**: Add `@param` JSDoc annotations.105- **TS2345**: Type guards or casts for argument mismatches.106- **TS2683**: Arrow function or `@this {Type}` annotation.107- **TS2532**: Null/undefined guards.108109## Workflow1101111. `npm ci`1122. Add all 5 files to CORE_FILES in `scripts/check-strict-core.js`1133. Fix each file's errors1144. `npm run tsc-strict-core` — must pass1155. `npm run test-unit` — must pass1166. `npm run lint` — must pass (run `npm run lint-fix` first if needed)1177. Commit: `fix(types): add strict checking for standalone feature files (batch B)`1188. `git push -u origin cursor/strict/standalone-features-b`119120## Constraints121122- Do NOT use `any` — use `unknown`, specific types, or proper interfaces123- Do NOT use `@ts-ignore` or `@ts-expect-error`124- Do NOT modify files outside the assigned list (except `scripts/check-strict-core.js`)125- Do NOT remove existing CORE_FILES entries126- Preserve existing behavior — type fixes only, no logic changes127
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-detectors.mdc · 70 | Cursor rules | teststyletypesgit+3 | 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-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-standalone-features-b)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.