Skip to content

chore: mark readOnly properties in CEM analyzer config#11181

Merged
web-padawan merged 2 commits intomainfrom
chore/cem-readonly-props
Mar 4, 2026
Merged

chore: mark readOnly properties in CEM analyzer config#11181
web-padawan merged 2 commits intomainfrom
chore/cem-readonly-props

Conversation

@web-padawan
Copy link
Copy Markdown
Member

@web-padawan web-padawan commented Feb 20, 2026

Description

Added readonlyPlugin() that detects readOnly: true in static get properties() and sets readonly: true on the corresponding CEM member declarations.

This will allow us to remove bindings like .items from web-types-lit.json when switching web types to use CEM.
Using cem-plugin-readonly is not an option as it doesn't support readOnly: true syntax, only getters / JSDoc.

Type of change

  • Internal change

Add readonlyPlugin() that detects `readOnly: true` in
`static get properties()` and sets `readonly: true` on the
corresponding CEM member declarations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts:
#	custom-elements-manifest.config.js
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 4, 2026

@web-padawan web-padawan removed the request for review from vursen March 4, 2026 14:49
@web-padawan web-padawan merged commit 7adfcda into main Mar 4, 2026
10 checks passed
@web-padawan web-padawan deleted the chore/cem-readonly-props branch March 4, 2026 14:50
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.1.0-beta2.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants