From b98c8823a3bc748f012ee2cc436bb5c6998d6862 Mon Sep 17 00:00:00 2001 From: francoismassart Date: Wed, 15 Jan 2025 14:08:17 +0100 Subject: [PATCH] test: add new case for https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/378 --- tests/lib/rules/enforces-shorthand.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/lib/rules/enforces-shorthand.js b/tests/lib/rules/enforces-shorthand.js index 30ecb43..a78132e 100644 --- a/tests/lib/rules/enforces-shorthand.js +++ b/tests/lib/rules/enforces-shorthand.js @@ -810,5 +810,18 @@ ruleTester.run("shorthands", rule, { }, ], })), + { + code: `
New size-* utilities
`, + output: `
New size-* utilities
`, + errors: [ + generateError(["pfx-h-5", "pfx-w-5"], "pfx-size-5"), + generateError(["sm:pfx-h-10", "sm:pfx-w-10"], "sm:pfx-size-10"), + ], + options: [ + { + config: { prefix: "pfx-" }, + }, + ], + }, ], });