What problem does it solve?
Writing Lit components with TypeScript often leads to inconsistent decorator usage, legacy class-field patterns, and misconfigured reactive properties. This Skill enforces the repository's standard patterns for reactive properties and internal state so components compile, lint, and test cleanly.
Core Features & Use Cases
- Standardized Decorator Usage: Imports decorators from individual
lit/decorators/<name>.js modules and uses TypeScript auto-accessors.
- Reactive Property Patterns: Declares public inputs with
@property(...) public accessor and internal state with @state() private accessor, including { attribute: false } for object or array inputs.
- Use Case: When adding a new Lit component to a VS Code extension webview, apply these rules to avoid the legacy
static properties pattern and verify the component with compile, lint, unit tests, and browser tests.
Quick Start
Create a new Lit component in this repository following the standard decorator and reactive property conventions.