@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [Fixed] - enable pie-design-tokens rule and fix violations ([#2720](https://github.com/justeattakeaway/pie/pull/2720)) by [@raoufswe](https://github.com/raoufswe)
8
+
3
9
  ## 0.9.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/stylelint-config-pie",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Shareable Stylelint config for use with any front-end web projects across JET.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 this category
105
- if (tokenInfo?.isGlobal && tokenInfo.category !== 'motion') {
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,