@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.
- package/CHANGELOG.md +189 -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-nested-selectors/index.js +68 -49
- 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-nested-selectors/index.js +63 -45
- 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-nested-selectors/index.js +64 -49
- 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-nested-selectors/__tests__/rule.test.tsx +93 -56
- package/src/rules/no-nested-selectors/index.tsx +92 -105
- 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,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
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
-
|
|
32
|
+
- Updated dependencies
|
|
15
33
|
|
|
16
34
|
## 0.14.2
|
|
17
35
|
|
|
18
36
|
### Patch Changes
|
|
19
37
|
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
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
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
-
|
|
142
|
+
- Updated dependencies
|
|
126
143
|
|
|
127
144
|
## 0.10.0
|
|
128
145
|
|
|
129
146
|
### Minor Changes
|
|
130
147
|
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
-
|
|
171
|
+
- Updated dependencies
|
|
155
172
|
|
|
156
173
|
## 0.8.4
|
|
157
174
|
|
|
158
175
|
### Patch Changes
|
|
159
176
|
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
-
|
|
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
|
-
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
-
|
|
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
|
-
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
251
|
+
[BREAKING] Some rule options have been changed:
|
|
235
252
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
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
|
-
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
-
-
|
|
294
|
-
|
|
295
|
-
|
|
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
|
-
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
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
|
-
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
-
|
|
351
|
-
|
|
352
|
-
|
|
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
|
-
-
|
|
359
|
-
|
|
360
|
-
|
|
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
|
-
-
|
|
367
|
-
|
|
368
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|