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

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