Expand description
§dictator-datastar
Datastar hygiene decree for the Dictator structural linter. Validates Datastar HTML attributes for syntax and best practices.
§Rules
datastar/no-alpine-vue-attrs- Disallows Alpine.js/Vue.js style attributesdatastar/require-value- Requires values for expression-based attributesdatastar/for-template- Requires data-for on elementsdatastar/typo- Detects common typos in attribute namesdatastar/invalid-modifier- Validates modifier syntaxdatastar/action-syntax- Validates @action syntax
§Note on Attribute Order
Datastar processes attributes in DOM order (depth-first, then attribute order). The order is semantic, not stylistic - dependencies between attributes require specific ordering. This decree does NOT enforce attribute ordering since correct order depends on the specific use case.
§Building
cargo build --release --target wasm32-wasip1Modules§
Structs§
- Datastar
Hygiene - Datastar hygiene decree - enforces Datastar best practices.
Functions§
- init_
decree - Factory for creating decree instance.