Skip to content

Conversation

@jonathanKingston
Copy link
Collaborator

@jonathanKingston jonathanKingston commented Dec 9, 2025

Asana Task/Github Issue: https://app.asana.com/1/137249556945/task/1212357634401271?focus=true

Description

Feature change process:

  • I have added a schema to validate this feature change.
  • I have tested this change locally in all supported browsers.
  • This code for the config change is ready to merge.
  • This feature was covered by a tech design.

Site breakage mitigation process:

Brief explanation

  • Reported URL:
  • Problems experienced:
  • Platforms affected:
    • iOS
    • Android
    • Windows
    • MacOS
    • Extensions
  • Tracker(s) being unblocked:
  • Feature being disabled/modified:
  • This change is a speculative mitigation to fix reported breakage.

Note

Enables JSONC (JSON with comments) across config sources and tooling.

  • Add readJsoncFile in util.js (via jsonc-parser) and replace raw JSON.parse usages for lists/ and overrides/ in index.js, util.js, and tests
  • Update eslint.config.mjs to lint features/** and overrides/** with eslint-plugin-jsonc; keep strict JSON rules for other **/*.json
  • Add deps eslint-plugin-jsonc and jsonc-parser; lockfile refreshed
  • Example JSONC comment added in overrides/windows-override.json

Written by Cursor Bugbot for commit bf20d64. This will update automatically on new commits. Configure here.

github-actions bot pushed a commit that referenced this pull request Dec 9, 2025
github-actions bot pushed a commit that referenced this pull request Dec 9, 2025
@github-actions
Copy link

github-actions bot commented Dec 9, 2025

👋 Don't forget to add an individual reviewer (in addition to those auto-added), as this will create a task for them in Asana.

👉 Please mark this as DRAFT unless there's an intention to merge this immediately.
👉 Click "Merge when ready" if you're happy for this to be automatically merged once reviewed. (If not available, ensure you've signed in to DuckDuckGo oauth.)
👉 Don't forget to add schema changes to validate if you're adding/changing a feature.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Generated file outputs:

Time updated: Sat, 10 Jan 2026 10:38:49 GMT

legacy
29 files identical
  • trackers-unprotected-temporary.txt
  • v3/android-config.json
  • v3/extension-brave-config.json
  • v3/extension-bravemv3-config.json
  • v3/extension-chrome-config.json
  • v3/extension-chromemv3-config.json
  • v3/extension-config.json
  • v3/extension-edg-config.json
  • v3/extension-edge-config.json
  • v3/extension-edgmv3-config.json
  • v3/extension-firefox-config.json
  • v3/extension-safarimv3-config.json
  • v3/ios-config.json
  • v3/macos-config.json
  • v3/windows-config.json
  • v4/android-config.json
  • v4/extension-brave-config.json
  • v4/extension-bravemv3-config.json
  • v4/extension-chrome-config.json
  • v4/extension-chromemv3-config.json
  • v4/extension-config.json
  • v4/extension-edg-config.json
  • v4/extension-edge-config.json
  • v4/extension-edgmv3-config.json
  • v4/extension-firefox-config.json
  • v4/extension-safarimv3-config.json
  • v4/ios-config.json
  • v4/macos-config.json
  • v4/windows-config.json

⚠️ File is identical

latest
14 files identical
  • v5/android-config.json
  • v5/extension-brave-config.json
  • v5/extension-bravemv3-config.json
  • v5/extension-chrome-config.json
  • v5/extension-chromemv3-config.json
  • v5/extension-config.json
  • v5/extension-edg-config.json
  • v5/extension-edge-config.json
  • v5/extension-edgmv3-config.json
  • v5/extension-firefox-config.json
  • v5/extension-safarimv3-config.json
  • v5/ios-config.json
  • v5/macos-config.json
  • v5/windows-config.json

⚠️ File is identical

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

JSON approval analysis:

Time updated: Sat, 10 Jan 2026 10:38:54 GMT

latest

🎯 OVERALL APPROVAL STATUS

✅ AUTO-APPROVED

Copy link
Contributor

@laghee laghee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if we add the error handling

Co-authored-by: Kate Manning <[email protected]>
github-actions bot pushed a commit that referenced this pull request Dec 19, 2025
Copy link
Contributor

@laghee laghee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jonathanKingston jonathanKingston marked this pull request as ready for review January 8, 2026 22:52
@jonathanKingston jonathanKingston requested review from a team and daxtheduck as code owners January 8, 2026 22:52
@github-actions github-actions bot requested a review from laghee January 8, 2026 22:53
ignores: [
'features/**/*.json',
'overrides/**/*.json',
],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint config leaves autoconsent.json with no linting

Medium Severity

The ESLint configuration creates a linting gap for features/autoconsent.json. The JSONC config explicitly ignores this file (line 15), intending it to be linted as strict JSON. However, the strict JSON config (lines 20-23) ignores all features/**/*.json files. Since features/autoconsent.json matches this pattern, it's excluded from both configurations and receives no JSON linting at all. JSON syntax errors in this file would not be caught.

Fix in Cursor Fix in Web

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already ignored in prettier anyway, intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants