You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Match any data-*/aria-* key in attributes.defaults() except
data-controller/data-action, instead of an enumerated state-attr
denylist, so new state attributes are caught automatically.
message: \sprintf('`%s` must not be defined inside `attributes.defaults()` (line %d): ARIA, Stimulus value (`data-*-value`) and state `data-*` attributes must be rendered directly so they are always present. Keep only `data-controller`/`data-action` (and overridable HTML defaults such as `type`) in `defaults()`.', $key, $line),
114
+
message: \sprintf('`%s` must not be defined inside `attributes.defaults()` (line %d): only `data-controller` and `data-action` may live in `defaults()`. Render ARIA, Stimulus value (`data-*-value`) and state `data-*` attributes directly so they are always present.', $key, $line),
110
115
recipe: $recipe,
111
116
file: $file,
112
117
);
@@ -118,17 +123,14 @@ private function checkFile(string $recipe, string $file, string $contents): iter
0 commit comments