From 113ad424ee858e7cdc05c14481219186b0d5dad0 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Thu, 22 Feb 2024 11:14:40 -0500 Subject: [PATCH] ci(stylelint): update property-disallowed-list custom error messages (#550) --- .stylelintrc.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.stylelintrc.js b/.stylelintrc.js index 4378e653..099a8b4f 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -33,8 +33,7 @@ const config = { /** * @param {string} atRule */ - message: (atRule) => - `At-rule ${atRule} is not allowed in Catppuccin userstyles`, + message: (atRule) => `At-rule ${atRule} is not allowed`, }, ], "property-disallowed-list": [ @@ -59,10 +58,10 @@ const config = { * @param {string} prop */ message: (prop) => { - if (["border", "outline"].includes(prop)) { + if (prop.includes("border") || ["outline"].includes(prop)) { return `Use \`${prop}-color\` instead of \`${prop}\``; } else { - return `Property \`${prop}\` is not allowed in Catppuccin userstyles`; + return `Property \`${prop}\` is not allowed`; } }, },