@atlaskit/eslint-plugin-ui-styling-standard 0.15.0 → 0.15.2

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 (56) hide show
  1. package/CHANGELOG.md +189 -172
  2. package/constellation/atlaskit-theme/usage.mdx +17 -17
  3. package/constellation/convert-props-syntax/usage.mdx +14 -14
  4. package/constellation/enforce-style-prop/usage.mdx +17 -17
  5. package/constellation/index/overview.mdx +70 -70
  6. package/constellation/local-cx-xcss/usage.mdx +4 -4
  7. package/constellation/no-array-arguments/usage.mdx +7 -7
  8. package/constellation/no-container-queries/usage.mdx +14 -14
  9. package/constellation/no-dynamic-styles/usage.mdx +19 -19
  10. package/constellation/no-exported-styles/usage.mdx +15 -15
  11. package/constellation/no-global-styles/usage.mdx +13 -13
  12. package/constellation/no-important-styles/usage.mdx +2 -2
  13. package/constellation/no-imported-style-values/usage.mdx +16 -16
  14. package/constellation/no-nested-selectors/usage.mdx +18 -18
  15. package/constellation/no-styled/usage.mdx +6 -6
  16. package/constellation/no-unsafe-selectors/usage.mdx +90 -90
  17. package/constellation/no-unsafe-values/usage.mdx +33 -33
  18. package/dist/cjs/index.codegen.js +1 -1
  19. package/dist/cjs/presets/all.codegen.js +1 -1
  20. package/dist/cjs/presets/recommended.codegen.js +1 -1
  21. package/dist/cjs/rules/index.codegen.js +1 -1
  22. package/dist/cjs/rules/no-nested-selectors/index.js +68 -49
  23. package/dist/cjs/rules/no-unsafe-selectors/index.js +4 -1
  24. package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +10 -1
  25. package/dist/es2019/index.codegen.js +1 -1
  26. package/dist/es2019/presets/all.codegen.js +1 -1
  27. package/dist/es2019/presets/recommended.codegen.js +1 -1
  28. package/dist/es2019/rules/index.codegen.js +1 -1
  29. package/dist/es2019/rules/no-nested-selectors/index.js +63 -45
  30. package/dist/es2019/rules/no-unsafe-selectors/index.js +4 -1
  31. package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +10 -1
  32. package/dist/esm/index.codegen.js +1 -1
  33. package/dist/esm/presets/all.codegen.js +1 -1
  34. package/dist/esm/presets/recommended.codegen.js +1 -1
  35. package/dist/esm/rules/index.codegen.js +1 -1
  36. package/dist/esm/rules/no-nested-selectors/index.js +64 -49
  37. package/dist/esm/rules/no-unsafe-selectors/index.js +4 -1
  38. package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +10 -1
  39. package/dist/types/presets/all.codegen.d.ts +1 -1
  40. package/dist/types/presets/recommended.codegen.d.ts +1 -1
  41. package/dist/types/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
  42. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  43. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
  44. package/dist/types-ts4.5/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
  45. package/package.json +2 -4
  46. package/src/index.codegen.tsx +3 -3
  47. package/src/presets/all.codegen.tsx +70 -73
  48. package/src/presets/recommended.codegen.tsx +70 -73
  49. package/src/rules/index.codegen.tsx +18 -18
  50. package/src/rules/no-nested-selectors/__tests__/rule.test.tsx +93 -56
  51. package/src/rules/no-nested-selectors/index.tsx +92 -105
  52. package/src/rules/no-unsafe-selectors/__tests__/no-ambiguous-pseudos.test.tsx +211 -201
  53. package/src/rules/no-unsafe-selectors/index.tsx +174 -177
  54. package/src/rules/no-unsafe-selectors/lint-selector.tsx +128 -141
  55. package/tsconfig.app.json +45 -45
  56. package/tsconfig.dev.json +43 -43
package/CHANGELOG.md CHANGED
@@ -1,380 +1,397 @@
1
1
  # @atlaskit/eslint-plugin-ui-styling-standard
2
2
 
3
+ ## 0.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#105238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105238)
8
+ [`8840e6d3180d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8840e6d3180d) -
9
+ Fixes `no-nested-selectors` to handle additional APIs (such as `cssMap` and `keyframes`) as well
10
+ as catch more cases of nested selectors.
11
+
12
+ ## 0.15.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#105631](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105631)
17
+ [`68f222356b10`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/68f222356b10) -
18
+ Fixes `no-unsafe-selector` to ignore `xcss` when checking for ambiguous pseudo-selectors. This is
19
+ because `xcss` does not support a leading `&` for properties.
20
+
3
21
  ## 0.15.0
4
22
 
5
23
  ### Minor Changes
6
24
 
7
- - [#100969](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100969)
8
- [`0bdf8e822b2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0bdf8e822b2f) -
9
- Added `no-unsafe-selectors` rule to enable static analysis and prevent regressions when
10
- migrating between styling APIs.
25
+ - [#100969](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100969)
26
+ [`0bdf8e822b2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0bdf8e822b2f) -
27
+ Added `no-unsafe-selectors` rule to enable static analysis and prevent regressions when migrating
28
+ between styling APIs.
11
29
 
12
30
  ### Patch Changes
13
31
 
14
- - Updated dependencies
32
+ - Updated dependencies
15
33
 
16
34
  ## 0.14.2
17
35
 
18
36
  ### Patch Changes
19
37
 
20
- - [#101063](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101063)
21
- [`d135d014f1ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d135d014f1ae) -
22
- The `atlaskit-theme` rule no longer reports on the `fontFallback` import from
23
- `@atlaskit/theme/typography`
38
+ - [#101063](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101063)
39
+ [`d135d014f1ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d135d014f1ae) -
40
+ The `atlaskit-theme` rule no longer reports on the `fontFallback` import from
41
+ `@atlaskit/theme/typography`
24
42
 
25
43
  ## 0.14.1
26
44
 
27
45
  ### Patch Changes
28
46
 
29
- - [#99639](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99639)
30
- [`e9887b5c7698`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9887b5c7698) -
31
- Internal refactoring of `no-important-styles` rule
32
- - Updated dependencies
47
+ - [#99639](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99639)
48
+ [`e9887b5c7698`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9887b5c7698) -
49
+ Internal refactoring of `no-important-styles` rule
50
+ - Updated dependencies
33
51
 
34
52
  ## 0.14.0
35
53
 
36
54
  ### Minor Changes
37
55
 
38
- - [#99733](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99733)
39
- [`7051e483ab6d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7051e483ab6d) -
40
- Added no-styled eslint rule to prevent usage of styled imports
56
+ - [#99733](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99733)
57
+ [`7051e483ab6d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7051e483ab6d) -
58
+ Added no-styled eslint rule to prevent usage of styled imports
41
59
 
42
60
  ## 0.13.0
43
61
 
44
62
  ### Minor Changes
45
63
 
46
- - [#99544](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99544)
47
- [`391edf6de450`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/391edf6de450) -
48
- Added `no-global-styles` rule which prevents:
64
+ - [#99544](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99544)
65
+ [`391edf6de450`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/391edf6de450) -
66
+ Added `no-global-styles` rule which prevents:
49
67
 
50
- - The `Global` API from `@emotion`
51
- - The `createGlobalStyle` and `injectGlobal` APIs from `styled-components`
52
- - `<style>` elements in JSX
53
- - CSS imports (including SASS and LESS)
68
+ - The `Global` API from `@emotion`
69
+ - The `createGlobalStyle` and `injectGlobal` APIs from `styled-components`
70
+ - `<style>` elements in JSX
71
+ - CSS imports (including SASS and LESS)
54
72
 
55
73
  ## 0.12.0
56
74
 
57
75
  ### Minor Changes
58
76
 
59
- - [#96162](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96162)
60
- [`d68864c620d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d68864c620d0) -
61
- Add `use-compiled` rule to enforce usage of `@compiled/react` instead of other CSS-in-JS
62
- libraries
77
+ - [#96162](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96162)
78
+ [`d68864c620d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d68864c620d0) -
79
+ Add `use-compiled` rule to enforce usage of `@compiled/react` instead of other CSS-in-JS libraries
63
80
 
64
81
  ## 0.11.6
65
82
 
66
83
  ### Patch Changes
67
84
 
68
- - [#97707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97707)
69
- [`764c0805b3c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/764c0805b3c1) -
70
- Moved compiled/atlaskit-theme eslint rule to UI styling standard
85
+ - [#97707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97707)
86
+ [`764c0805b3c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/764c0805b3c1) -
87
+ Moved compiled/atlaskit-theme eslint rule to UI styling standard
71
88
 
72
89
  ## 0.11.5
73
90
 
74
91
  ### Patch Changes
75
92
 
76
- - [#96532](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96532)
77
- [`d54c7df2e836`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d54c7df2e836) -
78
- Editing enforce-style-prop rule to use eslint utils functions
93
+ - [#96532](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96532)
94
+ [`d54c7df2e836`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d54c7df2e836) -
95
+ Editing enforce-style-prop rule to use eslint utils functions
79
96
 
80
97
  ## 0.11.4
81
98
 
82
99
  ### Patch Changes
83
100
 
84
- - [#93427](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93427)
85
- [`d6d428f334b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d6d428f334b0) -
86
- The `no-important-styles` rule now checks template literal values in style objects
101
+ - [#93427](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93427)
102
+ [`d6d428f334b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d6d428f334b0) -
103
+ The `no-important-styles` rule now checks template literal values in style objects
87
104
 
88
105
  ## 0.11.3
89
106
 
90
107
  ### Patch Changes
91
108
 
92
- - [#95279](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95279)
93
- [`813a0e8d6227`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/813a0e8d6227) -
94
- Deprecating @repo/internal/compiled/selectors ESlint rule
109
+ - [#95279](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95279)
110
+ [`813a0e8d6227`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/813a0e8d6227) -
111
+ Deprecating @repo/internal/compiled/selectors ESlint rule
95
112
 
96
113
  ## 0.11.2
97
114
 
98
115
  ### Patch Changes
99
116
 
100
- - [#94765](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94765)
101
- [`8e5a3bddb686`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e5a3bddb686) -
102
- Adding no imported style values ESlint rule
117
+ - [#94765](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94765)
118
+ [`8e5a3bddb686`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e5a3bddb686) -
119
+ Adding no imported style values ESlint rule
103
120
 
104
121
  ## 0.11.1
105
122
 
106
123
  ### Patch Changes
107
124
 
108
- - [#92963](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92963)
109
- [`1bb8557fb0b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1bb8557fb0b6) -
110
- Added no-exported-styles eslint rule to disallow exports of css, cssMap, keyframes, styled and
111
- xcss styling
125
+ - [#92963](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92963)
126
+ [`1bb8557fb0b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1bb8557fb0b6) -
127
+ Added no-exported-styles eslint rule to disallow exports of css, cssMap, keyframes, styled and
128
+ xcss styling
112
129
 
113
130
  ## 0.11.0
114
131
 
115
132
  ### Minor Changes
116
133
 
117
- - [#87213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87213)
118
- [`fbfa5a58cf39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbfa5a58cf39) -
119
- Adds `no-unsafe-values` rule, which forbids most dynamic styling in
120
- `css`/`styled`/`keyframes`/`cssMap`/`xcss` function calls. This includes object spreading,
121
- function calls, and so on.
134
+ - [#87213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87213)
135
+ [`fbfa5a58cf39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbfa5a58cf39) -
136
+ Adds `no-unsafe-values` rule, which forbids most dynamic styling in
137
+ `css`/`styled`/`keyframes`/`cssMap`/`xcss` function calls. This includes object spreading,
138
+ function calls, and so on.
122
139
 
123
140
  ### Patch Changes
124
141
 
125
- - Updated dependencies
142
+ - Updated dependencies
126
143
 
127
144
  ## 0.10.0
128
145
 
129
146
  ### Minor Changes
130
147
 
131
- - [#91611](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91611)
132
- [`943056d22c36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/943056d22c36) -
133
- Add `no-dynamic-styles` rule which blocks function expressions as values in style declarations.
148
+ - [#91611](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91611)
149
+ [`943056d22c36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/943056d22c36) -
150
+ Add `no-dynamic-styles` rule which blocks function expressions as values in style declarations.
134
151
 
135
152
  ## 0.9.1
136
153
 
137
154
  ### Patch Changes
138
155
 
139
- - [#90977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90977)
140
- [`becda03f375e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/becda03f375e) -
141
- Create eslint rule to enforce style prop usage by disallowing passing static css values
156
+ - [#90977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90977)
157
+ [`becda03f375e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/becda03f375e) -
158
+ Create eslint rule to enforce style prop usage by disallowing passing static css values
142
159
 
143
160
  ## 0.9.0
144
161
 
145
162
  ### Minor Changes
146
163
 
147
- - [#91840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91840)
148
- [`997a3d2d0ca0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/997a3d2d0ca0) -
149
- Add `no-array-arguments` rule which prevents passing array arguments to style declaration
150
- functions.
164
+ - [#91840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91840)
165
+ [`997a3d2d0ca0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/997a3d2d0ca0) -
166
+ Add `no-array-arguments` rule which prevents passing array arguments to style declaration
167
+ functions.
151
168
 
152
169
  ### Patch Changes
153
170
 
154
- - Updated dependencies
171
+ - Updated dependencies
155
172
 
156
173
  ## 0.8.4
157
174
 
158
175
  ### Patch Changes
159
176
 
160
- - [#89936](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89936)
161
- [`eb8f66c5d0f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eb8f66c5d0f3) -
162
- Add @atlaskit/eslint-plugin-ui-styling-standard to the internal Atlassian push model.
177
+ - [#89936](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89936)
178
+ [`eb8f66c5d0f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eb8f66c5d0f3) -
179
+ Add @atlaskit/eslint-plugin-ui-styling-standard to the internal Atlassian push model.
163
180
 
164
181
  ## 0.8.3
165
182
 
166
183
  ### Patch Changes
167
184
 
168
- - [#87496](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87496)
169
- [`d5b439e94043`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5b439e94043) -
170
- Improve coverage of `convert-props-syntax` rule. Previously cases such as `css()` and
171
- `styled(BaseComponent)()` were not covered by the rule.
185
+ - [#87496](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87496)
186
+ [`d5b439e94043`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5b439e94043) -
187
+ Improve coverage of `convert-props-syntax` rule. Previously cases such as `css()` and
188
+ `styled(BaseComponent)()` were not covered by the rule.
172
189
 
173
190
  ## 0.8.2
174
191
 
175
192
  ### Patch Changes
176
193
 
177
- - [#88753](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88753)
178
- [`df5cbd4957ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/df5cbd4957ea) -
179
- Fixed no nested selectors rule to skip @ queries, cssMap and keyFrames calls
194
+ - [#88753](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88753)
195
+ [`df5cbd4957ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/df5cbd4957ea) -
196
+ Fixed no nested selectors rule to skip @ queries, cssMap and keyFrames calls
180
197
 
181
198
  ## 0.8.1
182
199
 
183
200
  ### Patch Changes
184
201
 
185
- - [#88029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88029)
186
- [`01d74d2899d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01d74d2899d5) -
187
- Disabled ESlint rule convert-props-syntax on .attrs() calls
188
- - [#87476](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87476)
189
- [`af296d200ad2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/af296d200ad2) -
190
- Internal refactoring to use `getCreateLintRule` from `@atlaskit/eslint-utils`
191
- - Updated dependencies
202
+ - [#88029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88029)
203
+ [`01d74d2899d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01d74d2899d5) -
204
+ Disabled ESlint rule convert-props-syntax on .attrs() calls
205
+ - [#87476](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87476)
206
+ [`af296d200ad2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/af296d200ad2) -
207
+ Internal refactoring to use `getCreateLintRule` from `@atlaskit/eslint-utils`
208
+ - Updated dependencies
192
209
 
193
210
  ## 0.8.0
194
211
 
195
212
  ### Minor Changes
196
213
 
197
- - [#87972](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87972)
198
- [`1f420b2c4a9f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1f420b2c4a9f) -
199
- The `@atlaskit/design-system/no-styled-tagged-template-expression` rule will now lint against
200
- `styled-components` by default in the preset configurations.
214
+ - [#87972](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87972)
215
+ [`1f420b2c4a9f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1f420b2c4a9f) -
216
+ The `@atlaskit/design-system/no-styled-tagged-template-expression` rule will now lint against
217
+ `styled-components` by default in the preset configurations.
201
218
 
202
219
  ### Patch Changes
203
220
 
204
- - [#86779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86779)
205
- [`4b4bbf195e39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4b4bbf195e39) -
206
- Created no nested selectors eslint rule to prevent setting styles for child elements
221
+ - [#86779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86779)
222
+ [`4b4bbf195e39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4b4bbf195e39) -
223
+ Created no nested selectors eslint rule to prevent setting styles for child elements
207
224
 
208
225
  ## 0.7.2
209
226
 
210
227
  ### Patch Changes
211
228
 
212
- - [#86638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86638)
213
- [`f003f07e88e1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f003f07e88e1) -
214
- Internal refactoring to use a shared `@atlaskit/eslint-utils` package
215
- - Updated dependencies
229
+ - [#86638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86638)
230
+ [`f003f07e88e1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f003f07e88e1) -
231
+ Internal refactoring to use a shared `@atlaskit/eslint-utils` package
232
+ - Updated dependencies
216
233
 
217
234
  ## 0.7.1
218
235
 
219
236
  ### Patch Changes
220
237
 
221
- - [#84413](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84413)
222
- [`2860b53c90d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2860b53c90d9) -
223
- Added eslint rule to block @container queries in css styling
238
+ - [#84413](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84413)
239
+ [`2860b53c90d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2860b53c90d9) -
240
+ Added eslint rule to block @container queries in css styling
224
241
 
225
242
  ## 0.7.0
226
243
 
227
244
  ### Minor Changes
228
245
 
229
- - [#83454](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83454)
230
- [`be8b7ad6ff8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be8b7ad6ff8e) -
231
- Remove name autofixer from `consistent-css-prop-usage`. Variables for css / xcss / cssMap
232
- functions will no longer be required to end with "Styles".
246
+ - [#83454](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83454)
247
+ [`be8b7ad6ff8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be8b7ad6ff8e) -
248
+ Remove name autofixer from `consistent-css-prop-usage`. Variables for css / xcss / cssMap
249
+ functions will no longer be required to end with "Styles".
233
250
 
234
- [BREAKING] Some rule options have been changed:
251
+ [BREAKING] Some rule options have been changed:
235
252
 
236
- - `fixNamesOnly` and `autoFixNames` have been removed, as there is no longer an autofixer that
237
- enforces variable names.
238
- - If you use `fixNamesOnly: true`, we recommend switching to using `autoFix: false`.
239
- - Users of the `autoFixNames` option should remove this from their configuration.
240
- - `autoFix` option has been added. This controls whether the remaining autofixers should run
241
- or not (e.g. hoisting `css` function calls, wrapping objects in `css` function calls), and
242
- is `true` by default.
253
+ - `fixNamesOnly` and `autoFixNames` have been removed, as there is no longer an autofixer that
254
+ enforces variable names.
255
+ - If you use `fixNamesOnly: true`, we recommend switching to using `autoFix: false`.
256
+ - Users of the `autoFixNames` option should remove this from their configuration.
257
+ - `autoFix` option has been added. This controls whether the remaining autofixers should run or
258
+ not (e.g. hoisting `css` function calls, wrapping objects in `css` function calls), and is
259
+ `true` by default.
243
260
 
244
261
  ## 0.6.3
245
262
 
246
263
  ### Patch Changes
247
264
 
248
- - [#83463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83463)
249
- [`fee29cf1335a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fee29cf1335a) -
250
- Extend convert-props-syntax to Emotion as well as it has a type issue.
265
+ - [#83463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83463)
266
+ [`fee29cf1335a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fee29cf1335a) -
267
+ Extend convert-props-syntax to Emotion as well as it has a type issue.
251
268
 
252
269
  ## 0.6.2
253
270
 
254
271
  ### Patch Changes
255
272
 
256
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
257
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
258
- Upgrade Typescript from `4.9.5` to `5.4.2`
273
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
274
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
275
+ Upgrade Typescript from `4.9.5` to `5.4.2`
259
276
 
260
277
  ## 0.6.1
261
278
 
262
279
  ### Patch Changes
263
280
 
264
- - [#80129](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80129)
265
- [`dc0ce9161fc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc0ce9161fc1) -
266
- Add `convert-prop-syntax` to convert invalid `styled-components` props syntax to valid
267
- `styled-components` props syntax.
268
- - [#79686](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79686)
269
- [`7dc7cf06a8b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7dc7cf06a8b9) -
270
- Bump @compiled/react to v0.17.0
281
+ - [#80129](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80129)
282
+ [`dc0ce9161fc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc0ce9161fc1) -
283
+ Add `convert-prop-syntax` to convert invalid `styled-components` props syntax to valid
284
+ `styled-components` props syntax.
285
+ - [#79686](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79686)
286
+ [`7dc7cf06a8b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7dc7cf06a8b9) -
287
+ Bump @compiled/react to v0.17.0
271
288
 
272
289
  ## 0.6.0
273
290
 
274
291
  ### Minor Changes
275
292
 
276
- - [#81459](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81459)
277
- [`08abd3b15614`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08abd3b15614) -
278
- Adds `no-classname-prop` rule which prevents the use of `className` in JSX.
293
+ - [#81459](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81459)
294
+ [`08abd3b15614`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08abd3b15614) -
295
+ Adds `no-classname-prop` rule which prevents the use of `className` in JSX.
279
296
 
280
297
  ## 0.5.2
281
298
 
282
299
  ### Patch Changes
283
300
 
284
- - [#81702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81702)
285
- [`04e7850f449c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e7850f449c) -
286
- Adding a missing LICENSE for this package, updating from "UNLICENSED" to make it clear this is
287
- available for use.
301
+ - [#81702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81702)
302
+ [`04e7850f449c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e7850f449c) -
303
+ Adding a missing LICENSE for this package, updating from "UNLICENSED" to make it clear this is
304
+ available for use.
288
305
 
289
306
  ## 0.5.1
290
307
 
291
308
  ### Patch Changes
292
309
 
293
- - [#81166](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81166)
294
- [`a249a1bd29a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a249a1bd29a6) -
295
- Upgrade ESLint to version 8
310
+ - [#81166](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81166)
311
+ [`a249a1bd29a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a249a1bd29a6) -
312
+ Upgrade ESLint to version 8
296
313
 
297
314
  ## 0.5.0
298
315
 
299
316
  ### Minor Changes
300
317
 
301
- - [#80523](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80523)
302
- [`1fbc903e5b7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1fbc903e5b7b) -
303
- Adds `no-important-styles` rule which prevents the use of `!important` flags in style
304
- declarations.
318
+ - [#80523](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80523)
319
+ [`1fbc903e5b7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1fbc903e5b7b) -
320
+ Adds `no-important-styles` rule which prevents the use of `!important` flags in style
321
+ declarations.
305
322
 
306
323
  ## 0.4.1
307
324
 
308
325
  ### Patch Changes
309
326
 
310
- - [#76885](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76885)
311
- [`06030bc18dd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06030bc18dd4) -
312
- Disable `styled-components` handling for `no-styled-tagged-template-expression` rule, due to
313
- edge case where props are converted to output that fails typechecking.
327
+ - [#76885](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76885)
328
+ [`06030bc18dd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06030bc18dd4) -
329
+ Disable `styled-components` handling for `no-styled-tagged-template-expression` rule, due to edge
330
+ case where props are converted to output that fails typechecking.
314
331
 
315
332
  ## 0.4.0
316
333
 
317
334
  ### Minor Changes
318
335
 
319
- - [#75600](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75600)
320
- [`8875d9de2e5d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8875d9de2e5d) -
321
- Migrates the ESLint rule from `@atlaskit/design-system/local-cx-xcss` to
322
- `@atlaskit/ui-styling-standard/local-cx-xcss` and overhauls the codegen to enable better
323
- documentation and rule distribution.
336
+ - [#75600](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75600)
337
+ [`8875d9de2e5d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8875d9de2e5d) -
338
+ Migrates the ESLint rule from `@atlaskit/design-system/local-cx-xcss` to
339
+ `@atlaskit/ui-styling-standard/local-cx-xcss` and overhauls the codegen to enable better
340
+ documentation and rule distribution.
324
341
 
325
342
  ## 0.3.0
326
343
 
327
344
  ### Minor Changes
328
345
 
329
- - [#74981](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74981)
330
- [`842300de03a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/842300de03a1) -
331
- Add the following rules:
346
+ - [#74981](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74981)
347
+ [`842300de03a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/842300de03a1) -
348
+ Add the following rules:
332
349
 
333
- - `consistent-css-prop-usage`: Ensures consistency with `css` and `xcss` prop usages
334
- - `no-empty-styled-expression`: Forbids any styled expression to be used when passing empty
335
- arguments to styled.div() (or other JSX elements).
336
- - `no-exported-css`: Forbid exporting `css` function calls.
337
- - `no-exported-keyframes`: Forbid exporting `keyframes` function calls.
338
- - `no-invalid-css-map`: Checks the validity of a CSS map created through cssMap.
350
+ - `consistent-css-prop-usage`: Ensures consistency with `css` and `xcss` prop usages
351
+ - `no-empty-styled-expression`: Forbids any styled expression to be used when passing empty
352
+ arguments to styled.div() (or other JSX elements).
353
+ - `no-exported-css`: Forbid exporting `css` function calls.
354
+ - `no-exported-keyframes`: Forbid exporting `keyframes` function calls.
355
+ - `no-invalid-css-map`: Checks the validity of a CSS map created through cssMap.
339
356
 
340
- - [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983)
341
- [`878065bfc4c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/878065bfc4c0) -
342
- Adds the following rules to the recommended preset:
357
+ - [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983)
358
+ [`878065bfc4c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/878065bfc4c0) -
359
+ Adds the following rules to the recommended preset:
343
360
 
344
- - `@atlaskit/design-system/no-css-tagged-template-expression`
345
- - `@atlaskit/design-system/no-keyframes-tagged-template-expression`
346
- - `@atlaskit/design-system/no-styled-tagged-template-expression`
361
+ - `@atlaskit/design-system/no-css-tagged-template-expression`
362
+ - `@atlaskit/design-system/no-keyframes-tagged-template-expression`
363
+ - `@atlaskit/design-system/no-styled-tagged-template-expression`
347
364
 
348
365
  ### Patch Changes
349
366
 
350
- - [#75152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75152)
351
- [`c16a175d372b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c16a175d372b) -
352
- Change 'error' to 'warn' to unbreak AFM platform
367
+ - [#75152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75152)
368
+ [`c16a175d372b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c16a175d372b) -
369
+ Change 'error' to 'warn' to unbreak AFM platform
353
370
 
354
371
  ## 0.2.1
355
372
 
356
373
  ### Patch Changes
357
374
 
358
- - [#71319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71319)
359
- [`d716e2b5e102`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d716e2b5e102) -
360
- Ensures all dependencies are properly defined
375
+ - [#71319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71319)
376
+ [`d716e2b5e102`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d716e2b5e102) -
377
+ Ensures all dependencies are properly defined
361
378
 
362
379
  ## 0.2.0
363
380
 
364
381
  ### Minor Changes
365
382
 
366
- - [#69723](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69723)
367
- [`06cd0f04fefb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06cd0f04fefb) -
368
- Adds the following rules to the recommended config:
383
+ - [#69723](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69723)
384
+ [`06cd0f04fefb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06cd0f04fefb) -
385
+ Adds the following rules to the recommended config:
369
386
 
370
- - `local-cx-xcss` - Ensures the `cx()` function is only used within the `xcss` prop
371
- - `no-supress-xcss` - Disallows supressing type violations when using the `xcss` prop
372
- - `no-js-xcss` - Disallows using `xcss` prop inside JavaScript files
387
+ - `local-cx-xcss` - Ensures the `cx()` function is only used within the `xcss` prop
388
+ - `no-supress-xcss` - Disallows supressing type violations when using the `xcss` prop
389
+ - `no-js-xcss` - Disallows using `xcss` prop inside JavaScript files
373
390
 
374
391
  ## 0.1.0
375
392
 
376
393
  ### Minor Changes
377
394
 
378
- - [#63960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63960)
379
- [`8e3774cada83`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e3774cada83) -
380
- Created the design system styling standard package
395
+ - [#63960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63960)
396
+ [`8e3774cada83`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e3774cada83) -
397
+ Created the design system styling standard package