@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.
- package/CHANGELOG.md +180 -172
- package/constellation/atlaskit-theme/usage.mdx +17 -17
- package/constellation/convert-props-syntax/usage.mdx +14 -14
- package/constellation/enforce-style-prop/usage.mdx +17 -17
- package/constellation/index/overview.mdx +70 -70
- package/constellation/local-cx-xcss/usage.mdx +4 -4
- package/constellation/no-array-arguments/usage.mdx +7 -7
- package/constellation/no-container-queries/usage.mdx +14 -14
- package/constellation/no-dynamic-styles/usage.mdx +19 -19
- package/constellation/no-exported-styles/usage.mdx +15 -15
- package/constellation/no-global-styles/usage.mdx +13 -13
- package/constellation/no-important-styles/usage.mdx +2 -2
- package/constellation/no-imported-style-values/usage.mdx +16 -16
- package/constellation/no-nested-selectors/usage.mdx +18 -18
- package/constellation/no-styled/usage.mdx +6 -6
- package/constellation/no-unsafe-selectors/usage.mdx +90 -90
- package/constellation/no-unsafe-values/usage.mdx +33 -33
- package/dist/cjs/index.codegen.js +1 -1
- package/dist/cjs/presets/all.codegen.js +1 -1
- package/dist/cjs/presets/recommended.codegen.js +1 -1
- package/dist/cjs/rules/index.codegen.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/index.js +4 -1
- package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +10 -1
- package/dist/es2019/index.codegen.js +1 -1
- package/dist/es2019/presets/all.codegen.js +1 -1
- package/dist/es2019/presets/recommended.codegen.js +1 -1
- package/dist/es2019/rules/index.codegen.js +1 -1
- package/dist/es2019/rules/no-unsafe-selectors/index.js +4 -1
- package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +10 -1
- package/dist/esm/index.codegen.js +1 -1
- package/dist/esm/presets/all.codegen.js +1 -1
- package/dist/esm/presets/recommended.codegen.js +1 -1
- package/dist/esm/rules/index.codegen.js +1 -1
- package/dist/esm/rules/no-unsafe-selectors/index.js +4 -1
- package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +10 -1
- package/dist/types/presets/all.codegen.d.ts +1 -1
- package/dist/types/presets/recommended.codegen.d.ts +1 -1
- package/dist/types/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
- package/dist/types-ts4.5/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
- package/package.json +2 -4
- package/src/index.codegen.tsx +3 -3
- package/src/presets/all.codegen.tsx +70 -73
- package/src/presets/recommended.codegen.tsx +70 -73
- package/src/rules/index.codegen.tsx +18 -18
- package/src/rules/no-unsafe-selectors/__tests__/no-ambiguous-pseudos.test.tsx +211 -201
- package/src/rules/no-unsafe-selectors/index.tsx +174 -177
- package/src/rules/no-unsafe-selectors/lint-selector.tsx +128 -141
- package/tsconfig.app.json +45 -45
- 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
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
-
|
|
23
|
+
- Updated dependencies
|
|
15
24
|
|
|
16
25
|
## 0.14.2
|
|
17
26
|
|
|
18
27
|
### Patch Changes
|
|
19
28
|
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
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
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
-
|
|
133
|
+
- Updated dependencies
|
|
126
134
|
|
|
127
135
|
## 0.10.0
|
|
128
136
|
|
|
129
137
|
### Minor Changes
|
|
130
138
|
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
-
|
|
162
|
+
- Updated dependencies
|
|
155
163
|
|
|
156
164
|
## 0.8.4
|
|
157
165
|
|
|
158
166
|
### Patch Changes
|
|
159
167
|
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
-
|
|
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
|
-
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
-
|
|
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
|
-
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
242
|
+
[BREAKING] Some rule options have been changed:
|
|
235
243
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
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
|
-
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
-
-
|
|
294
|
-
|
|
295
|
-
|
|
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
|
-
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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
|
-
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
-
|
|
351
|
-
|
|
352
|
-
|
|
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
|
-
-
|
|
359
|
-
|
|
360
|
-
|
|
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
|
-
-
|
|
367
|
-
|
|
368
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|