@atlaskit/eslint-plugin-design-system 9.5.2 → 9.7.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 (32) hide show
  1. package/CHANGELOG.md +991 -410
  2. package/README.md +1 -0
  3. package/constellation/index/usage.mdx +1 -0
  4. package/constellation/use-popup-label/usage.mdx +53 -0
  5. package/dist/cjs/presets/all.codegen.js +2 -1
  6. package/dist/cjs/presets/recommended.codegen.js +2 -1
  7. package/dist/cjs/rules/icon-label/index.js +16 -12
  8. package/dist/cjs/rules/index.codegen.js +3 -1
  9. package/dist/cjs/rules/use-popup-label/index.js +90 -0
  10. package/dist/es2019/presets/all.codegen.js +2 -1
  11. package/dist/es2019/presets/recommended.codegen.js +2 -1
  12. package/dist/es2019/rules/icon-label/index.js +12 -2
  13. package/dist/es2019/rules/index.codegen.js +3 -1
  14. package/dist/es2019/rules/use-popup-label/index.js +80 -0
  15. package/dist/esm/presets/all.codegen.js +2 -1
  16. package/dist/esm/presets/recommended.codegen.js +2 -1
  17. package/dist/esm/rules/icon-label/index.js +16 -12
  18. package/dist/esm/rules/index.codegen.js +3 -1
  19. package/dist/esm/rules/use-popup-label/index.js +84 -0
  20. package/dist/types/index.codegen.d.ts +2 -0
  21. package/dist/types/presets/all.codegen.d.ts +2 -1
  22. package/dist/types/presets/recommended.codegen.d.ts +2 -1
  23. package/dist/types/rules/index.codegen.d.ts +1 -0
  24. package/dist/types/rules/use-popup-label/index.d.ts +3 -0
  25. package/dist/types/rules/use-tokens-typography/utils.d.ts +0 -33
  26. package/dist/types-ts4.5/index.codegen.d.ts +2 -0
  27. package/dist/types-ts4.5/presets/all.codegen.d.ts +2 -1
  28. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -1
  29. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -0
  30. package/dist/types-ts4.5/rules/use-popup-label/index.d.ts +3 -0
  31. package/dist/types-ts4.5/rules/use-tokens-typography/utils.d.ts +0 -33
  32. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,714 +1,949 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 9.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#91673](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91673)
8
+ [`e757c83a22ee`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e757c83a22ee) -
9
+ Introducing new rule to encourage adding/referencing accessible name to a Popup component.
10
+
11
+ ## 9.6.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#94356](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94356)
16
+ [`8c4f5854f3da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8c4f5854f3da) -
17
+ The `icon-label` rule now supports label being defined via spreading render props in the new
18
+ buttons.
19
+
3
20
  ## 9.5.2
4
21
 
5
22
  ### Patch Changes
6
23
 
7
- - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007) [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) - Migrated to the new button component
24
+ - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
25
+ [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
26
+ Migrated to the new button component
8
27
 
9
28
  ## 9.5.1
10
29
 
11
30
  ### Patch Changes
12
31
 
13
- - [#87213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87213) [`c7caf85c839c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c7caf85c839c) - Internal refactoring to `no-invalid-css-map` to use new shared utilities from `@atlaskit/eslint-utils` for determining allowed functions calls.
14
- - Updated dependencies
32
+ - [#87213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87213)
33
+ [`c7caf85c839c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c7caf85c839c) -
34
+ Internal refactoring to `no-invalid-css-map` to use new shared utilities from
35
+ `@atlaskit/eslint-utils` for determining allowed functions calls.
36
+ - Updated dependencies
15
37
 
16
38
  ## 9.5.0
17
39
 
18
40
  ### Minor Changes
19
41
 
20
- - [#91506](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91506) [`2724a3783955`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2724a3783955) - Add support for React 18.
42
+ - [#91506](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91506)
43
+ [`2724a3783955`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2724a3783955) -
44
+ Add support for React 18.
21
45
 
22
46
  ## 9.4.1
23
47
 
24
48
  ### Patch Changes
25
49
 
26
- - [#90125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90125) [`3ee5bf94b4fd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3ee5bf94b4fd) - Added the `shouldEnforceFallbacks` option to the `use-tokens-typography` rule which can be used to prevent token fallback values being added automatically.
50
+ - [#90125](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90125)
51
+ [`3ee5bf94b4fd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3ee5bf94b4fd) -
52
+ Added the `shouldEnforceFallbacks` option to the `use-tokens-typography` rule which can be used
53
+ to prevent token fallback values being added automatically.
27
54
 
28
55
  ## 9.4.0
29
56
 
30
57
  ### Minor Changes
31
58
 
32
- - [#88717](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88717) [`5332c5b63887`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5332c5b63887) - Adding new eslint rule `@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop` to block using web platform drag and drop directly.
59
+ - [#88717](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88717)
60
+ [`5332c5b63887`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5332c5b63887) -
61
+ Adding new eslint rule `@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop` to
62
+ block using web platform drag and drop directly.
33
63
 
34
64
  ## 9.3.1
35
65
 
36
66
  ### Patch Changes
37
67
 
38
- - [#88012](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88012) [`c478a4d80fc9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c478a4d80fc9) - The `no-*-tagged-template-expression` rules will no longer autofix usages with mixins in nested selectors. This is because they were producing an array syntax that is not valid in compiled or styled-components.
68
+ - [#88012](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88012)
69
+ [`c478a4d80fc9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c478a4d80fc9) -
70
+ The `no-*-tagged-template-expression` rules will no longer autofix usages with mixins in nested
71
+ selectors. This is because they were producing an array syntax that is not valid in compiled or
72
+ styled-components.
39
73
 
40
74
  ## 9.3.0
41
75
 
42
76
  ### Minor Changes
43
77
 
44
- - [#87586](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87586) [`47d9f5fb1b11`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/47d9f5fb1b11) - Added use-heading rule
78
+ - [#87586](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87586)
79
+ [`47d9f5fb1b11`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/47d9f5fb1b11) -
80
+ Added use-heading rule
45
81
 
46
82
  ### Patch Changes
47
83
 
48
- - [#87476](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87476) [`af296d200ad2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/af296d200ad2) - Internal refactoring to use `getCreateLintRule` from `@atlaskit/eslint-utils`
49
- - Updated dependencies
84
+ - [#87476](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87476)
85
+ [`af296d200ad2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/af296d200ad2) -
86
+ Internal refactoring to use `getCreateLintRule` from `@atlaskit/eslint-utils`
87
+ - Updated dependencies
50
88
 
51
89
  ## 9.2.5
52
90
 
53
91
  ### Patch Changes
54
92
 
55
- - [#87434](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87434) [`dda5ca94da13`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dda5ca94da13) - `use-primitives` - bail on dimension properties that have token call values.
93
+ - [#87434](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87434)
94
+ [`dda5ca94da13`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dda5ca94da13) -
95
+ `use-primitives` - bail on dimension properties that have token call values.
56
96
 
57
97
  ## 9.2.4
58
98
 
59
99
  ### Patch Changes
60
100
 
61
- - [#86638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86638) [`f003f07e88e1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f003f07e88e1) - Internal refactoring to use a shared `@atlaskit/eslint-utils` package
62
- - Updated dependencies
101
+ - [#86638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86638)
102
+ [`f003f07e88e1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f003f07e88e1) -
103
+ Internal refactoring to use a shared `@atlaskit/eslint-utils` package
104
+ - Updated dependencies
63
105
 
64
106
  ## 9.2.3
65
107
 
66
108
  ### Patch Changes
67
109
 
68
- - [#86352](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86352) [`c32535ff8734`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c32535ff8734) - Fixed an issue where the `ensure-design-token-usage` rule (and by extension `ensure-design-token-usage/preview` rule) would report on color properties even if `"color"` was not provided in the domains config.
110
+ - [#86352](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86352)
111
+ [`c32535ff8734`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c32535ff8734) -
112
+ Fixed an issue where the `ensure-design-token-usage` rule (and by extension
113
+ `ensure-design-token-usage/preview` rule) would report on color properties even if `"color"` was
114
+ not provided in the domains config.
69
115
 
70
116
  ## 9.2.2
71
117
 
72
118
  ### Patch Changes
73
119
 
74
- - [#86321](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86321) [`b353b26e22b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b353b26e22b6) - Improvements for `no-*-tagged-template-expression` rules:
120
+ - [#86321](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86321)
121
+ [`b353b26e22b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b353b26e22b6) -
122
+ Improvements for `no-*-tagged-template-expression` rules:
75
123
 
76
- - Fixed a bug that could produce syntax errors when mixins were present in nested selectors.
77
- - Disabled autofixing styled components usages with mixins in nested selectors, as there is no general equivalent.
78
- - Disabled autofixing function interpolations with non-expression bodies.
124
+ - Fixed a bug that could produce syntax errors when mixins were present in nested selectors.
125
+ - Disabled autofixing styled components usages with mixins in nested selectors, as there is no
126
+ general equivalent.
127
+ - Disabled autofixing function interpolations with non-expression bodies.
79
128
 
80
129
  ## 9.2.1
81
130
 
82
131
  ### Patch Changes
83
132
 
84
- - [#85899](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85899) [`4ee3baaad3b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4ee3baaad3b7) - Loosen our final autofix check to just ignore all interpolated keys or properties in general for all `no-*-tagged-template-expression` rules as they may result in broken code in some edge-cases.
133
+ - [#85899](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85899)
134
+ [`4ee3baaad3b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4ee3baaad3b7) -
135
+ Loosen our final autofix check to just ignore all interpolated keys or properties in general for
136
+ all `no-*-tagged-template-expression` rules as they may result in broken code in some
137
+ edge-cases.
85
138
 
86
139
  ## 9.2.0
87
140
 
88
141
  ### Minor Changes
89
142
 
90
- - [#84330](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84330) [`391be0d8e414`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/391be0d8e414) - - `prefer-primitives`: This rule is now deprecated. Please use `use-primitives` instead.
91
- - `ensure-design-token-usage/preview`: This rule is now deprecated. Please use `use-tokens-space` instead.
143
+ - [#84330](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84330)
144
+ [`391be0d8e414`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/391be0d8e414) - -
145
+ `prefer-primitives`: This rule is now deprecated. Please use `use-primitives` instead.
146
+ - `ensure-design-token-usage/preview`: This rule is now deprecated. Please use
147
+ `use-tokens-space` instead.
92
148
 
93
149
  ## 9.1.0
94
150
 
95
151
  ### Minor Changes
96
152
 
97
- - [#84334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84334) [`b2134858ba58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b2134858ba58) - The `use-tokens-typography` rule now applies token fallbacks that reference the constants exported via `@atlaskit/theme/typography`, rather than applying the fallback string inline.
153
+ - [#84334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84334)
154
+ [`b2134858ba58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b2134858ba58) -
155
+ The `use-tokens-typography` rule now applies token fallbacks that reference the constants
156
+ exported via `@atlaskit/theme/typography`, rather than applying the fallback string inline.
98
157
 
99
158
  ## 9.0.0
100
159
 
101
160
  ### Major Changes
102
161
 
103
- - [#83454](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83454) [`be8b7ad6ff8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be8b7ad6ff8e) - Remove name autofixer from `consistent-css-prop-usage`. Variables for css / xcss / cssMap functions will no longer be required to end with "Styles".
162
+ - [#83454](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83454)
163
+ [`be8b7ad6ff8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be8b7ad6ff8e) -
164
+ Remove name autofixer from `consistent-css-prop-usage`. Variables for css / xcss / cssMap
165
+ functions will no longer be required to end with "Styles".
104
166
 
105
- [BREAKING] Some rule options have been changed:
167
+ [BREAKING] Some rule options have been changed:
106
168
 
107
- - `fixNamesOnly` and `autoFixNames` have been removed, as there is no longer an autofixer that enforces variable names.
108
- - If you use `fixNamesOnly: true`, we recommend switching to using `autoFix: false`.
109
- - Users of the `autoFixNames` option should remove this from their configuration.
110
- - `autoFix` option has been added. This controls whether the remaining autofixers should run or not (e.g. hoisting `css` function calls, wrapping objects in `css` function calls), and is `true` by default.
169
+ - `fixNamesOnly` and `autoFixNames` have been removed, as there is no longer an autofixer that
170
+ enforces variable names.
171
+ - If you use `fixNamesOnly: true`, we recommend switching to using `autoFix: false`.
172
+ - Users of the `autoFixNames` option should remove this from their configuration.
173
+ - `autoFix` option has been added. This controls whether the remaining autofixers should run
174
+ or not (e.g. hoisting `css` function calls, wrapping objects in `css` function calls), and
175
+ is `true` by default.
111
176
 
112
177
  ## 8.38.0
113
178
 
114
179
  ### Minor Changes
115
180
 
116
- - [#74844](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74844) [`7c7b8a771792`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7c7b8a771792) - Created `use-tokens-space` lint rule to replace `ensure-design-token-usage` rule for space values.
181
+ - [#74844](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74844)
182
+ [`7c7b8a771792`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7c7b8a771792) -
183
+ Created `use-tokens-space` lint rule to replace `ensure-design-token-usage` rule for space
184
+ values.
117
185
 
118
186
  ## 8.37.3
119
187
 
120
188
  ### Patch Changes
121
189
 
122
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
190
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
191
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
192
+ Upgrade Typescript from `4.9.5` to `5.4.2`
123
193
 
124
194
  ## 8.37.2
125
195
 
126
196
  ### Patch Changes
127
197
 
128
- - [#80662](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80662) [`4833299b00d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4833299b00d4) - For `no-css-tagged-template-expression` and `no-styled-tagged-template-expression`:
198
+ - [#80662](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80662)
199
+ [`4833299b00d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4833299b00d4) -
200
+ For `no-css-tagged-template-expression` and `no-styled-tagged-template-expression`:
129
201
 
130
- - When importing from Emotion, stop applying autofixer when the styles contain `!important`.
131
- - When importing from any library, stop applying autofixer when a selector contains a tagged template interpolation (previously only styled-components).
202
+ - When importing from Emotion, stop applying autofixer when the styles contain `!important`.
203
+ - When importing from any library, stop applying autofixer when a selector contains a tagged
204
+ template interpolation (previously only styled-components).
132
205
 
133
- - [#81697](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81697) [`cf3483e7e87d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cf3483e7e87d) - Adding a missing `license` entry to the `package.json` for this package. This package was already licensed under `Apache-2.0` (see `LICENSE` file), so this change is not changing it's license.
206
+ - [#81697](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81697)
207
+ [`cf3483e7e87d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cf3483e7e87d) -
208
+ Adding a missing `license` entry to the `package.json` for this package. This package was
209
+ already licensed under `Apache-2.0` (see `LICENSE` file), so this change is not changing it's
210
+ license.
134
211
 
135
212
  ## 8.37.1
136
213
 
137
214
  ### Patch Changes
138
215
 
139
- - [#81307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81307) [`6420f933c8ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6420f933c8ae) - Fix issue where `use-primitives` was incorrectly transforming styles with string properties.
216
+ - [#81307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81307)
217
+ [`6420f933c8ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6420f933c8ae) -
218
+ Fix issue where `use-primitives` was incorrectly transforming styles with string properties.
140
219
 
141
220
  ## 8.37.0
142
221
 
143
222
  ### Minor Changes
144
223
 
145
- - [#81166](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81166) [`a249a1bd29a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a249a1bd29a6) - Upgrade ESLint to version 8
224
+ - [#81166](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81166)
225
+ [`a249a1bd29a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a249a1bd29a6) -
226
+ Upgrade ESLint to version 8
146
227
 
147
228
  ## 8.36.3
148
229
 
149
230
  ### Patch Changes
150
231
 
151
- - [#77172](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77172) [`0e9162a7371a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0e9162a7371a) - Fixes issues with CSS var and content string handling for the `no-*-tagged-template-expression` rules
232
+ - [#77172](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77172)
233
+ [`0e9162a7371a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0e9162a7371a) -
234
+ Fixes issues with CSS var and content string handling for the `no-*-tagged-template-expression`
235
+ rules
152
236
 
153
237
  ## 8.36.2
154
238
 
155
239
  ### Patch Changes
156
240
 
157
- - [#80471](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80471) [`bf21a3bfe85e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf21a3bfe85e) - Add `autoFixNames` option to `consistent-css-prop-usage`. When set to false, the autofix naming that enforces style variables ending in the word "Styles" will be turned off. True by default.
158
- - [#80469](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80469) [`0b4b7268ef16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0b4b7268ef16) - Fixed an issue with `ensure-design-token-usage` where styles inside xcss could be incorrectly linted against.
159
- - [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518) [`0f90b6e17490`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0f90b6e17490) - Ignore function-like interpolations in selectors for `no-css-tagged-template-expression`, `no-styled-…`, and `no-keyframes-…`
241
+ - [#80471](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80471)
242
+ [`bf21a3bfe85e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf21a3bfe85e) -
243
+ Add `autoFixNames` option to `consistent-css-prop-usage`. When set to false, the autofix naming
244
+ that enforces style variables ending in the word "Styles" will be turned off. True by default.
245
+ - [#80469](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80469)
246
+ [`0b4b7268ef16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0b4b7268ef16) -
247
+ Fixed an issue with `ensure-design-token-usage` where styles inside xcss could be incorrectly
248
+ linted against.
249
+ - [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518)
250
+ [`0f90b6e17490`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0f90b6e17490) -
251
+ Ignore function-like interpolations in selectors for `no-css-tagged-template-expression`,
252
+ `no-styled-…`, and `no-keyframes-…`
160
253
 
161
254
  ## 8.36.1
162
255
 
163
256
  ### Patch Changes
164
257
 
165
- - [#79810](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79810) [`8c6e96aa3cf0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8c6e96aa3cf0) - Fixed an issue with `ensure-design-token-usage` where color props on primitive components could report an error.
258
+ - [#79810](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79810)
259
+ [`8c6e96aa3cf0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8c6e96aa3cf0) -
260
+ Fixed an issue with `ensure-design-token-usage` where color props on primitive components could
261
+ report an error.
166
262
 
167
263
  ## 8.36.0
168
264
 
169
265
  ### Minor Changes
170
266
 
171
- - [#78346](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78346) [`d20b2626a3b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d20b2626a3b0) - Adds support for use-primitives linting rule matching JSX elements declared before styles.
267
+ - [#78346](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78346)
268
+ [`d20b2626a3b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d20b2626a3b0) -
269
+ Adds support for use-primitives linting rule matching JSX elements declared before styles.
172
270
 
173
271
  ## 8.35.1
174
272
 
175
273
  ### Patch Changes
176
274
 
177
- - [#78282](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78282) [`e19154833d5f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e19154833d5f) - Missing allowed props check for single paragraph elements
275
+ - [#78282](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78282)
276
+ [`e19154833d5f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e19154833d5f) -
277
+ Missing allowed props check for single paragraph elements
178
278
 
179
279
  ## 8.35.0
180
280
 
181
281
  ### Minor Changes
182
282
 
183
- - [#77589](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77589) [`744ea21e3367`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/744ea21e3367) - Update use-primitives-text rule for new defaults in Text primitive component
283
+ - [#77589](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77589)
284
+ [`744ea21e3367`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/744ea21e3367) -
285
+ Update use-primitives-text rule for new defaults in Text primitive component
184
286
 
185
287
  ### Patch Changes
186
288
 
187
- - Updated dependencies
289
+ - Updated dependencies
188
290
 
189
291
  ## 8.34.0
190
292
 
191
293
  ### Minor Changes
192
294
 
193
- - [#75311](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75311) [`96ca033f8748`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/96ca033f8748) - Added new `use-tokens-typography` rule that handles converting fontSize and similar font properties to tokens. Removed typography functionality from `ensure-design-token-usage` rule.
295
+ - [#75311](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75311)
296
+ [`96ca033f8748`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/96ca033f8748) -
297
+ Added new `use-tokens-typography` rule that handles converting fontSize and similar font
298
+ properties to tokens. Removed typography functionality from `ensure-design-token-usage` rule.
194
299
 
195
300
  ## 8.33.0
196
301
 
197
302
  ### Minor Changes
198
303
 
199
- - [#77488](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77488) [`babedf52898f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/babedf52898f) - Add support for inline `cx` func inside `xcss` prop for the `consistent-css-prop-usage` rule.
304
+ - [#77488](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77488)
305
+ [`babedf52898f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/babedf52898f) -
306
+ Add support for inline `cx` func inside `xcss` prop for the `consistent-css-prop-usage` rule.
200
307
 
201
308
  ## 8.32.2
202
309
 
203
310
  ### Patch Changes
204
311
 
205
- - [#77485](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77485) [`887b1a3193ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/887b1a3193ce) - For `no-styled-tagged-template-expression`, do not autofix component selectors for `styled-components` implementations
312
+ - [#77485](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77485)
313
+ [`887b1a3193ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/887b1a3193ce) -
314
+ For `no-styled-tagged-template-expression`, do not autofix component selectors for
315
+ `styled-components` implementations
206
316
 
207
317
  ## 8.32.1
208
318
 
209
319
  ### Patch Changes
210
320
 
211
- - [#77519](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77519) [`6507c28d3c88`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6507c28d3c88) - Refactor implementation of `no-css-tagged-template-expression`. No change to functionality expected.
321
+ - [#77519](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77519)
322
+ [`6507c28d3c88`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6507c28d3c88) -
323
+ Refactor implementation of `no-css-tagged-template-expression`. No change to functionality
324
+ expected.
212
325
 
213
326
  ## 8.32.0
214
327
 
215
328
  ### Minor Changes
216
329
 
217
- - [#58240](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58240) [`39f3c929f0c4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/39f3c929f0c4) - Add new rule `no-html-button-element` to enforce usage of Pressable and Button
330
+ - [#58240](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58240)
331
+ [`39f3c929f0c4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/39f3c929f0c4) -
332
+ Add new rule `no-html-button-element` to enforce usage of Pressable and Button
218
333
 
219
334
  ## 8.31.0
220
335
 
221
336
  ### Minor Changes
222
337
 
223
- - [#75600](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75600) [`6259d0d74690`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6259d0d74690) - Migrates the ESLint rule from `@atlaskit/design-system/local-cx-xcss` to `@atlaskit/ui-styling-standard/local-cx-xcss`—disruption is unexpected as this rule is not in use.
338
+ - [#75600](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75600)
339
+ [`6259d0d74690`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6259d0d74690) -
340
+ Migrates the ESLint rule from `@atlaskit/design-system/local-cx-xcss` to
341
+ `@atlaskit/ui-styling-standard/local-cx-xcss`—disruption is unexpected as this rule is not in
342
+ use.
224
343
 
225
344
  ## 8.30.0
226
345
 
227
346
  ### Minor Changes
228
347
 
229
- - [#75603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75603) [`51cf4796aa02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/51cf4796aa02) - Use primitives text component rule
348
+ - [#75603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75603)
349
+ [`51cf4796aa02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/51cf4796aa02) -
350
+ Use primitives text component rule
230
351
 
231
352
  ## 8.29.1
232
353
 
233
354
  ### Patch Changes
234
355
 
235
- - [#70616](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70616) [`e80736fccc77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e80736fccc77) - Moving "no-unsupported-drag-and-drop-libraries" check to pdnd 1.0 API
236
- - [#75662](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75662) [`70585b558ebd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/70585b558ebd) - Adding "@formkit/drag-and-drop" to exclusion list for drag and drop library usage
356
+ - [#70616](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70616)
357
+ [`e80736fccc77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e80736fccc77) -
358
+ Moving "no-unsupported-drag-and-drop-libraries" check to pdnd 1.0 API
359
+ - [#75662](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75662)
360
+ [`70585b558ebd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/70585b558ebd) -
361
+ Adding "@formkit/drag-and-drop" to exclusion list for drag and drop library usage
237
362
 
238
363
  ## 8.29.0
239
364
 
240
365
  ### Minor Changes
241
366
 
242
- - [#74069](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74069) [`9bdcd6529453`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9bdcd6529453) - Allow use-primitives linting rule to lint style declarations with dimension properties.
367
+ - [#74069](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74069)
368
+ [`9bdcd6529453`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9bdcd6529453) -
369
+ Allow use-primitives linting rule to lint style declarations with dimension properties.
243
370
 
244
371
  ## 8.28.0
245
372
 
246
373
  ### Minor Changes
247
374
 
248
- - [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983) [`86e7b28c9c23`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/86e7b28c9c23) - Ported `no-keyframes-tagged-template-expression` and `no-styled-tagged-template-expression` rules from `@compiled/eslint-plugin`
375
+ - [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983)
376
+ [`86e7b28c9c23`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/86e7b28c9c23) -
377
+ Ported `no-keyframes-tagged-template-expression` and `no-styled-tagged-template-expression`
378
+ rules from `@compiled/eslint-plugin`
249
379
 
250
380
  ## 8.27.0
251
381
 
252
382
  ### Minor Changes
253
383
 
254
- - [#72966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72966) [`ec187f466e23`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ec187f466e23) - Update `consistent-css-prop-usage` to incorporate some updates previously made to the `@compiled/eslint-plugin` equivalent.
384
+ - [#72966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72966)
385
+ [`ec187f466e23`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ec187f466e23) -
386
+ Update `consistent-css-prop-usage` to incorporate some updates previously made to the
387
+ `@compiled/eslint-plugin` equivalent.
255
388
 
256
- 1. Add autofixer to add the `css` function for the following scenario:
389
+ 1. Add autofixer to add the `css` function for the following scenario:
257
390
 
258
- ```
259
- const styles = { ... };
260
- <div css={styles} />
261
- ```
391
+ ```
392
+ const styles = { ... };
393
+ <div css={styles} />
394
+ ```
262
395
 
263
- Note that this autofixer will not run if local variables are used inside the style object (e.g. `{ height: makeTaller ? '5px' : '2px' }`), or if there are spread elements, template literals, and other tricky-to-parse code. These continue to require fixing manually.
396
+ Note that this autofixer will not run if local variables are used inside the style object (e.g.
397
+ `{ height: makeTaller ? '5px' : '2px' }`), or if there are spread elements, template literals,
398
+ and other tricky-to-parse code. These continue to require fixing manually.
264
399
 
265
- (This rule would previously only autofix if the file was originally `<div css={{ ... }} />`)
400
+ (This rule would previously only autofix if the file was originally `<div css={{ ... }} />`)
266
401
 
267
- 2. Add `import { css } from '@compiled/react'` (or `xcss`) automatically when fixing. The package from which to import the `css` function can be specified through the `importSource` option.
402
+ 2. Add `import { css } from '@compiled/react'` (or `xcss`) automatically when fixing. The
403
+ package from which to import the `css` function can be specified through the `importSource`
404
+ option.
268
405
 
269
- 3. Add `excludeReactComponents` to exclude linting React components (i.e. components that start with uppercase). Sometimes it may not be desirable to have this rule apply to React components (e.g. `@atlaskit/button`), which could either use the Emotion or Compiled APIs when they expose a `css` prop. Passing a function from the wrong library can result in the styling erroneously not being applied.
406
+ 3. Add `excludeReactComponents` to exclude linting React components (i.e. components that start
407
+ with uppercase). Sometimes it may not be desirable to have this rule apply to React
408
+ components (e.g. `@atlaskit/button`), which could either use the Emotion or Compiled APIs
409
+ when they expose a `css` prop. Passing a function from the wrong library can result in the
410
+ styling erroneously not being applied.
270
411
 
271
- 4. Treat `{ ... } as const` statements the same way as `{ ... }` objects.
412
+ 4. Treat `{ ... } as const` statements the same way as `{ ... }` objects.
272
413
 
273
- 5. Add `fixNamesOnly` to disable all autofixers _except_ the autofixer that adds `styles` to the end of existing style variables. For example, in `<div css={buttonComponent} />; const buttonComponent = css({ ... })`, `buttonComponent` will continue to be renamed to `buttonComponentStyles`. Autofixers that will be _disabled_ include hoisting the styles to the top-most scope, and adding the `css` function call around style objects.
414
+ 5. Add `fixNamesOnly` to disable all autofixers _except_ the autofixer that adds `styles` to the
415
+ end of existing style variables. For example, in
416
+ `<div css={buttonComponent} />; const buttonComponent = css({ ... })`, `buttonComponent` will
417
+ continue to be renamed to `buttonComponentStyles`. Autofixers that will be _disabled_ include
418
+ hoisting the styles to the top-most scope, and adding the `css` function call around style
419
+ objects.
274
420
 
275
421
  ## 8.26.0
276
422
 
277
423
  ### Minor Changes
278
424
 
279
- - [#71429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71429) [`457122c5d002`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/457122c5d002) - Add some ESLint rules from Compiled CSS-in-JS, and adapt them for the UI Styling Standard.
425
+ - [#71429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71429)
426
+ [`457122c5d002`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/457122c5d002) -
427
+ Add some ESLint rules from Compiled CSS-in-JS, and adapt them for the UI Styling Standard.
280
428
 
281
- Rules added:
429
+ Rules added:
282
430
 
283
- - `no-empty-styled-expression`: ban `styled({})` usages
284
- - `no-exported-css` and `no-exported-keyframes`: ban `css` and `keyframes` function calls that are exported
285
- - `no-invalid-css-map`: ban usages of the Compiled/`@atlaskit/css` `cssMap` function call that are not valid
431
+ - `no-empty-styled-expression`: ban `styled({})` usages
432
+ - `no-exported-css` and `no-exported-keyframes`: ban `css` and `keyframes` function calls that
433
+ are exported
434
+ - `no-invalid-css-map`: ban usages of the Compiled/`@atlaskit/css` `cssMap` function call that
435
+ are not valid
286
436
 
287
- Changes made:
437
+ Changes made:
288
438
 
289
- - Add them to monorepo, modify to use the existing utility functions
290
- - Add support for CSS-in-JS libraries other than Compiled (styled-components, Emotion, `@atlaskit/css`, etc.) and `xcss` where appropriate
439
+ - Add them to monorepo, modify to use the existing utility functions
440
+ - Add support for CSS-in-JS libraries other than Compiled (styled-components, Emotion,
441
+ `@atlaskit/css`, etc.) and `xcss` where appropriate
291
442
 
292
443
  ## 8.25.2
293
444
 
294
445
  ### Patch Changes
295
446
 
296
- - [#71361](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71361) [`0f3be2c76337`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0f3be2c76337) - `use-primitives` no longer reports elements that have empty style objects.
447
+ - [#71361](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71361)
448
+ [`0f3be2c76337`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0f3be2c76337) -
449
+ `use-primitives` no longer reports elements that have empty style objects.
297
450
 
298
451
  ## 8.25.1
299
452
 
300
453
  ### Patch Changes
301
454
 
302
- - [#67941](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67941) [`0b1def807516`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0b1def807516) - Now rule is aplicable only to ButtonGroup ImportSpecifiers
455
+ - [#67941](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67941)
456
+ [`0b1def807516`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0b1def807516) -
457
+ Now rule is aplicable only to ButtonGroup ImportSpecifiers
303
458
 
304
459
  ## 8.25.0
305
460
 
306
461
  ### Minor Changes
307
462
 
308
- - [#70369](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70369) [`611434ce1fe5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/611434ce1fe5) - ensure-design-token-usage no longer errors on color properties defined in SVG JSX elements.
463
+ - [#70369](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70369)
464
+ [`611434ce1fe5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/611434ce1fe5) -
465
+ ensure-design-token-usage no longer errors on color properties defined in SVG JSX elements.
309
466
 
310
467
  ## 8.24.0
311
468
 
312
469
  ### Minor Changes
313
470
 
314
- - [#70036](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70036) [`667c0a990b15`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/667c0a990b15) - Allow linting of multiple property style objects in use-primitives rule.
471
+ - [#70036](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70036)
472
+ [`667c0a990b15`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/667c0a990b15) -
473
+ Allow linting of multiple property style objects in use-primitives rule.
315
474
 
316
475
  ## 8.23.4
317
476
 
318
477
  ### Patch Changes
319
478
 
320
- - [#69370](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69370) [`e14e79732cd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e14e79732cd4) - Add local-cx-xcss rule, which ensures that the `cx()` function (if imported from `@compiled/react` or `@atlaskit/css`) is only used within the `xcss` prop.
479
+ - [#69370](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69370)
480
+ [`e14e79732cd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e14e79732cd4) -
481
+ Add local-cx-xcss rule, which ensures that the `cx()` function (if imported from
482
+ `@compiled/react` or `@atlaskit/css`) is only used within the `xcss` prop.
321
483
 
322
- Internal changes: Also refactored the utility functions used by `no-css-tagged-template-expression`.
484
+ Internal changes: Also refactored the utility functions used by
485
+ `no-css-tagged-template-expression`.
323
486
 
324
487
  ## 8.23.3
325
488
 
326
489
  ### Patch Changes
327
490
 
328
- - [#69222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69222) [`a1c52086fdb9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1c52086fdb9) - Address issues in consistent-css-prop-usage hoisting and naming fixers
329
- - Updated dependencies
491
+ - [#69222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69222)
492
+ [`a1c52086fdb9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a1c52086fdb9) -
493
+ Address issues in consistent-css-prop-usage hoisting and naming fixers
494
+ - Updated dependencies
330
495
 
331
496
  ## 8.23.2
332
497
 
333
498
  ### Patch Changes
334
499
 
335
- - [#65758](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65758) [`16e6a0fbe125`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/16e6a0fbe125) - Internal refactor of `use-primitves` rule. There should be no change to consumers of the rule.
500
+ - [#65758](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65758)
501
+ [`16e6a0fbe125`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/16e6a0fbe125) -
502
+ Internal refactor of `use-primitves` rule. There should be no change to consumers of the rule.
336
503
 
337
504
  ## 8.23.1
338
505
 
339
506
  ### Patch Changes
340
507
 
341
- - [#68093](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68093) [`4c5371a76547`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4c5371a76547) - Wrap ensure-design-token-usage with an error boudary to stop it breaking issue-automat CI.
508
+ - [#68093](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68093)
509
+ [`4c5371a76547`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4c5371a76547) -
510
+ Wrap ensure-design-token-usage with an error boudary to stop it breaking issue-automat CI.
342
511
 
343
512
  ## 8.23.0
344
513
 
345
514
  ### Minor Changes
346
515
 
347
- - [#68090](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68090) [`251d7c1fca48`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/251d7c1fca48) - Modified fix naming convention for consistent-css-prop-usage rule to align with camelCase convention
516
+ - [#68090](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68090)
517
+ [`251d7c1fca48`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/251d7c1fca48) -
518
+ Modified fix naming convention for consistent-css-prop-usage rule to align with camelCase
519
+ convention
348
520
 
349
521
  ### Patch Changes
350
522
 
351
- - Updated dependencies
523
+ - Updated dependencies
352
524
 
353
525
  ## 8.22.0
354
526
 
355
527
  ### Minor Changes
356
528
 
357
- - [#63589](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63589) [`f59d997d1913`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f59d997d1913) - Implemented new fixers for cssOnTopOfModule and cssAtBottomOfModule violation cases
529
+ - [#63589](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63589)
530
+ [`f59d997d1913`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f59d997d1913) -
531
+ Implemented new fixers for cssOnTopOfModule and cssAtBottomOfModule violation cases
358
532
 
359
533
  ## 8.21.0
360
534
 
361
535
  ### Minor Changes
362
536
 
363
- - [#66250](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66250) [`6ff74a16aee7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6ff74a16aee7) - Introducing new rule to encourage adding/referencing accessible name to a ButtonGroup component.
537
+ - [#66250](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66250)
538
+ [`6ff74a16aee7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6ff74a16aee7) -
539
+ Introducing new rule to encourage adding/referencing accessible name to a ButtonGroup component.
364
540
 
365
541
  ## 8.20.0
366
542
 
367
543
  ### Minor Changes
368
544
 
369
- - [#66409](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66409) [`f6c48f4a67c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f6c48f4a67c1) - Implemented functionality for the consistent-css-prop-usage rule to account for cssMap usages
545
+ - [#66409](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66409)
546
+ [`f6c48f4a67c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f6c48f4a67c1) -
547
+ Implemented functionality for the consistent-css-prop-usage rule to account for cssMap usages
370
548
 
371
549
  ### Patch Changes
372
550
 
373
- - [#66604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66604) [`3205b1daf57f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3205b1daf57f) - Refactor internal logic of `use-primitives` to better handle cases it will not suggest transformations for, based on the value of CSS properties.
551
+ - [#66604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66604)
552
+ [`3205b1daf57f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3205b1daf57f) -
553
+ Refactor internal logic of `use-primitives` to better handle cases it will not suggest
554
+ transformations for, based on the value of CSS properties.
374
555
 
375
556
  ## 8.19.2
376
557
 
377
558
  ### Patch Changes
378
559
 
379
- - [#66118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66118) [`93988e6fd035`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93988e6fd035) - `use-primitives` now handles tokenised padding/margin properties. This change is guarded by a config flag and not enabled by default.
560
+ - [#66118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66118)
561
+ [`93988e6fd035`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93988e6fd035) -
562
+ `use-primitives` now handles tokenised padding/margin properties. This change is guarded by a
563
+ config flag and not enabled by default.
380
564
 
381
565
  ## 8.19.1
382
566
 
383
567
  ### Patch Changes
384
568
 
385
- - [#65221](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65221) [`a2ba22904ca0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a2ba22904ca0) - Allow for @atlaskit/design-system/use-primitives lint rule to take a configuration object.
569
+ - [#65221](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65221)
570
+ [`a2ba22904ca0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a2ba22904ca0) -
571
+ Allow for @atlaskit/design-system/use-primitives lint rule to take a configuration object.
386
572
 
387
573
  ## 8.19.0
388
574
 
389
575
  ### Minor Changes
390
576
 
391
- - [#64899](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64899) [`442878c001f9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/442878c001f9) - Add `no-unsafe-style-overrides`. This rule marks any usage of unsafe style overrides as violations, such as usage of `css`, `theme`, and `cssFn` props.
577
+ - [#64899](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64899)
578
+ [`442878c001f9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/442878c001f9) -
579
+ Add `no-unsafe-style-overrides`. This rule marks any usage of unsafe style overrides as
580
+ violations, such as usage of `css`, `theme`, and `cssFn` props.
392
581
 
393
582
  ## 8.18.1
394
583
 
395
584
  ### Patch Changes
396
585
 
397
- - [#64857](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64857) [`1be24644c029`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1be24644c029) - `use-primitives` is now capable of converting styled components. This is guarded by a config flag so this release is only a patch.
586
+ - [#64857](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64857)
587
+ [`1be24644c029`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1be24644c029) -
588
+ `use-primitives` is now capable of converting styled components. This is guarded by a config
589
+ flag so this release is only a patch.
398
590
 
399
591
  ## 8.18.0
400
592
 
401
593
  ### Minor Changes
402
594
 
403
- - [#65123](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65123) [`f3b62a2c6bdd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3b62a2c6bdd) - Add new rule to warn of rollout of required `headingLevel` prop in the `SpotlightCard` component of the onboarding package.
595
+ - [#65123](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65123)
596
+ [`f3b62a2c6bdd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3b62a2c6bdd) -
597
+ Add new rule to warn of rollout of required `headingLevel` prop in the `SpotlightCard` component
598
+ of the onboarding package.
404
599
 
405
600
  ## 8.17.0
406
601
 
407
602
  ### Minor Changes
408
603
 
409
- - [#64660](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64660) [`52bbf4498c2a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/52bbf4498c2a) - Internal update to use the latest version of the `@atlaskit/tokens` package. The `no-unsafe-design-token-usage` rule should no longer error on typography tokens.
604
+ - [#64660](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64660)
605
+ [`52bbf4498c2a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/52bbf4498c2a) -
606
+ Internal update to use the latest version of the `@atlaskit/tokens` package. The
607
+ `no-unsafe-design-token-usage` rule should no longer error on typography tokens.
410
608
 
411
609
  ## 8.16.0
412
610
 
413
611
  ### Minor Changes
414
612
 
415
- - [#58402](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58402) [`2b1a12e5936f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2b1a12e5936f) - Re-work `use-primitives` lint rule to only suggest `Box`, and only trigger a violation styles contain one style property and the style value can be mapped to a token.
613
+ - [#58402](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58402)
614
+ [`2b1a12e5936f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2b1a12e5936f) -
615
+ Re-work `use-primitives` lint rule to only suggest `Box`, and only trigger a violation styles
616
+ contain one style property and the style value can be mapped to a token.
416
617
 
417
618
  ## 8.15.5
418
619
 
419
620
  ### Patch Changes
420
621
 
421
- - [#63526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63526) [`cae958047771`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cae958047771) - Internal change to how typography tokens are imported. There is no expected behaviour change.
422
- - Updated dependencies
622
+ - [#63526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63526)
623
+ [`cae958047771`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cae958047771) -
624
+ Internal change to how typography tokens are imported. There is no expected behaviour change.
625
+ - Updated dependencies
423
626
 
424
627
  ## 8.15.4
425
628
 
426
629
  ### Patch Changes
427
630
 
428
- - [#63768](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63768) [`56342fba2b72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/56342fba2b72) - Fixes an issue with the `use-drawer-label` rule where named imports such as type imports from `@atlaskit/drawer` could incorrectly report an error.
631
+ - [#63768](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63768)
632
+ [`56342fba2b72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/56342fba2b72) -
633
+ Fixes an issue with the `use-drawer-label` rule where named imports such as type imports from
634
+ `@atlaskit/drawer` could incorrectly report an error.
429
635
 
430
636
  ## 8.15.3
431
637
 
432
638
  ### Patch Changes
433
639
 
434
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
640
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
641
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
642
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
435
643
 
436
644
  ## 8.15.2
437
645
 
438
646
  ### Patch Changes
439
647
 
440
- - [#57118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57118) [`b9bd80957181`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9bd80957181) - Upgrade Emotion v10 (@emotion/core) to Emotion v11 (@emotion/react). No behaviour change expected.
648
+ - [#57118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57118)
649
+ [`b9bd80957181`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9bd80957181) -
650
+ Upgrade Emotion v10 (@emotion/core) to Emotion v11 (@emotion/react). No behaviour change
651
+ expected.
441
652
 
442
653
  ## 8.15.1
443
654
 
444
655
  ### Patch Changes
445
656
 
446
- - [#43718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43718) [`8aebcad547a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8aebcad547a) - Deprecated tokens are now warned against even when a replacement token has not been specified
447
- - Updated dependencies
657
+ - [#43718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43718)
658
+ [`8aebcad547a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8aebcad547a) -
659
+ Deprecated tokens are now warned against even when a replacement token has not been specified
660
+ - Updated dependencies
448
661
 
449
662
  ## 8.15.0
450
663
 
451
664
  ### Minor Changes
452
665
 
453
- - [#43258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43258) [`0004d49c240`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0004d49c240) - Adds a new argument `fallbackUsage` which replaces `shouldEnforceFallbacks`. This new argument is an enum which represents the three possible states this rule can be configured with.
666
+ - [#43258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43258)
667
+ [`0004d49c240`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0004d49c240) - Adds a
668
+ new argument `fallbackUsage` which replaces `shouldEnforceFallbacks`. This new argument is an
669
+ enum which represents the three possible states this rule can be configured with.
454
670
 
455
- - `forced`: Fallbacks must always been in use
456
- - `none`: Fallbacks must never been in use. (Fixer will remove any value provided )
457
- - `optional`: (new) Fallbacks are optional
671
+ - `forced`: Fallbacks must always been in use
672
+ - `none`: Fallbacks must never been in use. (Fixer will remove any value provided )
673
+ - `optional`: (new) Fallbacks are optional
458
674
 
459
675
  ## 8.14.1
460
676
 
461
677
  ### Patch Changes
462
678
 
463
- - [#42240](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42240) [`ec474733d38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec474733d38) - Handle destructured variables in link item rule.
679
+ - [#42240](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42240)
680
+ [`ec474733d38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec474733d38) - Handle
681
+ destructured variables in link item rule.
464
682
 
465
683
  ## 8.14.0
466
684
 
467
685
  ### Minor Changes
468
686
 
469
- - [#41884](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41884) [`862be3ee13b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/862be3ee13b) - Adds `no-css-tagged-template-expression` rule that disallows any `css` tagged template expressions that originate from `@emotion/react` and automatically converts them to the preferred call expression syntax.
687
+ - [#41884](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41884)
688
+ [`862be3ee13b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/862be3ee13b) - Adds
689
+ `no-css-tagged-template-expression` rule that disallows any `css` tagged template expressions
690
+ that originate from `@emotion/react` and automatically converts them to the preferred call
691
+ expression syntax.
470
692
 
471
693
  ## 8.13.1
472
694
 
473
695
  ### Patch Changes
474
696
 
475
- - [#42031](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42031) [`0b60a2a6318`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0b60a2a6318) - Add more test cases and handle undefined object property error.
697
+ - [#42031](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42031)
698
+ [`0b60a2a6318`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0b60a2a6318) - Add
699
+ more test cases and handle undefined object property error.
476
700
 
477
701
  ## 8.13.0
478
702
 
479
703
  ### Minor Changes
480
704
 
481
- - [#41825](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41825) [`f9641b28ed5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9641b28ed5) - Introducing new rule to encourage adding/referencing accessible name to a Drawer component.
705
+ - [#41825](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41825)
706
+ [`f9641b28ed5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9641b28ed5) -
707
+ Introducing new rule to encourage adding/referencing accessible name to a Drawer component.
482
708
 
483
709
  ## 8.12.1
484
710
 
485
711
  ### Patch Changes
486
712
 
487
- - [#41836](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41836) [`93427b209ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93427b209ad) - Update all generated files for recent changes to link item rule.
713
+ - [#41836](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41836)
714
+ [`93427b209ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93427b209ad) - Update
715
+ all generated files for recent changes to link item rule.
488
716
 
489
717
  ## 8.12.0
490
718
 
491
719
  ### Minor Changes
492
720
 
493
- - [#41346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41346) [`b7e50f54fb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7e50f54fb3) - Changed the no-unsupported-drag-and-drop-libraries to 'problem' type with 'error' severity. Therefore an error will now be thrown when a drag and drop package that is not Pragmatic drag and drop is imported in packages that have the rule enabled.
721
+ - [#41346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41346)
722
+ [`b7e50f54fb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7e50f54fb3) -
723
+ Changed the no-unsupported-drag-and-drop-libraries to 'problem' type with 'error' severity.
724
+ Therefore an error will now be thrown when a drag and drop package that is not Pragmatic drag
725
+ and drop is imported in packages that have the rule enabled.
494
726
 
495
727
  ## 8.11.0
496
728
 
497
729
  ### Minor Changes
498
730
 
499
- - [#41624](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41624) [`ee68a82c409`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee68a82c409) - Add fixer to and handle another invalid `href` value for link item rule.
731
+ - [#41624](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41624)
732
+ [`ee68a82c409`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee68a82c409) - Add
733
+ fixer to and handle another invalid `href` value for link item rule.
500
734
 
501
735
  ## 8.10.1
502
736
 
503
737
  ### Patch Changes
504
738
 
505
- - [#41402](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41402) [`25bf22e0ad8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/25bf22e0ad8) - Add better conditional checks in internal util.
739
+ - [#41402](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41402)
740
+ [`25bf22e0ad8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/25bf22e0ad8) - Add
741
+ better conditional checks in internal util.
506
742
 
507
743
  ## 8.10.0
508
744
 
509
745
  ### Minor Changes
510
746
 
511
- - [#40425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40425) [`5d0222e1bd7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d0222e1bd7) - Added new `no-unsupported-drag-and-drop-libraries` rule that detects imports of restricted drag and drop libraries, instead suggesting use of our library, Pragmatic drag and drop.
747
+ - [#40425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40425)
748
+ [`5d0222e1bd7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d0222e1bd7) - Added
749
+ new `no-unsupported-drag-and-drop-libraries` rule that detects imports of restricted drag and
750
+ drop libraries, instead suggesting use of our library, Pragmatic drag and drop.
512
751
 
513
752
  ## 8.9.0
514
753
 
515
754
  ### Minor Changes
516
755
 
517
- - [#40868](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40868) [`3f36676cbfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f36676cbfb) - Add `use-href-in-linkitem` rule.
756
+ - [#40868](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40868)
757
+ [`3f36676cbfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f36676cbfb) - Add
758
+ `use-href-in-linkitem` rule.
518
759
 
519
760
  ## 8.8.1
520
761
 
521
762
  ### Patch Changes
522
763
 
523
- - [#39407](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39407) [`c6db573350d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6db573350d) - The themed() and AtlaskitThemeProvider legacy theming API's are now marked as deprecated and eslint rules have been modified to disallow new usage of them.
764
+ - [#39407](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39407)
765
+ [`c6db573350d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6db573350d) - The
766
+ themed() and AtlaskitThemeProvider legacy theming API's are now marked as deprecated and eslint
767
+ rules have been modified to disallow new usage of them.
524
768
 
525
769
  ## 8.8.0
526
770
 
527
771
  ### Minor Changes
528
772
 
529
- - [#40241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40241) [`6c149f3e71d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c149f3e71d) - The `ensure-design-token-usage` rules now report on use of the CSS `calc` function when used with padding, margin, and gap properties.
773
+ - [#40241](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40241)
774
+ [`6c149f3e71d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c149f3e71d) - The
775
+ `ensure-design-token-usage` rules now report on use of the CSS `calc` function when used with
776
+ padding, margin, and gap properties.
530
777
 
531
778
  ## 8.7.1
532
779
 
533
780
  ### Patch Changes
534
781
 
535
- - [#40106](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40106) [`d6845989896`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6845989896) - Configuration added to consistent-css-prop-usage where it is now possible to specify what function names the rule should lint against, and what position is recommended for styles (top or bottom).
782
+ - [#40106](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40106)
783
+ [`d6845989896`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6845989896) -
784
+ Configuration added to consistent-css-prop-usage where it is now possible to specify what
785
+ function names the rule should lint against, and what position is recommended for styles (top or
786
+ bottom).
536
787
 
537
788
  ## 8.7.0
538
789
 
539
790
  ### Minor Changes
540
791
 
541
- - [#40128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40128) [`859ef96da96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/859ef96da96) - Adds additional rule encouraging the use of CSS logical properties. This rule comes with a fix for code that uses object syntax (via css, styled or xcss) for styles.
792
+ - [#40128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40128)
793
+ [`859ef96da96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/859ef96da96) - Adds
794
+ additional rule encouraging the use of CSS logical properties. This rule comes with a fix for
795
+ code that uses object syntax (via css, styled or xcss) for styles.
542
796
 
543
797
  ## 8.6.0
544
798
 
545
799
  ### Minor Changes
546
800
 
547
- - [#39578](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39578) [`192ba90d75b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/192ba90d75b) - The `ensure-design-token-usage` rules now support auto-fixing negative values to negative space tokens.
801
+ - [#39578](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39578)
802
+ [`192ba90d75b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/192ba90d75b) - The
803
+ `ensure-design-token-usage` rules now support auto-fixing negative values to negative space
804
+ tokens.
548
805
 
549
806
  ### Patch Changes
550
807
 
551
- - Updated dependencies
808
+ - Updated dependencies
552
809
 
553
810
  ## 8.5.0
554
811
 
555
812
  ### Minor Changes
556
813
 
557
- - [#39701](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39701) [`4eab52ffd1c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eab52ffd1c) - Add `@atlaskit/button/unsafe` to 'no-banned-imports' lint rule
814
+ - [#39701](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39701)
815
+ [`4eab52ffd1c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eab52ffd1c) - Add
816
+ `@atlaskit/button/unsafe` to 'no-banned-imports' lint rule
558
817
 
559
818
  ## 8.4.5
560
819
 
561
820
  ### Patch Changes
562
821
 
563
- - [#39649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39649) [`d37dcab0fc4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d37dcab0fc4) - Stop `prefer-primitives` from reporting on React components.
822
+ - [#39649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39649)
823
+ [`d37dcab0fc4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d37dcab0fc4) - Stop
824
+ `prefer-primitives` from reporting on React components.
564
825
 
565
826
  ## 8.4.4
566
827
 
567
828
  ### Patch Changes
568
829
 
569
- - [#39213](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39213) [`f7a807adba2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7a807adba2) - Update the `ensure-design-token-usage` rule to disallow setting the 'current surface' CSS variable (--ds-elevation-surface-current) to a hardcoded color.
570
- - Updated dependencies
830
+ - [#39213](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39213)
831
+ [`f7a807adba2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7a807adba2) - Update
832
+ the `ensure-design-token-usage` rule to disallow setting the 'current surface' CSS variable
833
+ (--ds-elevation-surface-current) to a hardcoded color.
834
+ - Updated dependencies
571
835
 
572
836
  ## 8.4.3
573
837
 
574
838
  ### Patch Changes
575
839
 
576
- - [#39210](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39210) [`96e35ec4b9d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96e35ec4b9d) - Tweak `use-primitives` and `prefer-primitives` logic to stop false positives for component names that contain HTML element names.
840
+ - [#39210](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39210)
841
+ [`96e35ec4b9d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96e35ec4b9d) - Tweak
842
+ `use-primitives` and `prefer-primitives` logic to stop false positives for component names that
843
+ contain HTML element names.
577
844
 
578
845
  ## 8.4.2
579
846
 
580
847
  ### Patch Changes
581
848
 
582
- - [#38362](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38362) [`fb85e69cf5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fb85e69cf5e) - Added this package into push model consumption.
849
+ - [#38362](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38362)
850
+ [`fb85e69cf5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fb85e69cf5e) - Added
851
+ this package into push model consumption.
583
852
 
584
853
  ## 8.4.1
585
854
 
586
855
  ### Patch Changes
587
856
 
588
- - [#38433](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38433) [`b11339bc8a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b11339bc8a3) - Internal updates for ADS Typography ADG3 theme.
589
- - Updated dependencies
857
+ - [#38433](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38433)
858
+ [`b11339bc8a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b11339bc8a3) -
859
+ Internal updates for ADS Typography ADG3 theme.
860
+ - Updated dependencies
590
861
 
591
862
  ## 8.4.0
592
863
 
593
864
  ### Minor Changes
594
865
 
595
- - [#38670](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38670) [`0128df16060`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0128df16060) - Added new `prefer-primitives` rule that detects use of `<div>` and `<span>` either as HTML tags or via styled components (`styled.div`, `styled('div')`) and suggests using primitive components instead.
866
+ - [#38670](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38670)
867
+ [`0128df16060`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0128df16060) - Added
868
+ new `prefer-primitives` rule that detects use of `<div>` and `<span>` either as HTML tags or via
869
+ styled components (`styled.div`, `styled('div')`) and suggests using primitive components
870
+ instead.
596
871
 
597
872
  ## 8.3.0
598
873
 
599
874
  ### Minor Changes
600
875
 
601
- - [#38239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38239) [`87feea3d8e0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87feea3d8e0) - Add banned import rule for `@atlaskit/primitives/pressable`
876
+ - [#38239](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38239)
877
+ [`87feea3d8e0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87feea3d8e0) - Add
878
+ banned import rule for `@atlaskit/primitives/pressable`
602
879
 
603
880
  ## 8.2.2
604
881
 
605
882
  ### Patch Changes
606
883
 
607
- - [#37947](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37947) [`1859bc0b8c7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1859bc0b8c7) - Update the casing on `xcss` to ensure consistency with the API and package consumption.
884
+ - [#37947](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37947)
885
+ [`1859bc0b8c7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1859bc0b8c7) - Update
886
+ the casing on `xcss` to ensure consistency with the API and package consumption.
608
887
 
609
888
  ## 8.2.1
610
889
 
611
890
  ### Patch Changes
612
891
 
613
- - [#37733](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37733) [`52b35a6b571`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52b35a6b571) - - Fixed an issue where the `ensure-design-token-usage` rule may incorrectly report variables that reference tokens as an error.
614
- - Fixed an issue where the `ensure-design-token-usage` rule may handle expressions that span multiple lines in template literals incorrectly.
892
+ - [#37733](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37733)
893
+ [`52b35a6b571`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52b35a6b571) - -
894
+ Fixed an issue where the `ensure-design-token-usage` rule may incorrectly report variables that
895
+ reference tokens as an error.
896
+ - Fixed an issue where the `ensure-design-token-usage` rule may handle expressions that span
897
+ multiple lines in template literals incorrectly.
615
898
 
616
899
  ## 8.2.0
617
900
 
618
901
  ### Minor Changes
619
902
 
620
- - [#37278](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37278) [`a5c9f63d2a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5c9f63d2a8) - Add improved behavior for suggestions for `use-primitives` rule.
903
+ - [#37278](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37278)
904
+ [`a5c9f63d2a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5c9f63d2a8) - Add
905
+ improved behavior for suggestions for `use-primitives` rule.
621
906
 
622
907
  ## 8.1.0
623
908
 
624
909
  ### Minor Changes
625
910
 
626
- - [#37066](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37066) [`4f9c29b2f9f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f9c29b2f9f) - Added the `no-nested-styles` rule which disallows usage of nested styles. The `no-nested-styles` rule also disallows media queries that contain min-width or max-width. The Atlassian Design System `media` object should be used instead. Other forms of media queries are still allowed.
911
+ - [#37066](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37066)
912
+ [`4f9c29b2f9f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f9c29b2f9f) - Added
913
+ the `no-nested-styles` rule which disallows usage of nested styles. The `no-nested-styles` rule
914
+ also disallows media queries that contain min-width or max-width. The Atlassian Design System
915
+ `media` object should be used instead. Other forms of media queries are still allowed.
627
916
 
628
917
  ## 8.0.2
629
918
 
630
919
  ### Patch Changes
631
920
 
632
- - [#37041](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37041) [`05a00999956`](https://bitbucket.org/atlassian/atlassian-frontend/commits/05a00999956) - `TODO` comments are no longer added when applying a spacing fix from `ensure-design-token-usage`.
921
+ - [#37041](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37041)
922
+ [`05a00999956`](https://bitbucket.org/atlassian/atlassian-frontend/commits/05a00999956) - `TODO`
923
+ comments are no longer added when applying a spacing fix from `ensure-design-token-usage`.
633
924
 
634
925
  ## 8.0.1
635
926
 
636
927
  ### Patch Changes
637
928
 
638
- - [#36624](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36624) [`278fb6833be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/278fb6833be) - The `ensure-design-token-usage` rule no longer lints against styles inside `xcss` as it already has type-safety built in for properties that accept tokens.
929
+ - [#36624](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36624)
930
+ [`278fb6833be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/278fb6833be) - The
931
+ `ensure-design-token-usage` rule no longer lints against styles inside `xcss` as it already has
932
+ type-safety built in for properties that accept tokens.
639
933
 
640
934
  ## 8.0.0
641
935
 
642
936
  ### Major Changes
643
937
 
644
- - [#36273](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36273) [`3919464ef44`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3919464ef44) - Removed `ensure-design-token-usage-spacing`. Use `ensure-design-token-usage` instead. See release notes for v7.0.0 for more info.
645
-
646
- `ensure-design-token-usage` now **errors** against spacing properties by default.
647
-
648
- If the `domains` option is provided it will override any defaults, for example the following will ignore defaults and only error for color:
649
-
650
- ```js
651
- rules: {
652
- '@atlaskit/design-system/ensure-design-token-usage': [
653
- 'error',
654
- {
655
- domains: ['color'],
656
- shouldEnforceFallbacks: false
657
- },
658
- ],
659
- },
660
- ```
661
-
662
- You can use `ensure-design-token-usage/preview` to **warn** about spacing properties until you are ready to set the main rule to error:
663
-
664
- ```js
665
- rules: {
666
- '@atlaskit/design-system/ensure-design-token-usage/preview': [
667
- 'warn',
668
- {
669
- domains: ['spacing'],
670
- shouldEnforceFallbacks: false
671
- },
672
- ],
673
- '@atlaskit/design-system/ensure-design-token-usage': [
674
- 'error',
675
- {
676
- domains: ['color'],
677
- shouldEnforceFallbacks: false
678
- },
679
- ],
680
- },
681
- ```
682
-
683
- In many cases `eslint --fix` will automatically apply migrations from hardcoded values and `gridSize` to space tokens.
684
-
685
- ## 7.0.3
686
-
687
- ### Patch Changes
688
-
689
- - [#35441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35441) [`81c15e86b18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81c15e86b18) - Improved autofix for 50% border radius to shape token.
938
+ - [#36273](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36273)
939
+ [`3919464ef44`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3919464ef44) -
940
+ Removed `ensure-design-token-usage-spacing`. Use `ensure-design-token-usage` instead. See
941
+ release notes for v7.0.0 for more info.
690
942
 
691
- ## 7.0.2
943
+ `ensure-design-token-usage` now **errors** against spacing properties by default.
692
944
 
693
- ### Patch Changes
694
-
695
- - [#35950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35950) [`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump semver
696
-
697
- ## 7.0.1
698
-
699
- ### Patch Changes
700
-
701
- - [#36144](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36144) [`8c955333863`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c955333863) - Fix ensure-design-token-usage to declare that is has suggestions, unblocking ESLint 7+ usage.
702
-
703
- ## 7.0.0
704
-
705
- ### Major Changes
706
-
707
- - [#35383](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35383) [`177c8c14160`](https://bitbucket.org/atlassian/atlassian-frontend/commits/177c8c14160) - Merged the `ensure-design-token-usage` and `ensure-design-token-usage-spacing` rules into a single rule: `ensure-design-token-usage`. This rule enforces color and space tokens and will be extended to enforce domains such as typography and shape in the future. The rule accepts a `domains` option which allows you to specify which domains to lint, currently defaulting to 'color' and 'space'. This rule defaults to `error`.
708
-
709
- To update to this version:
710
-
711
- - If you are using the `ensure-design-token-usage` rule, add the `domains` property with a value of `['color']`:
945
+ If the `domains` option is provided it will override any defaults, for example the following
946
+ will ignore defaults and only error for color:
712
947
 
713
948
  ```js
714
949
  rules: {
@@ -722,743 +957,1089 @@
722
957
  },
723
958
  ```
724
959
 
725
- - If you are using the `ensure-design-token-usage-spacing` rule, remove any references to it and add `'spacing'` to the domains array above.
960
+ You can use `ensure-design-token-usage/preview` to **warn** about spacing properties until you
961
+ are ready to set the main rule to error:
726
962
 
727
963
  ```js
728
964
  rules: {
965
+ '@atlaskit/design-system/ensure-design-token-usage/preview': [
966
+ 'warn',
967
+ {
968
+ domains: ['spacing'],
969
+ shouldEnforceFallbacks: false
970
+ },
971
+ ],
729
972
  '@atlaskit/design-system/ensure-design-token-usage': [
730
973
  'error',
731
974
  {
732
- domains: ['color', 'spacing'],
975
+ domains: ['color'],
733
976
  shouldEnforceFallbacks: false
734
977
  },
735
978
  ],
736
979
  },
737
980
  ```
738
981
 
739
- - If you are not using either of these rules, no changes are required.
982
+ In many cases `eslint --fix` will automatically apply migrations from hardcoded values and
983
+ `gridSize` to space tokens.
740
984
 
741
- Added a new rule `ensure-design-token-usage/preview` which is a direct clone of `ensure-design-token-usage`, but defaults to `warn`. Through this rule you can specify domains to enforce tokens for, but with a warning rather than a blocking error. This is intended to ease the introduction of certain tokens into a codebase.
985
+ ## 7.0.3
986
+
987
+ ### Patch Changes
988
+
989
+ - [#35441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35441)
990
+ [`81c15e86b18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/81c15e86b18) -
991
+ Improved autofix for 50% border radius to shape token.
992
+
993
+ ## 7.0.2
994
+
995
+ ### Patch Changes
996
+
997
+ - [#35950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35950)
998
+ [`50cf866a219`](https://bitbucket.org/atlassian/atlassian-frontend/commits/50cf866a219) - bump
999
+ semver
1000
+
1001
+ ## 7.0.1
1002
+
1003
+ ### Patch Changes
1004
+
1005
+ - [#36144](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36144)
1006
+ [`8c955333863`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c955333863) - Fix
1007
+ ensure-design-token-usage to declare that is has suggestions, unblocking ESLint 7+ usage.
1008
+
1009
+ ## 7.0.0
1010
+
1011
+ ### Major Changes
1012
+
1013
+ - [#35383](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35383)
1014
+ [`177c8c14160`](https://bitbucket.org/atlassian/atlassian-frontend/commits/177c8c14160) - Merged
1015
+ the `ensure-design-token-usage` and `ensure-design-token-usage-spacing` rules into a single
1016
+ rule: `ensure-design-token-usage`. This rule enforces color and space tokens and will be
1017
+ extended to enforce domains such as typography and shape in the future. The rule accepts a
1018
+ `domains` option which allows you to specify which domains to lint, currently defaulting to
1019
+ 'color' and 'space'. This rule defaults to `error`.
1020
+
1021
+ To update to this version:
1022
+
1023
+ - If you are using the `ensure-design-token-usage` rule, add the `domains` property with a
1024
+ value of `['color']`:
1025
+
1026
+ ```js
1027
+ rules: {
1028
+ '@atlaskit/design-system/ensure-design-token-usage': [
1029
+ 'error',
1030
+ {
1031
+ domains: ['color'],
1032
+ shouldEnforceFallbacks: false
1033
+ },
1034
+ ],
1035
+ },
1036
+ ```
1037
+
1038
+ - If you are using the `ensure-design-token-usage-spacing` rule, remove any references to it
1039
+ and add `'spacing'` to the domains array above.
1040
+
1041
+ ```js
1042
+ rules: {
1043
+ '@atlaskit/design-system/ensure-design-token-usage': [
1044
+ 'error',
1045
+ {
1046
+ domains: ['color', 'spacing'],
1047
+ shouldEnforceFallbacks: false
1048
+ },
1049
+ ],
1050
+ },
1051
+ ```
1052
+
1053
+ - If you are not using either of these rules, no changes are required.
1054
+
1055
+ Added a new rule `ensure-design-token-usage/preview` which is a direct clone of
1056
+ `ensure-design-token-usage`, but defaults to `warn`. Through this rule you can specify domains
1057
+ to enforce tokens for, but with a warning rather than a blocking error. This is intended to ease
1058
+ the introduction of certain tokens into a codebase.
742
1059
 
743
1060
  ## 6.2.1
744
1061
 
745
1062
  ### Patch Changes
746
1063
 
747
- - [#36054](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36054) [`0f48aae95e4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f48aae95e4) - Patch for incorrect behavior in upstream library.
1064
+ - [#36054](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36054)
1065
+ [`0f48aae95e4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0f48aae95e4) - Patch
1066
+ for incorrect behavior in upstream library.
748
1067
 
749
1068
  ## 6.2.0
750
1069
 
751
1070
  ### Minor Changes
752
1071
 
753
- - [#34821](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34821) [`373b6b701ca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/373b6b701ca) - Linters will now error when deprecated theme color mixins are imported
1072
+ - [#34821](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34821)
1073
+ [`373b6b701ca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/373b6b701ca) -
1074
+ Linters will now error when deprecated theme color mixins are imported
754
1075
 
755
1076
  ## 6.1.0
756
1077
 
757
1078
  ### Minor Changes
758
1079
 
759
- - [#34833](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34833) [`99d5309f42b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/99d5309f42b) - The ensure-design-token-usage-spacing rule will now lint against inline style objects
1080
+ - [#34833](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34833)
1081
+ [`99d5309f42b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/99d5309f42b) - The
1082
+ ensure-design-token-usage-spacing rule will now lint against inline style objects
760
1083
 
761
1084
  ## 6.0.1
762
1085
 
763
1086
  ### Patch Changes
764
1087
 
765
- - [#35448](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35448) [`fa18829653d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa18829653d) - Updated spacing rule to ignore gridSize functions that accept arguments as these are custom and not part of the Design System.
1088
+ - [#35448](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35448)
1089
+ [`fa18829653d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa18829653d) -
1090
+ Updated spacing rule to ignore gridSize functions that accept arguments as these are custom and
1091
+ not part of the Design System.
766
1092
 
767
1093
  ## 6.0.0
768
1094
 
769
1095
  ### Major Changes
770
1096
 
771
- - [#34804](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34804) [`c8174712a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c8174712a85) - New rule consistent-css-prop-usage available as part of the recommended preset. For detailed docs please see: https://atlassian.design/components/eslint-plugin-design-system/usage#consistent-css-prop-usage
1097
+ - [#34804](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34804)
1098
+ [`c8174712a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c8174712a85) - New
1099
+ rule consistent-css-prop-usage available as part of the recommended preset. For detailed docs
1100
+ please see:
1101
+ https://atlassian.design/components/eslint-plugin-design-system/usage#consistent-css-prop-usage
772
1102
 
773
1103
  ## 5.5.0
774
1104
 
775
1105
  ### Minor Changes
776
1106
 
777
- - [#34739](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34739) [`35a57c481af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/35a57c481af) - Improved import matching for no-deprecated-apis rule to match substrings of import paths.
1107
+ - [#34739](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34739)
1108
+ [`35a57c481af`](https://bitbucket.org/atlassian/atlassian-frontend/commits/35a57c481af) -
1109
+ Improved import matching for no-deprecated-apis rule to match substrings of import paths.
778
1110
 
779
1111
  ## 5.4.2
780
1112
 
781
1113
  ### Patch Changes
782
1114
 
783
- - [#34873](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34873) [`121f9ae5c38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/121f9ae5c38) - Internal dependency bump.
1115
+ - [#34873](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34873)
1116
+ [`121f9ae5c38`](https://bitbucket.org/atlassian/atlassian-frontend/commits/121f9ae5c38) -
1117
+ Internal dependency bump.
784
1118
 
785
1119
  ## 5.4.1
786
1120
 
787
1121
  ### Patch Changes
788
1122
 
789
- - [#34778](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34778) [`432d4ce47ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/432d4ce47ee) - Account for additional border properties in spacing rule.
1123
+ - [#34778](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34778)
1124
+ [`432d4ce47ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/432d4ce47ee) -
1125
+ Account for additional border properties in spacing rule.
790
1126
 
791
1127
  ## 5.4.0
792
1128
 
793
1129
  ### Minor Changes
794
1130
 
795
- - [#33802](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33802) [`eb75c962cfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eb75c962cfb) - `gridSize` imports from `@atlaskit/theme` are now deprecated in favor of applying space tokens via `@atlaskit/tokens`.
1131
+ - [#33802](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33802)
1132
+ [`eb75c962cfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eb75c962cfb) -
1133
+ `gridSize` imports from `@atlaskit/theme` are now deprecated in favor of applying space tokens
1134
+ via `@atlaskit/tokens`.
796
1135
 
797
1136
  ### Patch Changes
798
1137
 
799
- - [#34217](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34217) [`019af32072d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/019af32072d) - Add shape token handling to the `ensure-design-token-usage-spacing` rule.
800
- - [`7b017c0be76`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b017c0be76) - Internal tweaks to spacing rule fixers.
801
- - Updated dependencies
1138
+ - [#34217](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34217)
1139
+ [`019af32072d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/019af32072d) - Add
1140
+ shape token handling to the `ensure-design-token-usage-spacing` rule.
1141
+ - [`7b017c0be76`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7b017c0be76) -
1142
+ Internal tweaks to spacing rule fixers.
1143
+ - Updated dependencies
802
1144
 
803
1145
  ## 5.3.2
804
1146
 
805
1147
  ### Patch Changes
806
1148
 
807
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
1149
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
1150
+ [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
1151
+ legacy types are published for TS 4.5-4.8
808
1152
 
809
1153
  ## 5.3.1
810
1154
 
811
1155
  ### Patch Changes
812
1156
 
813
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
1157
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
1158
+ [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
1159
+ Upgrade Typescript from `4.5.5` to `4.9.5`
814
1160
 
815
1161
  ## 5.3.0
816
1162
 
817
1163
  ### Minor Changes
818
1164
 
819
- - [#33417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33417) [`51a48a1bb1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51a48a1bb1b) - Update docs to accept a `severity` property so the purpose of `recommended` is no longer double. "all" preset now respects this preference - before it was always "error". This makes the presets more aligned with the underlying implementations."
1165
+ - [#33417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33417)
1166
+ [`51a48a1bb1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51a48a1bb1b) - Update
1167
+ docs to accept a `severity` property so the purpose of `recommended` is no longer double. "all"
1168
+ preset now respects this preference - before it was always "error". This makes the presets more
1169
+ aligned with the underlying implementations."
820
1170
 
821
1171
  ## 5.2.0
822
1172
 
823
1173
  ### Minor Changes
824
1174
 
825
- - [#31565](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31565) [`11e5168f1c2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11e5168f1c2) - Internal refactor of ensure-design-token-usage which also addresses some false positives
1175
+ - [#31565](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31565)
1176
+ [`11e5168f1c2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11e5168f1c2) -
1177
+ Internal refactor of ensure-design-token-usage which also addresses some false positives
826
1178
 
827
1179
  ## 5.1.0
828
1180
 
829
1181
  ### Minor Changes
830
1182
 
831
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
1183
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
1184
+ [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
1185
+ minor dependency bump
832
1186
 
833
1187
  ### Patch Changes
834
1188
 
835
- - Updated dependencies
1189
+ - Updated dependencies
836
1190
 
837
1191
  ## 5.0.3
838
1192
 
839
1193
  ### Patch Changes
840
1194
 
841
- - [#32916](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32916) [`7c55a69a5ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c55a69a5ec) - Fix issue where 'auto' may still be reported as an error in object styles.
1195
+ - [#32916](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32916)
1196
+ [`7c55a69a5ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c55a69a5ec) - Fix
1197
+ issue where 'auto' may still be reported as an error in object styles.
842
1198
 
843
1199
  ## 5.0.2
844
1200
 
845
1201
  ### Patch Changes
846
1202
 
847
- - [#32895](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32895) [`a5f1c4fa284`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5f1c4fa284) - Update links in the `use-primitives` rule to point to the right docs URL.
1203
+ - [#32895](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32895)
1204
+ [`a5f1c4fa284`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a5f1c4fa284) - Update
1205
+ links in the `use-primitives` rule to point to the right docs URL.
848
1206
 
849
1207
  ## 5.0.1
850
1208
 
851
1209
  ### Patch Changes
852
1210
 
853
- - [#32846](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32846) [`31ebca384fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31ebca384fa) - Improved behaviour of `ensure-design-token-usage-spacing` rule to not report on or replace 0, auto, and calc within spacing properties.
1211
+ - [#32846](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32846)
1212
+ [`31ebca384fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31ebca384fa) -
1213
+ Improved behaviour of `ensure-design-token-usage-spacing` rule to not report on or replace 0,
1214
+ auto, and calc within spacing properties.
854
1215
 
855
1216
  ## 5.0.0
856
1217
 
857
1218
  ### Major Changes
858
1219
 
859
- - [#32576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32576) [`b910bbe6130`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b910bbe6130) - The following rules are now included in the recommended preset as errors:
1220
+ - [#32576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32576)
1221
+ [`b910bbe6130`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b910bbe6130) - The
1222
+ following rules are now included in the recommended preset as errors:
860
1223
 
861
- - ensure-design-token-usage
862
- - no-deprecated-apis
863
- - no-deprecated-imports
864
- - no-unsafe-design-token-usage
1224
+ - ensure-design-token-usage
1225
+ - no-deprecated-apis
1226
+ - no-deprecated-imports
1227
+ - no-unsafe-design-token-usage
865
1228
 
866
- The following rules are now included in the recommended preset as warnings:
1229
+ The following rules are now included in the recommended preset as warnings:
867
1230
 
868
- - no-deprecated-design-token-usage
1231
+ - no-deprecated-design-token-usage
869
1232
 
870
1233
  ### Minor Changes
871
1234
 
872
- - [`b689e24847d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b689e24847d) - All lint rule violations in IDEs now point to their corresponding documentation on https://atlassian.design.
1235
+ - [`b689e24847d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b689e24847d) - All
1236
+ lint rule violations in IDEs now point to their corresponding documentation on
1237
+ https://atlassian.design.
873
1238
 
874
1239
  ## 4.20.0
875
1240
 
876
1241
  ### Minor Changes
877
1242
 
878
- - [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211) [`fa50be73bfe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa50be73bfe) - [ux] Spacing rule now also looks at and attempts to parse additional properties.
1243
+ - [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211)
1244
+ [`fa50be73bfe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa50be73bfe) - [ux]
1245
+ Spacing rule now also looks at and attempts to parse additional properties.
879
1246
 
880
1247
  ## 4.19.1
881
1248
 
882
1249
  ### Patch Changes
883
1250
 
884
- - [#32367](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32367) [`0047d204889`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0047d204889) - Docs are now generated from source.
1251
+ - [#32367](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32367)
1252
+ [`0047d204889`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0047d204889) - Docs
1253
+ are now generated from source.
885
1254
 
886
1255
  ## 4.19.0
887
1256
 
888
1257
  ### Minor Changes
889
1258
 
890
- - [#32306](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32306) [`ecbb3354125`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ecbb3354125) - This package now uses codegen to generate the rules index and presets. There is no change to the public api with this release.
891
- - [`e00ab4b87d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e00ab4b87d9) - The README and website documentation now contain a generated table with all available rules in the plugin.
1259
+ - [#32306](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32306)
1260
+ [`ecbb3354125`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ecbb3354125) - This
1261
+ package now uses codegen to generate the rules index and presets. There is no change to the
1262
+ public api with this release.
1263
+ - [`e00ab4b87d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e00ab4b87d9) - The
1264
+ README and website documentation now contain a generated table with all available rules in the
1265
+ plugin.
892
1266
 
893
1267
  ## 4.18.0
894
1268
 
895
1269
  ### Minor Changes
896
1270
 
897
- - [#31044](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31044) [`c858ddc70ff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c858ddc70ff) - Add deprecated-imports entries to config that the rule no-deprecated-imports can read from.
1271
+ - [#31044](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31044)
1272
+ [`c858ddc70ff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c858ddc70ff) - Add
1273
+ deprecated-imports entries to config that the rule no-deprecated-imports can read from.
898
1274
 
899
1275
  ## 4.17.1
900
1276
 
901
1277
  ### Patch Changes
902
1278
 
903
- - [#31568](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31568) [`fd4bdeabac4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd4bdeabac4) - ensure-design-token-usage: Fixes various false positives including linting of variable declarations, type definitions, switch cases and if statements
1279
+ - [#31568](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31568)
1280
+ [`fd4bdeabac4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd4bdeabac4) -
1281
+ ensure-design-token-usage: Fixes various false positives including linting of variable
1282
+ declarations, type definitions, switch cases and if statements
904
1283
 
905
1284
  ## 4.17.0
906
1285
 
907
1286
  ### Minor Changes
908
1287
 
909
- - [#31131](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31131) [`c80505045f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c80505045f0) - Added new rule to encourage use of @atlaskit/primitives components where relavant. Currently disabled by default, so there should be no expected change to consumers.
1288
+ - [#31131](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31131)
1289
+ [`c80505045f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c80505045f0) - Added
1290
+ new rule to encourage use of @atlaskit/primitives components where relavant. Currently disabled
1291
+ by default, so there should be no expected change to consumers.
910
1292
 
911
1293
  ## 4.16.5
912
1294
 
913
1295
  ### Patch Changes
914
1296
 
915
- - [#30785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30785) [`c82e6ef389c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c82e6ef389c) - Fix bug when replacing shorthand css property values with tokens, values without corresponding token won't be replaced. Also, allow styled2 alias to be matched in object styles for the spacing rule, given Jira frontend uses that alias extensively
1297
+ - [#30785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30785)
1298
+ [`c82e6ef389c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c82e6ef389c) - Fix
1299
+ bug when replacing shorthand css property values with tokens, values without corresponding token
1300
+ won't be replaced. Also, allow styled2 alias to be matched in object styles for the spacing
1301
+ rule, given Jira frontend uses that alias extensively
916
1302
 
917
1303
  ## 4.16.4
918
1304
 
919
1305
  ### Patch Changes
920
1306
 
921
- - [#30707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30707) [`358730833d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/358730833d8) - Add overrides in @atlaskit/drawer to deprecated config
1307
+ - [#30707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30707)
1308
+ [`358730833d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/358730833d8) - Add
1309
+ overrides in @atlaskit/drawer to deprecated config
922
1310
 
923
1311
  ## 4.16.3
924
1312
 
925
1313
  ### Patch Changes
926
1314
 
927
- - [#30678](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30678) [`ed34264c827`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed34264c827) - Fix errors on tagged template literals for eslint rule ensure-design-token-usage-spacing and handle edgecases ensuring seamless fallback on errors
1315
+ - [#30678](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30678)
1316
+ [`ed34264c827`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed34264c827) - Fix
1317
+ errors on tagged template literals for eslint rule ensure-design-token-usage-spacing and handle
1318
+ edgecases ensuring seamless fallback on errors
928
1319
 
929
1320
  ## 4.16.2
930
1321
 
931
1322
  ### Patch Changes
932
1323
 
933
- - [#30658](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30658) [`3db6efeac0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3db6efeac0d) - Improves internal configuration of spacing tokens rule.
1324
+ - [#30658](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30658)
1325
+ [`3db6efeac0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3db6efeac0d) -
1326
+ Improves internal configuration of spacing tokens rule.
934
1327
 
935
1328
  ## 4.16.1
936
1329
 
937
1330
  ### Patch Changes
938
1331
 
939
- - [#30604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30604) [`29648ace573`](https://bitbucket.org/atlassian/atlassian-frontend/commits/29648ace573) - Additional selector for ObjectExpression improves coverage of eslint rule.
1332
+ - [#30604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30604)
1333
+ [`29648ace573`](https://bitbucket.org/atlassian/atlassian-frontend/commits/29648ace573) -
1334
+ Additional selector for ObjectExpression improves coverage of eslint rule.
940
1335
 
941
1336
  ## 4.16.0
942
1337
 
943
1338
  ### Minor Changes
944
1339
 
945
- - [#29960](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29960) [`efadee8e999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efadee8e999) - Update no-deprecated-apis ESlint rule to accept configurations
1340
+ - [#29960](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29960)
1341
+ [`efadee8e999`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efadee8e999) - Update
1342
+ no-deprecated-apis ESlint rule to accept configurations
946
1343
 
947
1344
  ## 4.15.6
948
1345
 
949
1346
  ### Patch Changes
950
1347
 
951
- - [#30134](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30134) [`6a43a780a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a43a780a85) - Enhance token replacement capabilities of ensure-design-tokens-usage-spacing rule in tagged template literal strings
1348
+ - [#30134](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30134)
1349
+ [`6a43a780a85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a43a780a85) -
1350
+ Enhance token replacement capabilities of ensure-design-tokens-usage-spacing rule in tagged
1351
+ template literal strings
952
1352
 
953
1353
  ## 4.15.5
954
1354
 
955
1355
  ### Patch Changes
956
1356
 
957
- - [#30141](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30141) [`dda18b361da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dda18b361da) - Bump version of `eslint-codemod-utils`.
1357
+ - [#30141](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30141)
1358
+ [`dda18b361da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dda18b361da) - Bump
1359
+ version of `eslint-codemod-utils`.
958
1360
 
959
1361
  ## 4.15.4
960
1362
 
961
1363
  ### Patch Changes
962
1364
 
963
- - [#27964](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27964) [`ada57c0423d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ada57c0423d) - Add lint rule to prevent use of `margin` CSS property.
1365
+ - [#27964](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27964)
1366
+ [`ada57c0423d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ada57c0423d) - Add
1367
+ lint rule to prevent use of `margin` CSS property.
964
1368
 
965
1369
  ## 4.15.3
966
1370
 
967
1371
  ### Patch Changes
968
1372
 
969
- - [#29613](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29613) [`965e9c7f5d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/965e9c7f5d7) - Fix spacing token autofix in tagged template literal styles, enabling replacement of expression to equivalent spacing tokens
1373
+ - [#29613](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29613)
1374
+ [`965e9c7f5d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/965e9c7f5d7) - Fix
1375
+ spacing token autofix in tagged template literal styles, enabling replacement of expression to
1376
+ equivalent spacing tokens
970
1377
 
971
1378
  ## 4.15.2
972
1379
 
973
1380
  ### Patch Changes
974
1381
 
975
- - [#27634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27634) [`cf16d8f8bcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf16d8f8bcc) - Removes usage of tokens which have been removed from the codebase
976
- - Updated dependencies
1382
+ - [#27634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27634)
1383
+ [`cf16d8f8bcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf16d8f8bcc) -
1384
+ Removes usage of tokens which have been removed from the codebase
1385
+ - Updated dependencies
977
1386
 
978
1387
  ## 4.15.1
979
1388
 
980
1389
  ### Patch Changes
981
1390
 
982
- - [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390) [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
1391
+ - [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390)
1392
+ [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) -
1393
+ Internal change to update token references. There is no expected behaviour or visual change.
983
1394
 
984
1395
  ## 4.15.0
985
1396
 
986
1397
  ### Minor Changes
987
1398
 
988
- - [#29346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29346) [`17b3c102180`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17b3c102180) - ensure-design-token-usage-spacing only lints on spacing properties by default, with typography properties enabled via config
1399
+ - [#29346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29346)
1400
+ [`17b3c102180`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17b3c102180) -
1401
+ ensure-design-token-usage-spacing only lints on spacing properties by default, with typography
1402
+ properties enabled via config
989
1403
 
990
1404
  ## 4.14.1
991
1405
 
992
1406
  ### Patch Changes
993
1407
 
994
- - [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064) [`03697c65399`](https://bitbucket.org/atlassian/atlassian-frontend/commits/03697c65399) - Improved handling of font-family properties.
1408
+ - [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064)
1409
+ [`03697c65399`](https://bitbucket.org/atlassian/atlassian-frontend/commits/03697c65399) -
1410
+ Improved handling of font-family properties.
995
1411
 
996
1412
  ## 4.14.0
997
1413
 
998
1414
  ### Minor Changes
999
1415
 
1000
- - [#27730](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27730) [`be1ec01a101`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be1ec01a101) - Added another valid callee `getTokenValue()` which is used for getting the current computed CSS value for the resulting CSS Custom Property, hard-coded colors that wrapped in `getTokenValue()` call won't fail.
1416
+ - [#27730](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27730)
1417
+ [`be1ec01a101`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be1ec01a101) - Added
1418
+ another valid callee `getTokenValue()` which is used for getting the current computed CSS value
1419
+ for the resulting CSS Custom Property, hard-coded colors that wrapped in `getTokenValue()` call
1420
+ won't fail.
1001
1421
 
1002
1422
  ## 4.13.10
1003
1423
 
1004
1424
  ### Patch Changes
1005
1425
 
1006
- - [#28011](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28011) [`00c057bdd71`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00c057bdd71) - Removes spacing-raw & typography-raw entrypoints in favor of tokens-raw
1007
- - Updated dependencies
1426
+ - [#28011](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28011)
1427
+ [`00c057bdd71`](https://bitbucket.org/atlassian/atlassian-frontend/commits/00c057bdd71) -
1428
+ Removes spacing-raw & typography-raw entrypoints in favor of tokens-raw
1429
+ - Updated dependencies
1008
1430
 
1009
1431
  ## 4.13.9
1010
1432
 
1011
1433
  ### Patch Changes
1012
1434
 
1013
- - Updated dependencies
1435
+ - Updated dependencies
1014
1436
 
1015
1437
  ## 4.13.8
1016
1438
 
1017
1439
  ### Patch Changes
1018
1440
 
1019
- - [#27783](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27783) [`f4c5d7db7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4c5d7db7aa) - Updates fix for `ensure-design-token-usage-spacing` to ensure fixes are not applied erroneously.
1441
+ - [#27783](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27783)
1442
+ [`f4c5d7db7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4c5d7db7aa) -
1443
+ Updates fix for `ensure-design-token-usage-spacing` to ensure fixes are not applied erroneously.
1020
1444
 
1021
1445
  ## 4.13.7
1022
1446
 
1023
1447
  ### Patch Changes
1024
1448
 
1025
- - [#27592](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27592) [`41ac6cadd32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41ac6cadd32) - Adds support to the ensure-design-token-usage-spacing rule for replacing typography values with tokens
1449
+ - [#27592](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27592)
1450
+ [`41ac6cadd32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41ac6cadd32) - Adds
1451
+ support to the ensure-design-token-usage-spacing rule for replacing typography values with
1452
+ tokens
1026
1453
 
1027
1454
  ## 4.13.6
1028
1455
 
1029
1456
  ### Patch Changes
1030
1457
 
1031
- - [#27482](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27482) [`0518a6ab41d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0518a6ab41d) - Changes behavior of `ensure-design-token-usage-spacing` to fallback to px instead of rems when a fix is applied.
1458
+ - [#27482](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27482)
1459
+ [`0518a6ab41d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0518a6ab41d) -
1460
+ Changes behavior of `ensure-design-token-usage-spacing` to fallback to px instead of rems when a
1461
+ fix is applied.
1032
1462
 
1033
1463
  ## 4.13.5
1034
1464
 
1035
1465
  ### Patch Changes
1036
1466
 
1037
- - [#27431](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27431) [`fd903efd5f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd903efd5f8) - Dependency bump of `eslint-codemod-utils`.
1467
+ - [#27431](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27431)
1468
+ [`fd903efd5f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd903efd5f8) -
1469
+ Dependency bump of `eslint-codemod-utils`.
1038
1470
 
1039
1471
  ## 4.13.4
1040
1472
 
1041
1473
  ### Patch Changes
1042
1474
 
1043
- - Updated dependencies
1475
+ - Updated dependencies
1044
1476
 
1045
1477
  ## 4.13.3
1046
1478
 
1047
1479
  ### Patch Changes
1048
1480
 
1049
- - [#26561](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26561) [`4793b01cfcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4793b01cfcc) - Add an optional `customTokens` configuration option for no-unsafe-design-token-usage
1481
+ - [#26561](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26561)
1482
+ [`4793b01cfcc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4793b01cfcc) - Add an
1483
+ optional `customTokens` configuration option for no-unsafe-design-token-usage
1050
1484
 
1051
1485
  ## 4.13.2
1052
1486
 
1053
1487
  ### Patch Changes
1054
1488
 
1055
- - [#26623](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26623) [`1a7a2c87797`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a7a2c87797) - @atlaskit/eslint-plugin-design-system now maps values to rem based tokens
1489
+ - [#26623](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26623)
1490
+ [`1a7a2c87797`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a7a2c87797) -
1491
+ @atlaskit/eslint-plugin-design-system now maps values to rem based tokens
1056
1492
 
1057
1493
  ## 4.13.1
1058
1494
 
1059
1495
  ### Patch Changes
1060
1496
 
1061
- - [#26604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26604) [`cc76eda3bc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc76eda3bc0) - Add support for template literals in ensure-design-token-usage-spacing
1497
+ - [#26604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26604)
1498
+ [`cc76eda3bc0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc76eda3bc0) - Add
1499
+ support for template literals in ensure-design-token-usage-spacing
1062
1500
 
1063
1501
  ## 4.13.0
1064
1502
 
1065
1503
  ### Minor Changes
1066
1504
 
1067
- - [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`9693f6e7816`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9693f6e7816) - [ux] Adds a new case to the no-unsafe-design-token-usage rule to lint against uses of 'experimental' tokens and automatically replace them with their replacement (either a token or a fallback) via a fixer.
1505
+ - [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860)
1506
+ [`9693f6e7816`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9693f6e7816) - [ux]
1507
+ Adds a new case to the no-unsafe-design-token-usage rule to lint against uses of 'experimental'
1508
+ tokens and automatically replace them with their replacement (either a token or a fallback) via
1509
+ a fixer.
1068
1510
 
1069
1511
  ## 4.12.4
1070
1512
 
1071
1513
  ### Patch Changes
1072
1514
 
1073
- - [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488) [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
1515
+ - [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488)
1516
+ [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) -
1517
+ Internal changes to apply spacing tokens. This should be a no-op change.
1074
1518
 
1075
1519
  ## 4.12.3
1076
1520
 
1077
1521
  ### Patch Changes
1078
1522
 
1079
- - [#26408](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26408) [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
1523
+ - [#26408](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26408)
1524
+ [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) -
1525
+ Internal changes to include spacing tokens in component implementations.
1080
1526
 
1081
1527
  ## 4.12.2
1082
1528
 
1083
1529
  ### Patch Changes
1084
1530
 
1085
- - [#26186](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26186) [`c6b748ff03a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6b748ff03a) - Small tweak to the ensure-design-token-usage-spacing rule to ensure we aren't over-eager in auto-fixing code with highly experimental tokens.
1531
+ - [#26186](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26186)
1532
+ [`c6b748ff03a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6b748ff03a) - Small
1533
+ tweak to the ensure-design-token-usage-spacing rule to ensure we aren't over-eager in
1534
+ auto-fixing code with highly experimental tokens.
1086
1535
 
1087
1536
  ## 4.12.1
1088
1537
 
1089
1538
  ### Patch Changes
1090
1539
 
1091
- - [#26165](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26165) [`e86c57a4a60`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e86c57a4a60) - Improves the `no-raw-spacing-values` rule to include an autofixer. Spacing values that can be resolved to a token will be.
1540
+ - [#26165](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26165)
1541
+ [`e86c57a4a60`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e86c57a4a60) -
1542
+ Improves the `no-raw-spacing-values` rule to include an autofixer. Spacing values that can be
1543
+ resolved to a token will be.
1092
1544
 
1093
1545
  ## 4.12.0
1094
1546
 
1095
1547
  ### Minor Changes
1096
1548
 
1097
- - [#26111](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26111) [`109c705cd9c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/109c705cd9c) - [ux] Adds a new case to the no-unsafe-design-token-usage rule to lint against uses of 'experimental' tokens and automatically replace them with their replacement (either a token or a fallback) via a fixer.
1549
+ - [#26111](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26111)
1550
+ [`109c705cd9c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/109c705cd9c) - [ux]
1551
+ Adds a new case to the no-unsafe-design-token-usage rule to lint against uses of 'experimental'
1552
+ tokens and automatically replace them with their replacement (either a token or a fallback) via
1553
+ a fixer.
1098
1554
 
1099
1555
  ## 4.11.2
1100
1556
 
1101
1557
  ### Patch Changes
1102
1558
 
1103
- - [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`3ee63238f49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ee63238f49) - Update internals of Box, Text, Inline and Stack to handle `children` more accurately.
1104
- Also update scope of `use-primitives` to suggest Box and Text more selectively.
1559
+ - [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710)
1560
+ [`3ee63238f49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ee63238f49) - Update
1561
+ internals of Box, Text, Inline and Stack to handle `children` more accurately. Also update scope
1562
+ of `use-primitives` to suggest Box and Text more selectively.
1105
1563
 
1106
1564
  ## 4.11.1
1107
1565
 
1108
1566
  ### Patch Changes
1109
1567
 
1110
- - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
1568
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
1569
+ [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
1570
+ Upgrade Typescript from `4.3.5` to `4.5.5`
1111
1571
 
1112
1572
  ## 4.11.0
1113
1573
 
1114
1574
  ### Minor Changes
1115
1575
 
1116
- - [#24934](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24934) [`268f92124e2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/268f92124e2) - Bolster isException logic to support descendants of excepted functions and to be case-agnostic
1576
+ - [#24934](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24934)
1577
+ [`268f92124e2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/268f92124e2) -
1578
+ Bolster isException logic to support descendants of excepted functions and to be case-agnostic
1117
1579
 
1118
1580
  ## 4.10.1
1119
1581
 
1120
1582
  ### Patch Changes
1121
1583
 
1122
- - [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`d76851b2f42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d76851b2f42) - Improved NaN handling and output
1123
- - [`0544fe823d1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0544fe823d1) - Updates to account for nested unary selectors.
1124
- - [`1ed3db0c9be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed3db0c9be) - Improvements to lint rule and accounting for edge cases
1584
+ - [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004)
1585
+ [`d76851b2f42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d76851b2f42) -
1586
+ Improved NaN handling and output
1587
+ - [`0544fe823d1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0544fe823d1) -
1588
+ Updates to account for nested unary selectors.
1589
+ - [`1ed3db0c9be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed3db0c9be) -
1590
+ Improvements to lint rule and accounting for edge cases
1125
1591
 
1126
1592
  ## 4.10.0
1127
1593
 
1128
1594
  ### Minor Changes
1129
1595
 
1130
- - [#24591](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24591) [`bb808f9a186`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bb808f9a186) - Add exceptions option to ensure-design-token-usage rule
1596
+ - [#24591](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24591)
1597
+ [`bb808f9a186`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bb808f9a186) - Add
1598
+ exceptions option to ensure-design-token-usage rule
1131
1599
 
1132
1600
  ## 4.9.0
1133
1601
 
1134
1602
  ### Minor Changes
1135
1603
 
1136
- - [#24547](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24547) [`9701bf4a8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9701bf4a8b3) - Fix false positives for variable names and object property keys
1604
+ - [#24547](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24547)
1605
+ [`9701bf4a8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9701bf4a8b3) - Fix
1606
+ false positives for variable names and object property keys
1137
1607
 
1138
1608
  ## 4.8.2
1139
1609
 
1140
1610
  ### Patch Changes
1141
1611
 
1142
- - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
1612
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
1613
+ [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
1614
+ Upgrade Typescript from `4.2.4` to `4.3.5`.
1143
1615
 
1144
1616
  ## 4.8.1
1145
1617
 
1146
1618
  ### Patch Changes
1147
1619
 
1148
- - [#24445](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24445) [`805d0fde0fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/805d0fde0fa) - Bump eslint-codemod-utils to 1.4.0, no real changes as no new imports are exercised
1620
+ - [#24445](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24445)
1621
+ [`805d0fde0fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/805d0fde0fa) - Bump
1622
+ eslint-codemod-utils to 1.4.0, no real changes as no new imports are exercised
1149
1623
 
1150
1624
  ## 4.8.0
1151
1625
 
1152
1626
  ### Minor Changes
1153
1627
 
1154
- - [#23610](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23610) [`725f5fde8d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/725f5fde8d9) - Adds a rule to restrict usage of deprecated attribute `type` for inline-message
1628
+ - [#23610](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23610)
1629
+ [`725f5fde8d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/725f5fde8d9) - Adds a
1630
+ rule to restrict usage of deprecated attribute `type` for inline-message
1155
1631
 
1156
1632
  ## 4.7.2
1157
1633
 
1158
1634
  ### Patch Changes
1159
1635
 
1160
- - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`9f64ab9d5ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f64ab9d5ea) - Improvements / added robustness to edge cases previously unhandled.
1161
- - [`8e848e3a4a6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e848e3a4a6) - Internal updates to a number of rules. Introduced a custom formatter for the rule 'no-raw-spacing-values'.
1162
- - [`31494c13aaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31494c13aaa) - Type fixes to the internals of a number of rules.
1636
+ - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381)
1637
+ [`9f64ab9d5ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f64ab9d5ea) -
1638
+ Improvements / added robustness to edge cases previously unhandled.
1639
+ - [`8e848e3a4a6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e848e3a4a6) -
1640
+ Internal updates to a number of rules. Introduced a custom formatter for the rule
1641
+ 'no-raw-spacing-values'.
1642
+ - [`31494c13aaa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/31494c13aaa) - Type
1643
+ fixes to the internals of a number of rules.
1163
1644
 
1164
1645
  ## 4.7.1
1165
1646
 
1166
1647
  ### Patch Changes
1167
1648
 
1168
- - [#23674](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23674) [`37ac5652977`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37ac5652977) - Mark `isOpen` and `innerRef` props on @atlaskit/banner as deprecated.
1649
+ - [#23674](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23674)
1650
+ [`37ac5652977`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37ac5652977) - Mark
1651
+ `isOpen` and `innerRef` props on @atlaskit/banner as deprecated.
1169
1652
 
1170
1653
  ## 4.7.0
1171
1654
 
1172
1655
  ### Minor Changes
1173
1656
 
1174
- - [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642) [`740057653f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/740057653f9) - Adds additional rule to restrict usage of banned imports from the design system.
1657
+ - [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
1658
+ [`740057653f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/740057653f9) - Adds
1659
+ additional rule to restrict usage of banned imports from the design system.
1175
1660
 
1176
1661
  ## 4.6.0
1177
1662
 
1178
1663
  ### Minor Changes
1179
1664
 
1180
- - [#21819](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21819) [`f561f58bc7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f561f58bc7a) - Introduces a new rule `icon-label` to validate accessible usage of the icon components label prop when used with other design system components.
1665
+ - [#21819](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21819)
1666
+ [`f561f58bc7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f561f58bc7a) -
1667
+ Introduces a new rule `icon-label` to validate accessible usage of the icon components label
1668
+ prop when used with other design system components.
1181
1669
 
1182
1670
  ## 4.5.0
1183
1671
 
1184
1672
  ### Minor Changes
1185
1673
 
1186
- - [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`b7235858f48`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7235858f48) - Add new paths to the no-deprecated-imports rule for deprecated @atlaskit/logo exports.
1674
+ - [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570)
1675
+ [`b7235858f48`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7235858f48) - Add
1676
+ new paths to the no-deprecated-imports rule for deprecated @atlaskit/logo exports.
1187
1677
 
1188
1678
  ## 4.4.6
1189
1679
 
1190
1680
  ### Patch Changes
1191
1681
 
1192
- - Updated dependencies
1682
+ - Updated dependencies
1193
1683
 
1194
1684
  ## 4.4.5
1195
1685
 
1196
1686
  ### Patch Changes
1197
1687
 
1198
- - [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721) [`344784eec9e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/344784eec9e) - Fix linting error message for focusRing import
1688
+ - [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721)
1689
+ [`344784eec9e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/344784eec9e) - Fix
1690
+ linting error message for focusRing import
1199
1691
 
1200
1692
  ## 4.4.4
1201
1693
 
1202
1694
  ### Patch Changes
1203
1695
 
1204
- - [#20860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20860) [`55a212b8b01`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55a212b8b01) - Adds an additional rule for DS users to opt into to using 'noop' as a common reference rather than rewriting anonymous functions.
1696
+ - [#20860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20860)
1697
+ [`55a212b8b01`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55a212b8b01) - Adds
1698
+ an additional rule for DS users to opt into to using 'noop' as a common reference rather than
1699
+ rewriting anonymous functions.
1205
1700
 
1206
1701
  ## 4.4.3
1207
1702
 
1208
1703
  ### Patch Changes
1209
1704
 
1210
- - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
1705
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
1706
+ [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
1707
+ Upgrade to TypeScript 4.2.4
1211
1708
 
1212
1709
  ## 4.4.2
1213
1710
 
1214
1711
  ### Patch Changes
1215
1712
 
1216
- - [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`b3e5a62a9e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3e5a62a9e3) - Adds `static` techstack to package, enforcing stricter style linting. In this case the package already satisfied this requirement so there have been no changes to styles.
1217
- - Updated dependencies
1713
+ - [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033)
1714
+ [`b3e5a62a9e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b3e5a62a9e3) - Adds
1715
+ `static` techstack to package, enforcing stricter style linting. In this case the package
1716
+ already satisfied this requirement so there have been no changes to styles.
1717
+ - Updated dependencies
1218
1718
 
1219
1719
  ## 4.4.1
1220
1720
 
1221
1721
  ### Patch Changes
1222
1722
 
1223
- - [#20390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20390) [`236e6040fb9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/236e6040fb9) - Fixes a bug in the rule `ensure-design-token-usage` where some color value types were not being detected as hardcoded color usage. This affected Styled Components and Emotion CSS prop syntaxes.
1723
+ - [#20390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20390)
1724
+ [`236e6040fb9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/236e6040fb9) - Fixes
1725
+ a bug in the rule `ensure-design-token-usage` where some color value types were not being
1726
+ detected as hardcoded color usage. This affected Styled Components and Emotion CSS prop
1727
+ syntaxes.
1224
1728
 
1225
- These color types have been fixed:
1729
+ These color types have been fixed:
1226
1730
 
1227
- - rgb
1228
- - rgba
1229
- - hsl
1230
- - hsla
1231
- - lch
1232
- - lab
1233
- - color()
1731
+ - rgb
1732
+ - rgba
1733
+ - hsl
1734
+ - hsla
1735
+ - lch
1736
+ - lab
1737
+ - color()
1234
1738
 
1235
1739
  ## 4.4.0
1236
1740
 
1237
1741
  ### Minor Changes
1238
1742
 
1239
- - [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`1065b5b1bbb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1065b5b1bbb) - Fixed bug where deleted '[default]' tokens were not being detected by lint tooling
1743
+ - [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618)
1744
+ [`1065b5b1bbb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1065b5b1bbb) - Fixed
1745
+ bug where deleted '[default]' tokens were not being detected by lint tooling
1240
1746
 
1241
1747
  ### Patch Changes
1242
1748
 
1243
- - Updated dependencies
1749
+ - Updated dependencies
1244
1750
 
1245
1751
  ## 4.3.0
1246
1752
 
1247
1753
  ### Minor Changes
1248
1754
 
1249
- - [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`2dbc546f748`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2dbc546f748) - Fixes a bug where token paths including [default] were not being detected by the linter
1755
+ - [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019)
1756
+ [`2dbc546f748`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2dbc546f748) - Fixes
1757
+ a bug where token paths including [default] were not being detected by the linter
1250
1758
 
1251
1759
  ### Patch Changes
1252
1760
 
1253
- - Updated dependencies
1761
+ - Updated dependencies
1254
1762
 
1255
1763
  ## 4.2.1
1256
1764
 
1257
1765
  ### Patch Changes
1258
1766
 
1259
- - [#19453](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19453) [`63a22b17621`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63a22b17621) - Fixes a bug where use of qualified type annotations would throw an error.
1767
+ - [#19453](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19453)
1768
+ [`63a22b17621`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63a22b17621) - Fixes
1769
+ a bug where use of qualified type annotations would throw an error.
1260
1770
 
1261
1771
  ## 4.2.0
1262
1772
 
1263
1773
  ### Minor Changes
1264
1774
 
1265
- - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`afc248d2ded`](https://bitbucket.org/atlassian/atlassian-frontend/commits/afc248d2ded) - Adds a new rule, `use-visually-hidden` to complement the `@atlaskit/visually-hidden` component.
1266
- - [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`0c0a8b5dff4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c0a8b5dff4) - Adds an additional rule 'no-deprecated-api-usage'. This rule targets APIs/props in the Design System that we intend to remove completely. This rule should be used by all product repos as it will provide an early warning of expected deprecations.
1267
- - [`93d6f8856f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93d6f8856f2) - @atlaskit/icon-priority has been deprecated due to low usage. It will be deleted after 21 April 2022. If you rely on these icons, @atlaskit/icon-priority will still be available as a deprecated package on NPM, but we recommend self-hosting and managing.
1775
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
1776
+ [`afc248d2ded`](https://bitbucket.org/atlassian/atlassian-frontend/commits/afc248d2ded) - Adds a
1777
+ new rule, `use-visually-hidden` to complement the `@atlaskit/visually-hidden` component.
1778
+ - [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526)
1779
+ [`0c0a8b5dff4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c0a8b5dff4) - Adds
1780
+ an additional rule 'no-deprecated-api-usage'. This rule targets APIs/props in the Design System
1781
+ that we intend to remove completely. This rule should be used by all product repos as it will
1782
+ provide an early warning of expected deprecations.
1783
+ - [`93d6f8856f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93d6f8856f2) -
1784
+ @atlaskit/icon-priority has been deprecated due to low usage. It will be deleted after 21
1785
+ April 2022. If you rely on these icons, @atlaskit/icon-priority will still be available as a
1786
+ deprecated package on NPM, but we recommend self-hosting and managing.
1268
1787
 
1269
1788
  ## 4.1.1
1270
1789
 
1271
1790
  ### Patch Changes
1272
1791
 
1273
- - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
1274
- - Updated dependencies
1792
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The
1793
+ no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when
1794
+ auto-fixing by correctly formatting token ids.
1795
+ - Updated dependencies
1275
1796
 
1276
1797
  ## 4.1.0
1277
1798
 
1278
1799
  ### Minor Changes
1279
1800
 
1280
- - [#18168](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18168) [`52fbe80eeb5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52fbe80eeb5) - Moved logic for detecting deprecated tokens out of no-unsafe-design-token-usage and moves it into a new rule: no-deprecated-token-usage. This rule is solely reponsible for catching usage of deprecated tokens. In most cases this allows consumers to set this rule to "warn", allowing iterative migration to new token names rather than in a big bang.
1801
+ - [#18168](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18168)
1802
+ [`52fbe80eeb5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/52fbe80eeb5) - Moved
1803
+ logic for detecting deprecated tokens out of no-unsafe-design-token-usage and moves it into a
1804
+ new rule: no-deprecated-token-usage. This rule is solely reponsible for catching usage of
1805
+ deprecated tokens. In most cases this allows consumers to set this rule to "warn", allowing
1806
+ iterative migration to new token names rather than in a big bang.
1281
1807
 
1282
1808
  ### Patch Changes
1283
1809
 
1284
- - Updated dependencies
1810
+ - Updated dependencies
1285
1811
 
1286
1812
  ## 4.0.1
1287
1813
 
1288
1814
  ### Patch Changes
1289
1815
 
1290
- - [#17094](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17094) [`7da1a30902a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7da1a30902a) - Adds missing meta to `ensure-design-token-usage` rule.
1816
+ - [#17094](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17094)
1817
+ [`7da1a30902a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7da1a30902a) - Adds
1818
+ missing meta to `ensure-design-token-usage` rule.
1291
1819
 
1292
1820
  ## 4.0.0
1293
1821
 
1294
1822
  ### Major Changes
1295
1823
 
1296
- - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`a2f953f3814`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2f953f3814) - Previously the `ensure-design-token-usage` eslint rule contained all checks relating to token use. This has now been split up into two separate rules:
1297
-
1298
- `ensure-design-token-usage` now covers:
1299
-
1300
- - `legacyElevation` — warns about old usages of the elevation mixins or styles, which instead should use the `card` or `overlay` tokens.
1301
- - `hardCodedColor` — warns about use of hard-coded colors such as `color: colors.B100`, which instead should be wrapped in a `token()` call. This covers the majority of cases in existing codebases when first adopting tokens.
1302
-
1303
- `no-unsafe-design-token-usage` (new) covers the remaining rules:
1304
-
1305
- - `directTokenUsage` — warns against using the CSS Custom Property name that is output in the browser by the `token()` call.
1306
- Eg. directly using `var(--ds-accent-subtleBlue)` is bad.
1307
- - `staticToken` warns when tokens aren't used inline. Inlining the token usages helps with static analysis, which unlocks future improvements.
1308
- Eg. pulling the token out into a const like `css={ color: token(primaryButtonText) }` is bad.
1309
- - `invalidToken` — warns when using a token that doesn't exist (not one that's been renamed, see the next point).
1310
- - `tokenRenamed` — warns when using a token that's been renamed in a subsequent release.
1311
- - `tokenFallbackEnforced` — warns if a fallback for the token call is not provided.
1312
- Eg. call with the fallback like this `token('color.background.disabled', N10)` instead of `token('color.background.disabled')`.
1313
- - `tokenFallbackRestricted` — the opposite of `tokenFallbackEnforced`.
1314
- Eg. do not pass in a fallback like this `token('color.background.disabled', N10)` and instead only include the token `token('color.background.disabled')`.
1315
-
1316
- Upgrading — some instances of `\\eslint-disable` may need to be changed to the new rule. If you have failing lint rules after only bumping this package then switch those ignores to use `no-unsafe-design-token-usage` instead.
1317
-
1318
- ### Patch Changes
1319
-
1320
- - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
1321
- - [`26719f5b7b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26719f5b7b0) - Update @atlaskit tokens dependency from a devDependency to a regular dependency
1322
- - [`a66711cd58c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a66711cd58c) - Remove `@atlaskit/tokens` from peer dependency.
1323
- - Updated dependencies
1824
+ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
1825
+ [`a2f953f3814`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a2f953f3814) -
1826
+ Previously the `ensure-design-token-usage` eslint rule contained all checks relating to token
1827
+ use. This has now been split up into two separate rules:
1828
+
1829
+ `ensure-design-token-usage` now covers:
1830
+
1831
+ - `legacyElevation` warns about old usages of the elevation mixins or styles, which instead
1832
+ should use the `card` or `overlay` tokens.
1833
+ - `hardCodedColor` — warns about use of hard-coded colors such as `color: colors.B100`, which
1834
+ instead should be wrapped in a `token()` call. This covers the majority of cases in existing
1835
+ codebases when first adopting tokens.
1836
+
1837
+ `no-unsafe-design-token-usage` (new) covers the remaining rules:
1838
+
1839
+ - `directTokenUsage` — warns against using the CSS Custom Property name that is output in the
1840
+ browser by the `token()` call. Eg. directly using `var(--ds-accent-subtleBlue)` is bad.
1841
+ - `staticToken` — warns when tokens aren't used inline. Inlining the token usages helps with
1842
+ static analysis, which unlocks future improvements. Eg. pulling the token out into a const
1843
+ like `css={ color: token(primaryButtonText) }` is bad.
1844
+ - `invalidToken` warns when using a token that doesn't exist (not one that's been renamed,
1845
+ see the next point).
1846
+ - `tokenRenamed` warns when using a token that's been renamed in a subsequent release.
1847
+ - `tokenFallbackEnforced` — warns if a fallback for the token call is not provided. Eg. call
1848
+ with the fallback like this `token('color.background.disabled', N10)` instead of
1849
+ `token('color.background.disabled')`.
1850
+ - `tokenFallbackRestricted` the opposite of `tokenFallbackEnforced`. Eg. do not pass in a
1851
+ fallback like this `token('color.background.disabled', N10)` and instead only include the
1852
+ token `token('color.background.disabled')`.
1853
+
1854
+ Upgrading — some instances of `\\eslint-disable` may need to be changed to the new rule. If you
1855
+ have failing lint rules after only bumping this package then switch those ignores to use
1856
+ `no-unsafe-design-token-usage` instead.
1857
+
1858
+ ### Patch Changes
1859
+
1860
+ - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds
1861
+ for this package now pass through a tokens babel plugin, removing runtime invocations of the
1862
+ tokens() function and improving bundle size.
1863
+ - [`26719f5b7b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26719f5b7b0) - Update
1864
+ @atlaskit tokens dependency from a devDependency to a regular dependency
1865
+ - [`a66711cd58c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a66711cd58c) - Remove
1866
+ `@atlaskit/tokens` from peer dependency.
1867
+ - Updated dependencies
1324
1868
 
1325
1869
  ## 3.2.0
1326
1870
 
1327
1871
  ### Minor Changes
1328
1872
 
1329
- - [#16362](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16362) [`2af46de94ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2af46de94ba) - Adds additional rule to design system eslint plugin; no-deprecated-imports.
1873
+ - [#16362](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16362)
1874
+ [`2af46de94ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2af46de94ba) - Adds
1875
+ additional rule to design system eslint plugin; no-deprecated-imports.
1330
1876
 
1331
1877
  ## 3.1.0
1332
1878
 
1333
1879
  ### Minor Changes
1334
1880
 
1335
- - [#16088](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16088) [`784f2560e9b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/784f2560e9b) - Includes additional rule in the recommended ruleset to restrict imports on older deprecated components.
1881
+ - [#16088](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16088)
1882
+ [`784f2560e9b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/784f2560e9b) -
1883
+ Includes additional rule in the recommended ruleset to restrict imports on older deprecated
1884
+ components.
1336
1885
 
1337
1886
  ## 3.0.0
1338
1887
 
1339
1888
  ### Patch Changes
1340
1889
 
1341
- - Updated dependencies
1890
+ - Updated dependencies
1342
1891
 
1343
1892
  ## 2.0.1
1344
1893
 
1345
1894
  ### Patch Changes
1346
1895
 
1347
- - [#14319](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14319) [`b6a55ffa092`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6a55ffa092) - Introduces fixes for various edge-cases and false positives:
1896
+ - [#14319](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14319)
1897
+ [`b6a55ffa092`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6a55ffa092) -
1898
+ Introduces fixes for various edge-cases and false positives:
1348
1899
 
1349
- - Objects that are not considered "style blocks" are now ignored. Style blocks are considered as objects assigned to variables with names containing either "style", "css", or "theme" and type annotations including "CSSProperties" or "CSSObject".
1350
- - Hexadecimal colors using the `0x` notation are now ignored
1900
+ - Objects that are not considered "style blocks" are now ignored. Style blocks are considered
1901
+ as objects assigned to variables with names containing either "style", "css", or "theme" and
1902
+ type annotations including "CSSProperties" or "CSSObject".
1903
+ - Hexadecimal colors using the `0x` notation are now ignored
1351
1904
 
1352
- Increasing the linting surface-area:
1905
+ Increasing the linting surface-area:
1353
1906
 
1354
- - Colors used in shorthand css property values will now be linted against. (ie `border: solid 1px red`)
1355
- - Strings passed directly into JSX attributes (props) are now linted (ie `<Button color="red" />`)
1907
+ - Colors used in shorthand css property values will now be linted against. (ie
1908
+ `border: solid 1px red`)
1909
+ - Strings passed directly into JSX attributes (props) are now linted (ie
1910
+ `<Button color="red" />`)
1356
1911
 
1357
- General improvements:
1912
+ General improvements:
1358
1913
 
1359
- - Color names will now only match against "whole" words. Meaning strings that inadvertently include color names like the "tan" in "standard" will no longer fail.
1914
+ - Color names will now only match against "whole" words. Meaning strings that inadvertently
1915
+ include color names like the "tan" in "standard" will no longer fail.
1360
1916
 
1361
- - Template literal styles are now linted against property values only. Meaning css property names that include colors like `white-space: nowrap` used in template literals will no longer error
1917
+ - Template literal styles are now linted against property values only. Meaning css property
1918
+ names that include colors like `white-space: nowrap` used in template literals will no
1919
+ longer error
1362
1920
 
1363
- - Increased test coverage
1921
+ - Increased test coverage
1364
1922
 
1365
- - Updated dependencies
1923
+ - Updated dependencies
1366
1924
 
1367
1925
  ## 2.0.0
1368
1926
 
1369
1927
  ### Patch Changes
1370
1928
 
1371
- - Updated dependencies
1929
+ - Updated dependencies
1372
1930
 
1373
1931
  ## 1.1.0
1374
1932
 
1375
1933
  ### Minor Changes
1376
1934
 
1377
- - [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`ac7a0fd6558`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac7a0fd6558) - You can now configure whether fallbacks are enforced or restricted when using tokens. Fallbacks are now restricted by default.
1935
+ - [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864)
1936
+ [`ac7a0fd6558`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac7a0fd6558) - You
1937
+ can now configure whether fallbacks are enforced or restricted when using tokens. Fallbacks are
1938
+ now restricted by default.
1378
1939
 
1379
1940
  ### Patch Changes
1380
1941
 
1381
- - Updated dependencies
1942
+ - Updated dependencies
1382
1943
 
1383
1944
  ## 1.0.0
1384
1945
 
1385
1946
  ### Minor Changes
1386
1947
 
1387
- - [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`6cc9dc02de1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6cc9dc02de1) - Adds token renaming rule (with autofix) to ensure-design-token-usage
1948
+ - [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302)
1949
+ [`6cc9dc02de1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6cc9dc02de1) - Adds
1950
+ token renaming rule (with autofix) to ensure-design-token-usage
1388
1951
 
1389
1952
  ### Patch Changes
1390
1953
 
1391
- - Updated dependencies
1954
+ - Updated dependencies
1392
1955
 
1393
1956
  ## 0.0.6
1394
1957
 
1395
1958
  ### Patch Changes
1396
1959
 
1397
- - [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`297928490b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/297928490b8) - Fixes false negative reports for named legacy colors.
1398
- - [`c9d8cc07750`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9d8cc07750) - Converts internal code to TypeScript.
1399
- - [`8eea79b8ebc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8eea79b8ebc) - Update the function of checking if a node is a legacy elevation.
1400
- - [`7da605ccafe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7da605ccafe) - Adds suggestions for incorrect usages of color and tokens
1401
- - [`f875eb3f5cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f875eb3f5cf) - Will only error against hardcoded colors (Identifiers) that are assigned to an object property
1402
- - Updated dependencies
1960
+ - [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
1961
+ [`297928490b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/297928490b8) - Fixes
1962
+ false negative reports for named legacy colors.
1963
+ - [`c9d8cc07750`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9d8cc07750) -
1964
+ Converts internal code to TypeScript.
1965
+ - [`8eea79b8ebc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8eea79b8ebc) - Update
1966
+ the function of checking if a node is a legacy elevation.
1967
+ - [`7da605ccafe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7da605ccafe) - Adds
1968
+ suggestions for incorrect usages of color and tokens
1969
+ - [`f875eb3f5cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f875eb3f5cf) - Will
1970
+ only error against hardcoded colors (Identifiers) that are assigned to an object property
1971
+ - Updated dependencies
1403
1972
 
1404
1973
  ## 0.0.5
1405
1974
 
1406
1975
  ### Patch Changes
1407
1976
 
1408
- - [#12592](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12592) [`e11b3e4e1ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e11b3e4e1ee) - Restructures tokens into the following format {group}{property}{variant}{state}
1409
- - Updated dependencies
1977
+ - [#12592](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12592)
1978
+ [`e11b3e4e1ee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e11b3e4e1ee) -
1979
+ Restructures tokens into the following format {group}{property}{variant}{state}
1980
+ - Updated dependencies
1410
1981
 
1411
1982
  ## 0.0.4
1412
1983
 
1413
1984
  ### Patch Changes
1414
1985
 
1415
- - [#12528](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12528) [`1926dba3536`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1926dba3536) - Adds, removes & renames tokens
1986
+ - [#12528](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12528)
1987
+ [`1926dba3536`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1926dba3536) - Adds,
1988
+ removes & renames tokens
1416
1989
 
1417
- Adds:
1990
+ Adds:
1418
1991
 
1419
- - `color.backgroundSelect`
1992
+ - `color.backgroundSelect`
1420
1993
 
1421
- Renames:
1994
+ Renames:
1422
1995
 
1423
- - `color.borderTextHighlighted` to `color.bordertextSelected`
1424
- - `elevation.base` to `evelation.backgroundDefault`
1425
- - `elevation.flatSecondary` to `elevation.backgroundSunken`
1426
- - `elevation.backgroundCard` to `color.backgroundCard`
1427
- - `elevation.backgroundOverlay` to `color.backgroundOverlay`
1428
- - `elevation.borderOverlay` to `color.borderOverlay`
1429
- - `elevation.shadowCard` to `shadow.card`
1430
- - `elevation.shadowOverlay` to `shadow.overlay`
1996
+ - `color.borderTextHighlighted` to `color.bordertextSelected`
1997
+ - `elevation.base` to `evelation.backgroundDefault`
1998
+ - `elevation.flatSecondary` to `elevation.backgroundSunken`
1999
+ - `elevation.backgroundCard` to `color.backgroundCard`
2000
+ - `elevation.backgroundOverlay` to `color.backgroundOverlay`
2001
+ - `elevation.borderOverlay` to `color.borderOverlay`
2002
+ - `elevation.shadowCard` to `shadow.card`
2003
+ - `elevation.shadowOverlay` to `shadow.overlay`
1431
2004
 
1432
- Removes:
2005
+ Removes:
1433
2006
 
1434
- - `elevation.boarderFlatPrimary`
2007
+ - `elevation.boarderFlatPrimary`
1435
2008
 
1436
- Updates:
2009
+ Updates:
1437
2010
 
1438
- - `elevation.shadowOverlay` value to `DN100`
1439
- - `color.textWarning` in light mode to `O800`
1440
- - `color.iconBorderWarning` in light mode to `O600`
2011
+ - `elevation.shadowOverlay` value to `DN100`
2012
+ - `color.textWarning` in light mode to `O800`
2013
+ - `color.iconBorderWarning` in light mode to `O600`
1441
2014
 
1442
- - Updated dependencies
2015
+ - Updated dependencies
1443
2016
 
1444
2017
  ## 0.0.3
1445
2018
 
1446
2019
  ### Patch Changes
1447
2020
 
1448
- - [#12570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12570) [`ade8d954aa5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ade8d954aa5) - Out of the box configs have been removed until stable release.
1449
- - [`f2a0a48903d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2a0a48903d) - Errors no longer show up on import declarations.
1450
- - [`b71d3cd3d2f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b71d3cd3d2f) - Internal artefacts no longer make their way to npm.
2021
+ - [#12570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12570)
2022
+ [`ade8d954aa5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ade8d954aa5) - Out of
2023
+ the box configs have been removed until stable release.
2024
+ - [`f2a0a48903d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2a0a48903d) - Errors
2025
+ no longer show up on import declarations.
2026
+ - [`b71d3cd3d2f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b71d3cd3d2f) -
2027
+ Internal artefacts no longer make their way to npm.
1451
2028
 
1452
2029
  ## 0.0.2
1453
2030
 
1454
2031
  ### Patch Changes
1455
2032
 
1456
- - [#12444](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12444) [`769ea83469c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/769ea83469c) - Moves tokens and eslint-plugin-design-system to the public namespace.
1457
- - Updated dependencies
2033
+ - [#12444](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12444)
2034
+ [`769ea83469c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/769ea83469c) - Moves
2035
+ tokens and eslint-plugin-design-system to the public namespace.
2036
+ - Updated dependencies
1458
2037
 
1459
2038
  ## 0.0.1
1460
2039
 
1461
2040
  ### Patch Changes
1462
2041
 
1463
- - [#11993](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11993) [`c5ae5c84d47`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c5ae5c84d47) - Initial commit.
1464
- - Updated dependencies
2042
+ - [#11993](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11993)
2043
+ [`c5ae5c84d47`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c5ae5c84d47) -
2044
+ Initial commit.
2045
+ - Updated dependencies