@justeattakeaway/stylelint-config-pie 0.9.0 → 0.9.1
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/plugins/pie-design-tokens.js +4 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -100,9 +100,11 @@ function reportTokenIssues (decl, result, tokens, validTokensFromCSS) {
|
|
|
100
100
|
while (match !== null) {
|
|
101
101
|
const [token, tokenWithoutPrefix] = match;
|
|
102
102
|
const tokenInfo = tokens.get(tokenWithoutPrefix);
|
|
103
|
+
const isMotion = tokenInfo?.category === 'motion';
|
|
104
|
+
const isGlobalFontFamily = tokenWithoutPrefix.startsWith('font-family');
|
|
103
105
|
|
|
104
|
-
// Skip motion as no alias tokens exist for
|
|
105
|
-
if (tokenInfo?.isGlobal &&
|
|
106
|
+
// Skip motion as no alias tokens exist for it and global font family tokens as they might be used globally when defining @font faces.
|
|
107
|
+
if (tokenInfo?.isGlobal && !isMotion && !isGlobalFontFamily) {
|
|
106
108
|
report({
|
|
107
109
|
ruleName,
|
|
108
110
|
result,
|