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
*/
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`;
}
},
},