ci(stylelint): update property-disallowed-list custom error messages (#550)

This commit is contained in:
uncenter authored and GitHub committed 2024-02-22 11:14:40 -05:00
1 parent d8d2afebf1
commit 113ad424ee
1 file changed
+3 -4
+3 -4
View File
@@ -33,8 +33,7 @@ const config = {
/** /**
* @param {string} atRule * @param {string} atRule
*/ */
message: (atRule) => message: (atRule) => `At-rule ${atRule} is not allowed`,
`At-rule ${atRule} is not allowed in Catppuccin userstyles`,
}, },
], ],
"property-disallowed-list": [ "property-disallowed-list": [
@@ -59,10 +58,10 @@ const config = {
* @param {string} prop * @param {string} prop
*/ */
message: (prop) => { message: (prop) => {
if (["border", "outline"].includes(prop)) { if (prop.includes("border") || ["outline"].includes(prop)) {
return `Use \`${prop}-color\` instead of \`${prop}\``; return `Use \`${prop}-color\` instead of \`${prop}\``;
} else { } else {
return `Property \`${prop}\` is not allowed in Catppuccin userstyles`; return `Property \`${prop}\` is not allowed`;
} }
}, },
}, },