Skip to content

Consent box that starts ticked

Gapmedium severity · reads .ts .tsx .js .jsx .mjs .cjs .py .html .vue .svelte .astroBeta

Consent has to be an active choice. A box that is ticked for the person is not consent under the GDPR, so anything sent on that basis has no legal ground (Art. 7, recital 32). When Lintsure finds this, it marks it as a Gap: the code itself shows the problem.

What it looks like

A line Lintsure flags in its own test app:

// web/signup.tsx
<input type="checkbox" name="marketing_consent" defaultChecked />

How to fix it

Start the box empty and let the person tick it. Store when they did and the wording they saw.

Through a coding agent, Lintsure suggests the change and waits. Nothing is edited until you approve it.

Controls it relates to

  • GDPRArt. 7Conditions for consent

What the framework asks

GDPR Art. 7: Consent done right

If you rely on consent, it must be freely given, specific, informed and as easy to withdraw as to give. No pre-ticked boxes.

Evidence a reviewer may ask for: Consent records and the wording users saw.

Summaries are our own reading of the public texts, not the official wording.

Check your code for this

Runs on your machine. Your code is never uploaded.

npx lintsure scan

Quickstart · Use it in Claude Code or Cursor

This rule is in Beta: its mapping to framework controls is our own reading of the public texts, not independently reviewed. Lintsure is a readiness tool, not an audit or legal advice. A finding, or the lack of one, doesn't make you compliant. Disclaimer

We improve these rules all the time. If you see a false alarm, a missed problem or anything that could work better, tell us in a review and we will use it to improve your experience.

Related rules

Did this rule flag something that's fine, or miss a real problem? Tell us on GitHub. Every report becomes a test case, so the same mistake can't come back.