@@ -40,6 +40,79 @@ function w(node, code, message) {
4040	} ) ; 
4141} 
4242
43+ export  const  codes  =  [ 
44+ 	"a11y_accesskey" , 
45+ 	"a11y_aria_activedescendant_has_tabindex" , 
46+ 	"a11y_aria_attributes" , 
47+ 	"a11y_autocomplete_valid" , 
48+ 	"a11y_autofocus" , 
49+ 	"a11y_click_events_have_key_events" , 
50+ 	"a11y_distracting_elements" , 
51+ 	"a11y_figcaption_index" , 
52+ 	"a11y_figcaption_parent" , 
53+ 	"a11y_hidden" , 
54+ 	"a11y_img_redundant_alt" , 
55+ 	"a11y_incorrect_aria_attribute_type" , 
56+ 	"a11y_incorrect_aria_attribute_type_boolean" , 
57+ 	"a11y_incorrect_aria_attribute_type_id" , 
58+ 	"a11y_incorrect_aria_attribute_type_idlist" , 
59+ 	"a11y_incorrect_aria_attribute_type_integer" , 
60+ 	"a11y_incorrect_aria_attribute_type_token" , 
61+ 	"a11y_incorrect_aria_attribute_type_tokenlist" , 
62+ 	"a11y_incorrect_aria_attribute_type_tristate" , 
63+ 	"a11y_interactive_supports_focus" , 
64+ 	"a11y_invalid_attribute" , 
65+ 	"a11y_label_has_associated_control" , 
66+ 	"a11y_media_has_caption" , 
67+ 	"a11y_misplaced_role" , 
68+ 	"a11y_misplaced_scope" , 
69+ 	"a11y_missing_attribute" , 
70+ 	"a11y_missing_content" , 
71+ 	"a11y_mouse_events_have_key_events" , 
72+ 	"a11y_no_abstract_role" , 
73+ 	"a11y_no_interactive_element_to_noninteractive_role" , 
74+ 	"a11y_no_noninteractive_element_interactions" , 
75+ 	"a11y_no_noninteractive_element_to_interactive_role" , 
76+ 	"a11y_no_noninteractive_tabindex" , 
77+ 	"a11y_no_redundant_roles" , 
78+ 	"a11y_no_static_element_interactions" , 
79+ 	"a11y_positive_tabindex" , 
80+ 	"a11y_role_has_required_aria_props" , 
81+ 	"a11y_role_supports_aria_props" , 
82+ 	"a11y_role_supports_aria_props_implicit" , 
83+ 	"a11y_unknown_aria_attribute" , 
84+ 	"a11y_unknown_role" , 
85+ 	"legacy_code" , 
86+ 	"unknown_code" , 
87+ 	"options_deprecated_accessors" , 
88+ 	"options_deprecated_immutable" , 
89+ 	"options_missing_custom_element" , 
90+ 	"options_removed_enable_sourcemap" , 
91+ 	"options_removed_hydratable" , 
92+ 	"options_removed_loop_guard_timeout" , 
93+ 	"options_renamed_ssr_dom" , 
94+ 	"derived_iife" , 
95+ 	"export_let_unused" , 
96+ 	"non_reactive_update" , 
97+ 	"perf_avoid_inline_class" , 
98+ 	"perf_avoid_nested_class" , 
99+ 	"reactive_declaration_invalid_placement" , 
100+ 	"reactive_declaration_module_script" , 
101+ 	"state_referenced_locally" , 
102+ 	"store_rune_conflict" , 
103+ 	"css_unused_selector" , 
104+ 	"attribute_avoid_is" , 
105+ 	"attribute_global_event_reference" , 
106+ 	"attribute_illegal_colon" , 
107+ 	"attribute_invalid_property_name" , 
108+ 	"bind_invalid_each_rest" , 
109+ 	"block_empty" , 
110+ 	"component_name_lowercase" , 
111+ 	"element_invalid_self_closing_tag" , 
112+ 	"event_directive_deprecated" , 
113+ 	"slot_element_deprecated" 
114+ ] ; 
115+ 
43116/** 
44117 * Avoid using accesskey 
45118 * @param  {null | NodeLike } node 
@@ -414,6 +487,26 @@ export function a11y_unknown_role(node, role, suggestion) {
414487	w ( node ,  "a11y_unknown_role" ,  suggestion  ? `Unknown role '${ role } ${ suggestion }   : `Unknown role '${ role }  ) ; 
415488} 
416489
490+ /** 
491+  * `%code%` is no longer valid — please use `%suggestion%` instead 
492+  * @param  {null | NodeLike } node 
493+  * @param  {string } code 
494+  * @param  {string } suggestion 
495+  */ 
496+ export  function  legacy_code ( node ,  code ,  suggestion )  { 
497+ 	w ( node ,  "legacy_code" ,  `\`${ code } ${ suggestion }  ) ; 
498+ } 
499+ 
500+ /** 
501+  * `%code%` is not a recognised code (did you mean `%suggestion%`?) 
502+  * @param  {null | NodeLike } node 
503+  * @param  {string } code 
504+  * @param  {string | undefined | null } [suggestion] 
505+  */ 
506+ export  function  unknown_code ( node ,  code ,  suggestion )  { 
507+ 	w ( node ,  "unknown_code" ,  suggestion  ? `\`${ code } ${ suggestion }   : `\`${ code }  ) ; 
508+ } 
509+ 
417510/** 
418511 * The `accessors` option has been deprecated. It will have no effect in runes mode 
419512 * @param  {null | NodeLike } node 
0 commit comments