@@ -1042,6 +1042,9 @@ export const validation_runes = merge(validation, a11y_validators, {
1042
1042
}
1043
1043
} ,
1044
1044
CallExpression ( node , { state, path } ) {
1045
+ if ( get_rune ( node , state . scope ) === '$bindable' && node . arguments . length > 1 ) {
1046
+ error ( node , 'invalid-rune-args-length' , '$bindable' , [ 0 , 1 ] ) ;
1047
+ }
1045
1048
validate_call_expression ( node , state . scope , path ) ;
1046
1049
} ,
1047
1050
EachBlock ( node , { next, state } ) {
@@ -1072,7 +1075,7 @@ export const validation_runes = merge(validation, a11y_validators, {
1072
1075
// TODO some of this is duplicated with above, seems off
1073
1076
if ( ( rune === '$derived' || rune === '$derived.by' ) && args . length !== 1 ) {
1074
1077
error ( node , 'invalid-rune-args-length' , rune , [ 1 ] ) ;
1075
- } else if ( ( rune === '$state' || rune === '$bindable' ) && args . length > 1 ) {
1078
+ } else if ( rune === '$state' && args . length > 1 ) {
1076
1079
error ( node , 'invalid-rune-args-length' , rune , [ 0 , 1 ] ) ;
1077
1080
} else if ( rune === '$props' ) {
1078
1081
if ( state . has_props_rune ) {
0 commit comments