From 91a83bb6351e06d389b4ca8063b1300eba7d5c0a Mon Sep 17 00:00:00 2001 From: Kenton Jacobsen Date: Mon, 3 Nov 2025 11:19:42 -0500 Subject: [PATCH] Add rule type to meta to comply with expected custom rule shape --- lib/rules/classnames-order.js | 1 + lib/rules/enforces-negative-arbitrary-values.js | 1 + lib/rules/enforces-shorthand.js | 1 + lib/rules/migration-from-tailwind-2.js | 1 + lib/rules/no-arbitrary-value.js | 1 + lib/rules/no-contradicting-classname.js | 1 + lib/rules/no-custom-classname.js | 1 + lib/rules/no-unnecessary-arbitrary-value.js | 1 + 8 files changed, 8 insertions(+) diff --git a/lib/rules/classnames-order.js b/lib/rules/classnames-order.js index cd0d2b0..5505163 100644 --- a/lib/rules/classnames-order.js +++ b/lib/rules/classnames-order.js @@ -27,6 +27,7 @@ module.exports = { recommended: false, url: docsUrl('classnames-order'), }, + type: 'suggestion', messages: { invalidOrder: INVALID_CLASSNAMES_ORDER_MSG, }, diff --git a/lib/rules/enforces-negative-arbitrary-values.js b/lib/rules/enforces-negative-arbitrary-values.js index eb3790e..6550ba1 100644 --- a/lib/rules/enforces-negative-arbitrary-values.js +++ b/lib/rules/enforces-negative-arbitrary-values.js @@ -27,6 +27,7 @@ module.exports = { recommended: true, url: docsUrl('enforces-negative-arbitrary-values'), }, + type: 'suggestion', messages: { negativeArbitraryValue: NEGATIVE_ARBITRARY_VALUE, }, diff --git a/lib/rules/enforces-shorthand.js b/lib/rules/enforces-shorthand.js index ebe2f19..d54079a 100644 --- a/lib/rules/enforces-shorthand.js +++ b/lib/rules/enforces-shorthand.js @@ -28,6 +28,7 @@ module.exports = { recommended: true, url: docsUrl('enforces-shorthand'), }, + type: 'suggestion', messages: { shorthandCandidateDetected: SHORTHAND_CANDIDATE_CLASSNAMES_DETECTED_MSG, }, diff --git a/lib/rules/migration-from-tailwind-2.js b/lib/rules/migration-from-tailwind-2.js index 01abb90..4662ec8 100644 --- a/lib/rules/migration-from-tailwind-2.js +++ b/lib/rules/migration-from-tailwind-2.js @@ -30,6 +30,7 @@ module.exports = { recommended: true, url: docsUrl('migration-from-tailwind-2'), }, + type: 'suggestion', messages: { classnameNotNeeded: CLASSNAME_NOT_NEEDED_MSG, classnamesNotNeeded: CLASSNAMES_NOT_NEEDED_MSG, diff --git a/lib/rules/no-arbitrary-value.js b/lib/rules/no-arbitrary-value.js index d0f3920..d2a6590 100644 --- a/lib/rules/no-arbitrary-value.js +++ b/lib/rules/no-arbitrary-value.js @@ -27,6 +27,7 @@ module.exports = { recommended: false, url: docsUrl('no-arbitrary-value'), }, + type: 'suggestion', messages: { arbitraryValueDetected: ARBITRARY_VALUE_DETECTED_MSG, }, diff --git a/lib/rules/no-contradicting-classname.js b/lib/rules/no-contradicting-classname.js index f5069c0..2ebf243 100644 --- a/lib/rules/no-contradicting-classname.js +++ b/lib/rules/no-contradicting-classname.js @@ -28,6 +28,7 @@ module.exports = { recommended: true, url: docsUrl('no-contradicting-classname'), }, + type: 'suggestion', messages: { conflictingClassnames: CONFLICTING_CLASSNAMES_DETECTED_MSG, }, diff --git a/lib/rules/no-custom-classname.js b/lib/rules/no-custom-classname.js index ca4e5da..f579a88 100644 --- a/lib/rules/no-custom-classname.js +++ b/lib/rules/no-custom-classname.js @@ -38,6 +38,7 @@ module.exports = { recommended: false, url: docsUrl('no-custom-classname'), }, + type: 'suggestion', messages: { customClassnameDetected: CUSTOM_CLASSNAME_DETECTED_MSG, }, diff --git a/lib/rules/no-unnecessary-arbitrary-value.js b/lib/rules/no-unnecessary-arbitrary-value.js index 47b3c27..b5f6acb 100644 --- a/lib/rules/no-unnecessary-arbitrary-value.js +++ b/lib/rules/no-unnecessary-arbitrary-value.js @@ -33,6 +33,7 @@ module.exports = { recommended: true, url: docsUrl('no-unnecessary-arbitrary-value'), }, + type: 'suggestion', messages: { unnecessaryArbitraryValueDetected: UNNECESSARY_ARBITRARY_VALUE_DETECTED_MSG, },