From 7a70a3f9541d5c7d4c25c24379e0199aba77745d Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 25 Apr 2024 11:39:03 -0400 Subject: [PATCH] gah --- packages/svelte/src/compiler/warnings.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/svelte/src/compiler/warnings.js b/packages/svelte/src/compiler/warnings.js index 3ae9782c85..39d9d9efb0 100644 --- a/packages/svelte/src/compiler/warnings.js +++ b/packages/svelte/src/compiler/warnings.js @@ -133,6 +133,16 @@ export function a11y_img_redundant_alt(node) { w(node, "a11y_img_redundant_alt", "Screenreaders already announce `` elements as an image."); } +/** + * The value of '%attribute%' must be a %type% + * @param {null | NodeLike} node + * @param {string} attribute + * @param {string} type + */ +export function a11y_incorrect_aria_attribute_type(node, attribute, type) { + w(node, "a11y_incorrect_aria_attribute_type", `The value of '${attribute}' must be a ${type}`); +} + /** * The value of '%attribute%' must be either 'true' or 'false'. It cannot be empty * @param {null | NodeLike} node @@ -169,16 +179,6 @@ export function a11y_incorrect_aria_attribute_type_integer(node, attribute) { w(node, "a11y_incorrect_aria_attribute_type_integer", `The value of '${attribute}' must be an integer`); } -/** - * The value of '%attribute%' must be a %type% - * @param {null | NodeLike} node - * @param {string} attribute - * @param {string} type - */ -export function a11y_incorrect_aria_attribute_type(node, attribute, type) { - w(node, "a11y_incorrect_aria_attribute_type", `The value of '${attribute}' must be a ${type}`); -} - /** * The value of '%attribute%' must be exactly one of %values% * @param {null | NodeLike} node