@atlaskit/eslint-plugin-design-system 13.41.2 → 13.42.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +0 -1
  3. package/dist/cjs/presets/all-flat.codegen.js +1 -2
  4. package/dist/cjs/presets/all.codegen.js +1 -2
  5. package/dist/cjs/rules/index.codegen.js +1 -3
  6. package/dist/cjs/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +5 -4
  7. package/dist/es2019/presets/all-flat.codegen.js +1 -2
  8. package/dist/es2019/presets/all.codegen.js +1 -2
  9. package/dist/es2019/rules/index.codegen.js +1 -3
  10. package/dist/es2019/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +5 -4
  11. package/dist/esm/presets/all-flat.codegen.js +1 -2
  12. package/dist/esm/presets/all.codegen.js +1 -2
  13. package/dist/esm/rules/index.codegen.js +1 -3
  14. package/dist/esm/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +5 -4
  15. package/dist/types/presets/all-flat.codegen.d.ts +1 -1
  16. package/dist/types/presets/all.codegen.d.ts +1 -1
  17. package/dist/types/rules/ensure-design-token-usage/index.d.ts +1 -1
  18. package/dist/types/rules/ensure-design-token-usage/rule-meta.d.ts +1 -1
  19. package/dist/types/rules/ensure-design-token-usage/utils.d.ts +1 -1
  20. package/dist/types/rules/index.codegen.d.ts +1 -1
  21. package/dist/types/rules/no-deprecated-imports/handlers/icon.d.ts +1 -1
  22. package/dist/types/rules/use-heading/transformers/common.d.ts +2 -2
  23. package/dist/types/rules/use-latest-xcss-syntax-typography/linters/common.d.ts +1 -1
  24. package/dist/types/rules/use-latest-xcss-syntax-typography/linters/wrapped-token-value.d.ts +1 -1
  25. package/dist/types/rules/use-primitives/transformers/compiled-styled/index.d.ts +1 -1
  26. package/dist/types/rules/use-primitives/transformers/emotion-css/index.d.ts +1 -1
  27. package/dist/types/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +1 -1
  28. package/dist/types/rules/use-primitives/utils/validate-styles.d.ts +1 -1
  29. package/dist/types/rules/use-primitives-text/transformers/common.d.ts +1 -1
  30. package/dist/types/rules/use-primitives-text/transformers/unsafe-small-text.d.ts +1 -1
  31. package/dist/types/rules/use-tokens-typography/config/index.d.ts +1 -1
  32. package/dist/types/rules/use-tokens-typography/transformers/banned-properties.d.ts +1 -1
  33. package/dist/types/rules/use-tokens-typography/transformers/font-family.d.ts +1 -1
  34. package/dist/types/rules/use-tokens-typography/transformers/font-weight.d.ts +1 -1
  35. package/dist/types/rules/use-tokens-typography/transformers/restricted-capitalisation.d.ts +1 -1
  36. package/dist/types/rules/use-tokens-typography/transformers/style-object.d.ts +1 -1
  37. package/dist/types/rules/use-tokens-typography/transformers/untokenized-properties.d.ts +1 -1
  38. package/dist/types/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +1 -1
  39. package/dist/types/rules/utils/get-first-supported-import.d.ts +1 -1
  40. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +1 -1
  41. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  42. package/dist/types-ts4.5/rules/ensure-design-token-usage/index.d.ts +1 -1
  43. package/dist/types-ts4.5/rules/ensure-design-token-usage/rule-meta.d.ts +1 -1
  44. package/dist/types-ts4.5/rules/ensure-design-token-usage/utils.d.ts +1 -1
  45. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -1
  46. package/dist/types-ts4.5/rules/no-deprecated-imports/handlers/icon.d.ts +1 -1
  47. package/dist/types-ts4.5/rules/use-heading/transformers/common.d.ts +2 -2
  48. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/common.d.ts +1 -1
  49. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/wrapped-token-value.d.ts +1 -1
  50. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/index.d.ts +1 -1
  51. package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/index.d.ts +1 -1
  52. package/dist/types-ts4.5/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +1 -1
  53. package/dist/types-ts4.5/rules/use-primitives/utils/validate-styles.d.ts +1 -1
  54. package/dist/types-ts4.5/rules/use-primitives-text/transformers/common.d.ts +1 -1
  55. package/dist/types-ts4.5/rules/use-primitives-text/transformers/unsafe-small-text.d.ts +1 -1
  56. package/dist/types-ts4.5/rules/use-tokens-typography/config/index.d.ts +1 -1
  57. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/banned-properties.d.ts +1 -1
  58. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-family.d.ts +1 -1
  59. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-weight.d.ts +1 -1
  60. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/restricted-capitalisation.d.ts +1 -1
  61. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/style-object.d.ts +1 -1
  62. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/untokenized-properties.d.ts +1 -1
  63. package/dist/types-ts4.5/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +1 -1
  64. package/dist/types-ts4.5/rules/utils/get-first-supported-import.d.ts +1 -1
  65. package/package.json +4 -4
  66. package/dist/cjs/rules/no-legacy-icons/checks.js +0 -619
  67. package/dist/cjs/rules/no-legacy-icons/helpers.js +0 -900
  68. package/dist/cjs/rules/no-legacy-icons/index.js +0 -91
  69. package/dist/cjs/rules/no-legacy-icons/upcoming-icons.js +0 -7
  70. package/dist/es2019/rules/no-legacy-icons/checks.js +0 -520
  71. package/dist/es2019/rules/no-legacy-icons/helpers.js +0 -853
  72. package/dist/es2019/rules/no-legacy-icons/index.js +0 -87
  73. package/dist/es2019/rules/no-legacy-icons/upcoming-icons.js +0 -1
  74. package/dist/esm/rules/no-legacy-icons/checks.js +0 -613
  75. package/dist/esm/rules/no-legacy-icons/helpers.js +0 -891
  76. package/dist/esm/rules/no-legacy-icons/index.js +0 -85
  77. package/dist/esm/rules/no-legacy-icons/upcoming-icons.js +0 -1
  78. package/dist/types/rules/no-legacy-icons/checks.d.ts +0 -16
  79. package/dist/types/rules/no-legacy-icons/helpers.d.ts +0 -151
  80. package/dist/types/rules/no-legacy-icons/index.d.ts +0 -2
  81. package/dist/types/rules/no-legacy-icons/upcoming-icons.d.ts +0 -1
  82. package/dist/types-ts4.5/rules/no-legacy-icons/checks.d.ts +0 -16
  83. package/dist/types-ts4.5/rules/no-legacy-icons/helpers.d.ts +0 -156
  84. package/dist/types-ts4.5/rules/no-legacy-icons/index.d.ts +0 -2
  85. package/dist/types-ts4.5/rules/no-legacy-icons/upcoming-icons.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 13.42.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0daada0469ab8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0daada0469ab8) -
8
+ Remove `@atlaskit/icon/migration-map` entry point, `IconMigrationMap` and
9
+ `IconMigrationSizeGuidance` types from `@atlaskit/icon`, and `@atlaskit/icon-lab/migration-map`
10
+ entry point. These were only needed to support the legacy glyph icon migration path which has now
11
+ been fully completed. Remove the `no-legacy-icons` ESLint rule from
12
+ `@atlaskit/eslint-plugin-design-system` as `@atlaskit/icon/glyph` and
13
+ `@atlaskit/icon/core/migration` no longer exist.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ ## 13.41.3
20
+
21
+ ### Patch Changes
22
+
23
+ - [`f1ef2305b8862`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1ef2305b8862) -
24
+ Remove legacy icon glyphs and oldName prop support from metadata core.
25
+ - Updated dependencies
26
+
3
27
  ## 13.41.2
4
28
 
5
29
  ### Patch Changes
package/README.md CHANGED
@@ -85,7 +85,6 @@ module.exports = {
85
85
  | <a href="./packages/design-system/eslint-plugin/src/rules/no-icon-spacing-prop/README.md">no-icon-spacing-prop</a> | Disallows usage of the deprecated spacing prop on new icons. Use Flex with cssMap for spacing instead. | Yes | | Yes |
86
86
  | <a href="./packages/design-system/eslint-plugin/src/rules/no-invalid-css-map/README.md">no-invalid-css-map</a> | Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking. | Yes | | |
87
87
  | <a href="./packages/design-system/eslint-plugin/src/rules/no-keyframes-tagged-template-expression/README.md">no-keyframes-tagged-template-expression</a> | Disallows any `keyframe` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
88
- | <a href="./packages/design-system/eslint-plugin/src/rules/no-legacy-icons/README.md">no-legacy-icons</a> | Enforces no legacy icons are used. | | Yes | Yes |
89
88
  | <a href="./packages/design-system/eslint-plugin/src/rules/no-margin/README.md">no-margin</a> | Disallow using the margin CSS property. | | | |
90
89
  | <a href="./packages/design-system/eslint-plugin/src/rules/no-nested-styles/README.md">no-nested-styles</a> | Disallows use of nested styles in `css` functions. | Yes | | |
91
90
  | <a href="./packages/design-system/eslint-plugin/src/rules/no-physical-properties/README.md">no-physical-properties</a> | Disallow physical properties and values in `css` and `cssMap` function calls. | | Yes | |
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::6a7b233fc5b211ee3868899e1525bbdb>>
9
+ * @codegen <<SignedSource::d7505be26b7cccfa9d157da41fd37a98>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
 
@@ -49,7 +49,6 @@ var rules = {
49
49
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
50
50
  }],
51
51
  '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
52
- '@atlaskit/design-system/no-legacy-icons': 'warn',
53
52
  '@atlaskit/design-system/no-margin': 'warn',
54
53
  '@atlaskit/design-system/no-nested-styles': 'error',
55
54
  '@atlaskit/design-system/no-physical-properties': 'error',
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::69b963bac3d18247c1cba21a3bca7bb4>>
9
+ * @codegen <<SignedSource::2063561581c09470ca6ff9a6f3112393>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
 
@@ -48,7 +48,6 @@ var rules = {
48
48
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
49
49
  }],
50
50
  '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
51
- '@atlaskit/design-system/no-legacy-icons': 'warn',
52
51
  '@atlaskit/design-system/no-margin': 'warn',
53
52
  '@atlaskit/design-system/no-nested-styles': 'error',
54
53
  '@atlaskit/design-system/no-physical-properties': 'error',
@@ -41,7 +41,6 @@ var _noHtmlTextarea = _interopRequireDefault(require("./no-html-textarea"));
41
41
  var _noIconSpacingProp = _interopRequireDefault(require("./no-icon-spacing-prop"));
42
42
  var _noInvalidCssMap = _interopRequireDefault(require("./no-invalid-css-map"));
43
43
  var _noKeyframesTaggedTemplateExpression = _interopRequireDefault(require("./no-keyframes-tagged-template-expression"));
44
- var _noLegacyIcons = _interopRequireDefault(require("./no-legacy-icons"));
45
44
  var _noMargin = _interopRequireDefault(require("./no-margin"));
46
45
  var _noNestedStyles = _interopRequireDefault(require("./no-nested-styles"));
47
46
  var _noPhysicalProperties = _interopRequireDefault(require("./no-physical-properties"));
@@ -84,7 +83,7 @@ var _useTokensTypography = _interopRequireDefault(require("./use-tokens-typograp
84
83
  var _useVisuallyHidden = _interopRequireDefault(require("./use-visually-hidden"));
85
84
  /**
86
85
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
87
- * @codegen <<SignedSource::5d0d1213db83267889fa81e0aab419f7>>
86
+ * @codegen <<SignedSource::e36ff3c1350e9663e23e8bf40c7aa809>>
88
87
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
89
88
  */
90
89
 
@@ -125,7 +124,6 @@ var rules = exports.rules = {
125
124
  'no-icon-spacing-prop': _noIconSpacingProp.default,
126
125
  'no-invalid-css-map': _noInvalidCssMap.default,
127
126
  'no-keyframes-tagged-template-expression': _noKeyframesTaggedTemplateExpression.default,
128
- 'no-legacy-icons': _noLegacyIcons.default,
129
127
  'no-margin': _noMargin.default,
130
128
  'no-nested-styles': _noNestedStyles.default,
131
129
  'no-physical-properties': _noPhysicalProperties.default,
@@ -73,10 +73,11 @@ var isValidCssPropertiesToTransform = exports.isValidCssPropertiesToTransform =
73
73
  return _cssToXcss.supportedStylesMap[styleProperty] && _cssToXcss.supportedStylesMap[styleProperty][styleValue.fallbackValue] === styleValue.tokenName;
74
74
  } else {
75
75
  // direct value used
76
- return _cssToXcss.supportedStylesMap[styleProperty] &&
77
- // Is the key something we can map
78
- _cssToXcss.supportedStylesMap[styleProperty][styleValue] // Is the value something we can map
79
- ;
76
+ return (
77
+ // Is the value something we can map
78
+ // Is the key something we can map
79
+ _cssToXcss.supportedStylesMap[styleProperty] && _cssToXcss.supportedStylesMap[styleProperty][styleValue]
80
+ );
80
81
  }
81
82
  });
82
83
  if (!containsOnlyValidStyles) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::6a7b233fc5b211ee3868899e1525bbdb>>
3
+ * @codegen <<SignedSource::d7505be26b7cccfa9d157da41fd37a98>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -43,7 +43,6 @@ const rules = {
43
43
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
44
44
  }],
45
45
  '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
46
- '@atlaskit/design-system/no-legacy-icons': 'warn',
47
46
  '@atlaskit/design-system/no-margin': 'warn',
48
47
  '@atlaskit/design-system/no-nested-styles': 'error',
49
48
  '@atlaskit/design-system/no-physical-properties': 'error',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::69b963bac3d18247c1cba21a3bca7bb4>>
3
+ * @codegen <<SignedSource::2063561581c09470ca6ff9a6f3112393>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -42,7 +42,6 @@ const rules = {
42
42
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
43
43
  }],
44
44
  '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
45
- '@atlaskit/design-system/no-legacy-icons': 'warn',
46
45
  '@atlaskit/design-system/no-margin': 'warn',
47
46
  '@atlaskit/design-system/no-nested-styles': 'error',
48
47
  '@atlaskit/design-system/no-physical-properties': 'error',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::5d0d1213db83267889fa81e0aab419f7>>
3
+ * @codegen <<SignedSource::e36ff3c1350e9663e23e8bf40c7aa809>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -40,7 +40,6 @@ import noHtmlTextarea from './no-html-textarea';
40
40
  import noIconSpacingProp from './no-icon-spacing-prop';
41
41
  import noInvalidCssMap from './no-invalid-css-map';
42
42
  import noKeyframesTaggedTemplateExpression from './no-keyframes-tagged-template-expression';
43
- import noLegacyIcons from './no-legacy-icons';
44
43
  import noMargin from './no-margin';
45
44
  import noNestedStyles from './no-nested-styles';
46
45
  import noPhysicalProperties from './no-physical-properties';
@@ -118,7 +117,6 @@ export const rules = {
118
117
  'no-icon-spacing-prop': noIconSpacingProp,
119
118
  'no-invalid-css-map': noInvalidCssMap,
120
119
  'no-keyframes-tagged-template-expression': noKeyframesTaggedTemplateExpression,
121
- 'no-legacy-icons': noLegacyIcons,
122
120
  'no-margin': noMargin,
123
121
  'no-nested-styles': noNestedStyles,
124
122
  'no-physical-properties': noPhysicalProperties,
@@ -58,10 +58,11 @@ export const isValidCssPropertiesToTransform = (node, config) => {
58
58
  return supportedStylesMap[styleProperty] && supportedStylesMap[styleProperty][styleValue.fallbackValue] === styleValue.tokenName;
59
59
  } else {
60
60
  // direct value used
61
- return supportedStylesMap[styleProperty] &&
62
- // Is the key something we can map
63
- supportedStylesMap[styleProperty][styleValue] // Is the value something we can map
64
- ;
61
+ return (
62
+ // Is the value something we can map
63
+ // Is the key something we can map
64
+ supportedStylesMap[styleProperty] && supportedStylesMap[styleProperty][styleValue]
65
+ );
65
66
  }
66
67
  });
67
68
  if (!containsOnlyValidStyles) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::6a7b233fc5b211ee3868899e1525bbdb>>
3
+ * @codegen <<SignedSource::d7505be26b7cccfa9d157da41fd37a98>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -43,7 +43,6 @@ var rules = {
43
43
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
44
44
  }],
45
45
  '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
46
- '@atlaskit/design-system/no-legacy-icons': 'warn',
47
46
  '@atlaskit/design-system/no-margin': 'warn',
48
47
  '@atlaskit/design-system/no-nested-styles': 'error',
49
48
  '@atlaskit/design-system/no-physical-properties': 'error',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::69b963bac3d18247c1cba21a3bca7bb4>>
3
+ * @codegen <<SignedSource::2063561581c09470ca6ff9a6f3112393>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -42,7 +42,6 @@ var rules = {
42
42
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
43
43
  }],
44
44
  '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
45
- '@atlaskit/design-system/no-legacy-icons': 'warn',
46
45
  '@atlaskit/design-system/no-margin': 'warn',
47
46
  '@atlaskit/design-system/no-nested-styles': 'error',
48
47
  '@atlaskit/design-system/no-physical-properties': 'error',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::5d0d1213db83267889fa81e0aab419f7>>
3
+ * @codegen <<SignedSource::e36ff3c1350e9663e23e8bf40c7aa809>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -40,7 +40,6 @@ import noHtmlTextarea from './no-html-textarea';
40
40
  import noIconSpacingProp from './no-icon-spacing-prop';
41
41
  import noInvalidCssMap from './no-invalid-css-map';
42
42
  import noKeyframesTaggedTemplateExpression from './no-keyframes-tagged-template-expression';
43
- import noLegacyIcons from './no-legacy-icons';
44
43
  import noMargin from './no-margin';
45
44
  import noNestedStyles from './no-nested-styles';
46
45
  import noPhysicalProperties from './no-physical-properties';
@@ -118,7 +117,6 @@ export var rules = {
118
117
  'no-icon-spacing-prop': noIconSpacingProp,
119
118
  'no-invalid-css-map': noInvalidCssMap,
120
119
  'no-keyframes-tagged-template-expression': noKeyframesTaggedTemplateExpression,
121
- 'no-legacy-icons': noLegacyIcons,
122
120
  'no-margin': noMargin,
123
121
  'no-nested-styles': noNestedStyles,
124
122
  'no-physical-properties': noPhysicalProperties,
@@ -64,10 +64,11 @@ export var isValidCssPropertiesToTransform = function isValidCssPropertiesToTran
64
64
  return supportedStylesMap[styleProperty] && supportedStylesMap[styleProperty][styleValue.fallbackValue] === styleValue.tokenName;
65
65
  } else {
66
66
  // direct value used
67
- return supportedStylesMap[styleProperty] &&
68
- // Is the key something we can map
69
- supportedStylesMap[styleProperty][styleValue] // Is the value something we can map
70
- ;
67
+ return (
68
+ // Is the value something we can map
69
+ // Is the key something we can map
70
+ supportedStylesMap[styleProperty] && supportedStylesMap[styleProperty][styleValue]
71
+ );
71
72
  }
72
73
  });
73
74
  if (!containsOnlyValidStyles) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::6a7b233fc5b211ee3868899e1525bbdb>>
3
+ * @codegen <<SignedSource::d7505be26b7cccfa9d157da41fd37a98>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import type { Linter } from 'eslint';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::69b963bac3d18247c1cba21a3bca7bb4>>
3
+ * @codegen <<SignedSource::2063561581c09470ca6ff9a6f3112393>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import type { ESLint } from 'eslint';
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type RuleConfig } from './types';
2
+ import type { RuleConfig } from './types';
3
3
  declare const createWithConfig: (initialConfig: RuleConfig) => Rule.RuleModule['create'];
4
4
  declare const rule: Rule.RuleModule;
5
5
  export default rule;
@@ -1,4 +1,4 @@
1
- import { type Domains } from './types';
1
+ import type { Domains } from './types';
2
2
  declare const ruleMeta: {
3
3
  readonly name: 'ensure-design-token-usage';
4
4
  readonly hasSuggestions: true;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type EslintNode, type ObjectExpression, type Property, SimpleCallExpression, type SpreadElement, StringableASTNode, type TaggedTemplateExpression } from 'eslint-codemod-utils';
3
- import { type Domains } from './types';
3
+ import type { Domains } from './types';
4
4
  export type ProcessedCSSLines = [string, string][];
5
5
  export declare function insertTokensImport(fixer: Rule.RuleFixer): Rule.Fix;
6
6
  export declare const isSpacingProperty: (propertyName: string) => boolean;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::5d0d1213db83267889fa81e0aab419f7>>
3
+ * @codegen <<SignedSource::e36ff3c1350e9663e23e8bf40c7aa809>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import type { Rule } from 'eslint';
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type ExportNamedDeclaration, type ImportDeclaration, type JSXElement } from 'eslint-codemod-utils';
3
- import { type DeprecatedImportConfigEntry } from '../../utils/types';
3
+ import type { DeprecatedImportConfigEntry } from '../../utils/types';
4
4
  export type ImportIconDeprecationError = Rule.ReportDescriptor & {
5
5
  node: ImportDeclaration;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
2
+ import type { JSXElement } from 'eslint-codemod-utils';
3
+ import type { RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type RuleConfig } from '../config';
2
+ import type { RuleConfig } from '../config';
3
3
  export type MetaData = {
4
4
  context: Rule.RuleContext;
5
5
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type MetaData } from './common';
2
+ import type { MetaData } from './common';
3
3
  export declare const WrappedTokenValue: {
4
4
  lint(node: Rule.Node, { context, config }: MetaData): void;
5
5
  _check(node: Rule.Node, { config }: MetaData): boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement, type VariableDeclarator } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../../config';
3
+ import type { RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../../config';
3
+ import type { RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type SimpleCallExpression } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  export declare const isValidCssPropertiesToTransform: (node: SimpleCallExpression & Rule.NodeParentExtension, config: RuleConfig) => boolean;
@@ -1,3 +1,3 @@
1
1
  import { type CallExpression } from 'eslint-codemod-utils';
2
- import { type RuleConfig } from '../config';
2
+ import type { RuleConfig } from '../config';
3
3
  export declare const validateStyles: (node: CallExpression, config: RuleConfig) => boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type MetaData } from './common';
3
+ import type { MetaData } from './common';
4
4
  export declare const UnsafeSmallText: {
5
5
  lint(node: Rule.Node, { context, config }: MetaData): void;
6
6
  _check(node: JSXElement, { config }: MetaData): boolean;
@@ -1,4 +1,4 @@
1
- import { type JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
1
+ import type { JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
2
2
  type Pattern = 'style-object' | 'font-weight' | 'font-family' | 'untokenized-properties' | 'banned-properties' | 'restricted-capitalisation';
3
3
  export type RuleConfig = {
4
4
  failSilently: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type ImportDeclaration, type ObjectExpression, type Property, type StringableASTNode } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  import { type TokenValueMap } from '../utils';
5
5
  interface MetaData {
6
6
  context: Rule.RuleContext;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope as ScopeNamespace } from 'eslint';
2
- import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
2
+ import type { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
3
3
  type Node = Rule.Node;
4
4
  type RuleContext = Rule.RuleContext;
5
5
  type Scope = ScopeNamespace.Scope;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type ImportDeclaration } from 'eslint-codemod-utils';
3
- import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
3
+ import type { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
4
4
  type RuleContext = Rule.RuleContext;
5
5
  /**
6
6
  * Get the first import declaration in the file that matches any of the packages
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::6a7b233fc5b211ee3868899e1525bbdb>>
3
+ * @codegen <<SignedSource::d7505be26b7cccfa9d157da41fd37a98>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import type { Linter } from 'eslint';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::69b963bac3d18247c1cba21a3bca7bb4>>
3
+ * @codegen <<SignedSource::2063561581c09470ca6ff9a6f3112393>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import type { ESLint } from 'eslint';
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type RuleConfig } from './types';
2
+ import type { RuleConfig } from './types';
3
3
  declare const createWithConfig: (initialConfig: RuleConfig) => Rule.RuleModule['create'];
4
4
  declare const rule: Rule.RuleModule;
5
5
  export default rule;
@@ -1,4 +1,4 @@
1
- import { type Domains } from './types';
1
+ import type { Domains } from './types';
2
2
  declare const ruleMeta: {
3
3
  readonly name: 'ensure-design-token-usage';
4
4
  readonly hasSuggestions: true;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type EslintNode, type ObjectExpression, type Property, SimpleCallExpression, type SpreadElement, StringableASTNode, type TaggedTemplateExpression } from 'eslint-codemod-utils';
3
- import { type Domains } from './types';
3
+ import type { Domains } from './types';
4
4
  export type ProcessedCSSLines = [
5
5
  string,
6
6
  string
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::5d0d1213db83267889fa81e0aab419f7>>
3
+ * @codegen <<SignedSource::e36ff3c1350e9663e23e8bf40c7aa809>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import type { Rule } from 'eslint';
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type ExportNamedDeclaration, type ImportDeclaration, type JSXElement } from 'eslint-codemod-utils';
3
- import { type DeprecatedImportConfigEntry } from '../../utils/types';
3
+ import type { DeprecatedImportConfigEntry } from '../../utils/types';
4
4
  export type ImportIconDeprecationError = Rule.ReportDescriptor & {
5
5
  node: ImportDeclaration;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
2
+ import type { JSXElement } from 'eslint-codemod-utils';
3
+ import type { RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type RuleConfig } from '../config';
2
+ import type { RuleConfig } from '../config';
3
3
  export type MetaData = {
4
4
  context: Rule.RuleContext;
5
5
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type MetaData } from './common';
2
+ import type { MetaData } from './common';
3
3
  export declare const WrappedTokenValue: {
4
4
  lint(node: Rule.Node, { context, config }: MetaData): void;
5
5
  _check(node: Rule.Node, { config }: MetaData): boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement, type VariableDeclarator } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../../config';
3
+ import type { RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../../config';
3
+ import type { RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type SimpleCallExpression } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  export declare const isValidCssPropertiesToTransform: (node: SimpleCallExpression & Rule.NodeParentExtension, config: RuleConfig) => boolean;
@@ -1,3 +1,3 @@
1
1
  import { type CallExpression } from 'eslint-codemod-utils';
2
- import { type RuleConfig } from '../config';
2
+ import type { RuleConfig } from '../config';
3
3
  export declare const validateStyles: (node: CallExpression, config: RuleConfig) => boolean;