@atlaskit/eslint-plugin-design-system 10.6.0 → 10.6.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 +12 -0
- package/configs/deprecated.json +263 -273
- package/dist/cjs/common/token-maps.partial.js +1 -1
- package/dist/cjs/rules/use-latest-xcss-syntax/transformers/style-property/index.js +10 -1
- package/dist/configs/deprecated.json +263 -273
- package/dist/es2019/common/token-maps.partial.js +1 -1
- package/dist/es2019/rules/use-latest-xcss-syntax/transformers/style-property/index.js +10 -1
- package/dist/esm/common/token-maps.partial.js +1 -1
- package/dist/esm/rules/use-latest-xcss-syntax/transformers/style-property/index.js +10 -1
- package/dist/types/common/token-maps.partial.d.ts +1 -1
- package/dist/types/rules/use-primitives/transformers/index.d.ts +1 -1
- package/dist/types-ts4.5/common/token-maps.partial.d.ts +1 -1
- package/dist/types-ts4.5/rules/use-primitives/transformers/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 10.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107720](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107720)
|
|
8
|
+
[`b900316d320c7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b900316d320c7) -
|
|
9
|
+
`use-latest-xcss-syntax`: Fix bug that caused an error to be thrown when accessing undefined
|
|
10
|
+
sourceCode variable.
|
|
11
|
+
- [#93481](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93481)
|
|
12
|
+
[`84dab79bd0c08`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/84dab79bd0c08) -
|
|
13
|
+
Remove deprecation rules for `iconGradientStart` and `iconGradientStop` in @atlaskit/logo
|
|
14
|
+
|
|
3
15
|
## 10.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/configs/deprecated.json
CHANGED
|
@@ -1,278 +1,268 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
],
|
|
42
|
-
"iconGradientStop": [
|
|
43
|
-
{
|
|
44
|
-
"moduleSpecifier": "@atlaskit/logo"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
2
|
+
"jsxAttributes": {
|
|
3
|
+
"cssFn": [
|
|
4
|
+
{
|
|
5
|
+
"moduleSpecifier": "@atlaskit/menu"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"moduleSpecifier": "@atlaskit/side-navigation"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"overrides": [
|
|
12
|
+
{
|
|
13
|
+
"moduleSpecifier": "@atlaskit/menu"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"moduleSpecifier": "@atlaskit/side-navigation"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"moduleSpecifier": "@atlaskit/drawer"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"type": [
|
|
23
|
+
{
|
|
24
|
+
"moduleSpecifier": "@atlaskit/inline-message"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"textColor": [
|
|
28
|
+
{
|
|
29
|
+
"moduleSpecifier": "@atlaskit/logo"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"iconColor": [
|
|
33
|
+
{
|
|
34
|
+
"moduleSpecifier": "@atlaskit/logo"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"imports": {
|
|
39
|
+
"@atlaskit/navigation-next": {
|
|
40
|
+
"message": "navigation-next is deprecated. Please use '@atlaskit/atlassian-navigation' instead."
|
|
47
41
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
{
|
|
264
|
-
"importName": "OpsGenieLogo",
|
|
265
|
-
"message": "OpsGenieLogo was incorrectly spelled and has been marked deprecated. Please use OpsgenieLogo instead (no capital \"g\")."
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"importName": "OpsGenieIcon",
|
|
269
|
-
"message": "OpsGenieIcon was incorrectly spelled and has been marked deprecated. Please use OpsgenieIcon instead (no capital \"g\")."
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"importName": "OpsGenieWordmark",
|
|
273
|
-
"message": "OpsGenieWordmark was incorrectly spelled and is deprecated. Please use OpsgenieWordmark instead (no capital \"g\")."
|
|
274
|
-
}
|
|
275
|
-
]
|
|
42
|
+
"@atlaskit/field-base": {
|
|
43
|
+
"message": "field-base is deprecated. Please use the '@atlaskit/form' package instead."
|
|
44
|
+
},
|
|
45
|
+
"@atlaskit/field-radio-group": {
|
|
46
|
+
"message": "field-radio-group is deprecated. Please use '@atlaskit/radio' instead, and check the migration guide."
|
|
47
|
+
},
|
|
48
|
+
"@atlaskit/field-range": {
|
|
49
|
+
"message": "field-range is deprecated. Please use '@atlaskit/range' instead."
|
|
50
|
+
},
|
|
51
|
+
"@atlaskit/field-text": {
|
|
52
|
+
"message": "field-text is deprecated. Please use '@atlaskit/textfield' instead."
|
|
53
|
+
},
|
|
54
|
+
"@atlaskit/field-text-area": {
|
|
55
|
+
"message": "field-text-area is deprecated. Please use '@atlaskit/textarea' instead."
|
|
56
|
+
},
|
|
57
|
+
"@atlaskit/navigation": {
|
|
58
|
+
"message": "navigation is deprecated. Please use '@atlaskit/atlassian-navigation' instead."
|
|
59
|
+
},
|
|
60
|
+
"@atlaskit/global-navigation": {
|
|
61
|
+
"message": "global-navigation is deprecated. Please use '@atlaskit/atlassian-navigation' for the horizontal nav bar, '@atlaskit/side-navigation' for the side nav, and '@atlaskit/page-layout' to layout your application."
|
|
62
|
+
},
|
|
63
|
+
"@atlaskit/input": {
|
|
64
|
+
"message": "input is deprecated. This was an internal component and should not be used directly."
|
|
65
|
+
},
|
|
66
|
+
"@atlaskit/layer": {
|
|
67
|
+
"message": "layer is deprecated. This was an internal component and should not be used directly."
|
|
68
|
+
},
|
|
69
|
+
"@atlaskit/single-select": {
|
|
70
|
+
"message": "single-select is deprecated. Please use '@atlaskit/select' instead."
|
|
71
|
+
},
|
|
72
|
+
"@atlaskit/multi-select": {
|
|
73
|
+
"message": "multi-select is deprecated. Please use '@atlaskit/select' instead."
|
|
74
|
+
},
|
|
75
|
+
"@atlaskit/droplist": {
|
|
76
|
+
"message": "droplist is deprecated. For the pop-up behaviour please use '@atlaskit/popup' and for common menu components please use '@atlaskit/menu'."
|
|
77
|
+
},
|
|
78
|
+
"@atlaskit/item": {
|
|
79
|
+
"message": "item is deprecated. Please use '@atlaskit/menu' instead."
|
|
80
|
+
},
|
|
81
|
+
"@atlaskit/theme/elevation": {
|
|
82
|
+
"importSpecifiers": [
|
|
83
|
+
{
|
|
84
|
+
"importName": "e100",
|
|
85
|
+
"message": "Elevation mixin is deprecated. Please use design tokens instead."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"importName": "e200",
|
|
89
|
+
"message": "Elevation mixin is deprecated. Please use design tokens instead."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"importName": "e300",
|
|
93
|
+
"message": "Elevation mixin is deprecated. Please use design tokens instead."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"importName": "e400",
|
|
97
|
+
"message": "Elevation mixin is deprecated. Please use design tokens instead."
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"importName": "e500",
|
|
101
|
+
"message": "Elevation mixin is deprecated. Please use design tokens instead."
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"@atlaskit/theme/constants": {
|
|
106
|
+
"importSpecifiers": [
|
|
107
|
+
{
|
|
108
|
+
"importName": "assistive",
|
|
109
|
+
"message": "The assistive mixin is deprecated. Please use `@atlaskit/visually-hidden` instead."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"importName": "visuallyHidden",
|
|
113
|
+
"message": "The visuallyHidden mixin is deprecated. Please use `@atlaskit/visually-hidden` instead."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"importName": "focusRing",
|
|
117
|
+
"message": "The focusRing mixin is deprecated. Please use `@atlaskit/focus-ring` instead."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"importName": "gridSize",
|
|
121
|
+
"message": "The gridSize mixin is deprecated. Please use space tokens via `@atlaskit/tokens` instead."
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"@atlaskit/theme/colors": {
|
|
126
|
+
"importSpecifiers": [
|
|
127
|
+
{
|
|
128
|
+
"importName": "background",
|
|
129
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"importName": "backgroundActive",
|
|
133
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"importName": "backgroundHover",
|
|
137
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"importName": "backgroundOnLayer",
|
|
141
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"importName": "text",
|
|
145
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"importName": "textHover",
|
|
149
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"importName": "textActive",
|
|
153
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"importName": "subtleText",
|
|
157
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"importName": "placeholderText",
|
|
161
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"importName": "heading",
|
|
165
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"importName": "subtleHeading",
|
|
169
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"importName": "codeBlock",
|
|
173
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"importName": "link",
|
|
177
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"importName": "linkHover",
|
|
181
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"importName": "linkActive",
|
|
185
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"importName": "linkOutline",
|
|
189
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"importName": "primary",
|
|
193
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"importName": "blue",
|
|
197
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"importName": "teal",
|
|
201
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"importName": "purple",
|
|
205
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"importName": "red",
|
|
209
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"importName": "yellow",
|
|
213
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"importName": "green",
|
|
217
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"importName": "skeleton",
|
|
221
|
+
"message": "Named color utils are deprecated in favor of design tokens."
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"@atlaskit/theme/components": {
|
|
226
|
+
"message": "Legacy theming is deprecated in favor of design tokens."
|
|
227
|
+
},
|
|
228
|
+
"@atlaskit/theme": {
|
|
229
|
+
"importSpecifiers": [
|
|
230
|
+
{
|
|
231
|
+
"importName": "assistive",
|
|
232
|
+
"message": "The assistive mixin is deprecated. Please use `@atlaskit/visually-hidden` instead."
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"importName": "visuallyHidden",
|
|
236
|
+
"message": "The visuallyHidden mixin is deprecated. Please use `@atlaskit/visually-hidden` instead."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"importName": "focusRing",
|
|
240
|
+
"message": "The focusRing mixin is deprecated. Please use `@atlaskit/focus-ring` instead."
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"importName": "gridSize",
|
|
244
|
+
"message": "The gridSize mixin is deprecated. Please use space tokens via `@atlaskit/tokens` instead."
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"importName": "elevation",
|
|
248
|
+
"message": "Elevation mixin is deprecated. Please use design tokens instead."
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"importName": "themed",
|
|
252
|
+
"message": "Legacy theming is deprecated in favor of design tokens."
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"importName": "AtlaskitThemeProvider",
|
|
256
|
+
"message": "Legacy theming is deprecated in favor of design tokens."
|
|
276
257
|
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"@atlaskit/icon-priority": {
|
|
261
|
+
"message": "icon-priority was deprecated due to limited usage in Cloud products and is no longer supported."
|
|
262
|
+
},
|
|
263
|
+
"@atlaskit/logo": {
|
|
264
|
+
"importSpecifiers": [
|
|
265
|
+
]
|
|
277
266
|
}
|
|
267
|
+
}
|
|
278
268
|
}
|
|
@@ -10,7 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
/**
|
|
12
12
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
13
|
-
* @codegen <<SignedSource::
|
|
13
|
+
* @codegen <<SignedSource::a9fbd091c8b53fd9515afc7cdd793c6b>>
|
|
14
14
|
* @codegenId spacing
|
|
15
15
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen-token-maps
|
|
16
16
|
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::55622b91aca9b3afac4bce440f222b71>>
|
|
@@ -39,7 +39,16 @@ var StyleProperty = exports.StyleProperty = {
|
|
|
39
39
|
ref: undefined
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
var importDeclarations = ast.Root.findImportsByModule(
|
|
42
|
+
var importDeclarations = ast.Root.findImportsByModule(
|
|
43
|
+
/**
|
|
44
|
+
* `context.getSourceCode()` is deprecated in favour of `context.sourceCode`.
|
|
45
|
+
* However, `context.sourceCode` returns undefined for some usages. This may be a bug
|
|
46
|
+
* in the `eslint` package. So, use `getSourceCode()` instead.
|
|
47
|
+
*
|
|
48
|
+
* Note: `context.sourceCode` works in testing environments. So, it is hard to validate whether it
|
|
49
|
+
* will work in the wild. Even if the tests pass, don't assume it will work in production.
|
|
50
|
+
*/
|
|
51
|
+
context.getSourceCode().ast.body, '@atlaskit/primitives');
|
|
43
52
|
var isXcssImported = importDeclarations.some(function (importDeclaration) {
|
|
44
53
|
return ast.Import.containsNamedSpecifier(importDeclaration, 'xcss');
|
|
45
54
|
});
|