@maltjoy/eslint-rules 6.5.0 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ const FONT_SIZE_KEYWORDS = new Set([
|
|
|
56
56
|
|
|
57
57
|
const STYLE_BLOCK_PATTERN = /<style(?:\s[^>]*)?>([\s\S]*?)<\/style>/gi;
|
|
58
58
|
const JOY_FONT_SIZE_VAR_NAME_PATTERN =
|
|
59
|
-
/^--joy-(?:font-size-(?:primary|secondary)-\d+|text-size-[a-z0-9-]+)$/i;
|
|
59
|
+
/^--joy-(?:font-size-(?:(?:primary|secondary)-\d+|caption|default|support|heading-(?:page|overlay|section))|text-size-[a-z0-9-]+)$/i;
|
|
60
60
|
|
|
61
61
|
function normalizePropertyName(name) {
|
|
62
62
|
return name.replace(/[\s_-]+/g, '').toLowerCase();
|