@atlaskit/eslint-plugin-ui-styling-standard 1.4.2 → 1.4.4
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 +16 -0
- package/README.md +1 -1
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/presets/all-flat.codegen.js +1 -2
- package/dist/cjs/presets/recommended-flat.codegen.js +1 -2
- package/dist/cjs/rules/no-array-arguments/index.js +1 -1
- package/dist/cjs/rules/no-container-queries/index.js +0 -2
- package/dist/cjs/rules/no-dynamic-styles/index.js +1 -1
- package/dist/cjs/rules/no-exported-styles/index.js +0 -2
- package/dist/cjs/rules/no-global-styles/index.js +1 -1
- package/dist/cjs/rules/no-imported-style-values/index.js +1 -2
- package/dist/cjs/rules/no-nested-selectors/index.js +1 -2
- package/dist/cjs/rules/no-unsafe-selectors/walk-css-map.js +1 -1
- package/dist/cjs/rules/no-unsafe-values/index.js +0 -2
- package/dist/cjs/rules/no-unsafe-values/messages.js +2 -2
- package/dist/cjs/rules/no-unsafe-values/utils.js +1 -0
- package/dist/cjs/rules/use-compiled/index.js +5 -3
- package/dist/cjs/rules/use-compiled/is-safe.js +3 -0
- package/dist/es2019/rules/no-array-arguments/index.js +0 -2
- package/dist/es2019/rules/no-container-queries/index.js +0 -2
- package/dist/es2019/rules/no-dynamic-styles/index.js +0 -1
- package/dist/es2019/rules/no-exported-styles/index.js +0 -2
- package/dist/es2019/rules/no-global-styles/index.js +1 -1
- package/dist/es2019/rules/no-imported-style-values/index.js +0 -4
- package/dist/es2019/rules/no-unsafe-selectors/walk-css-map.js +1 -1
- package/dist/es2019/rules/no-unsafe-values/index.js +0 -2
- package/dist/es2019/rules/no-unsafe-values/utils.js +1 -0
- package/dist/es2019/rules/use-compiled/index.js +5 -3
- package/dist/es2019/rules/use-compiled/is-safe.js +3 -0
- package/dist/esm/rules/no-array-arguments/index.js +0 -2
- package/dist/esm/rules/no-container-queries/index.js +0 -2
- package/dist/esm/rules/no-dynamic-styles/index.js +0 -1
- package/dist/esm/rules/no-exported-styles/index.js +0 -2
- package/dist/esm/rules/no-global-styles/index.js +1 -1
- package/dist/esm/rules/no-imported-style-values/index.js +0 -4
- package/dist/esm/rules/no-unsafe-selectors/walk-css-map.js +1 -1
- package/dist/esm/rules/no-unsafe-values/index.js +0 -2
- package/dist/esm/rules/no-unsafe-values/messages.js +2 -2
- package/dist/esm/rules/no-unsafe-values/utils.js +1 -0
- package/dist/esm/rules/use-compiled/index.js +5 -3
- package/dist/esm/rules/use-compiled/is-safe.js +3 -0
- package/dist/types/index.codegen.d.ts +348 -4
- package/dist/types/rules/no-unsafe-values/utils.d.ts +1 -1
- package/dist/types/rules/utils/create-rule-with-typed-config.d.ts +1 -1
- package/dist/types-ts4.5/index.codegen.d.ts +526 -2
- package/dist/types-ts4.5/rules/no-unsafe-values/utils.d.ts +1 -1
- package/dist/types-ts4.5/rules/utils/create-rule-with-typed-config.d.ts +1 -1
- package/package.json +8 -9
|
@@ -84,7 +84,269 @@ export declare const plugin: {
|
|
|
84
84
|
};
|
|
85
85
|
readonly 'flat/all': {
|
|
86
86
|
readonly plugins: {
|
|
87
|
-
readonly '@atlaskit/ui-styling-standard':
|
|
87
|
+
readonly '@atlaskit/ui-styling-standard': {
|
|
88
|
+
readonly meta: {
|
|
89
|
+
readonly name: string;
|
|
90
|
+
readonly version: string;
|
|
91
|
+
};
|
|
92
|
+
readonly rules: {
|
|
93
|
+
'atlaskit-theme': import("eslint").Rule.RuleModule;
|
|
94
|
+
'convert-props-syntax': import("eslint").Rule.RuleModule;
|
|
95
|
+
'enforce-style-prop': import("eslint").Rule.RuleModule;
|
|
96
|
+
'local-cx-xcss': import("eslint").Rule.RuleModule;
|
|
97
|
+
'no-array-arguments': import("eslint").Rule.RuleModule;
|
|
98
|
+
'no-classname-prop': import("eslint").Rule.RuleModule;
|
|
99
|
+
'no-container-queries': import("eslint").Rule.RuleModule;
|
|
100
|
+
'no-dynamic-styles': import("eslint").Rule.RuleModule;
|
|
101
|
+
'no-exported-styles': import("eslint").Rule.RuleModule;
|
|
102
|
+
'no-global-styles': import("eslint").Rule.RuleModule;
|
|
103
|
+
'no-important-styles': import("eslint").Rule.RuleModule;
|
|
104
|
+
'no-imported-style-values': import("eslint").Rule.RuleModule;
|
|
105
|
+
'no-nested-selectors': import("eslint").Rule.RuleModule;
|
|
106
|
+
'no-styled': import("eslint").Rule.RuleModule;
|
|
107
|
+
'no-unsafe-selectors': import("eslint").Rule.RuleModule;
|
|
108
|
+
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
109
|
+
'use-compiled': import("eslint").Rule.RuleModule;
|
|
110
|
+
};
|
|
111
|
+
readonly configs: {
|
|
112
|
+
readonly all: {
|
|
113
|
+
readonly plugins: readonly [
|
|
114
|
+
"@atlaskit/ui-styling-standard",
|
|
115
|
+
"@atlaskit/design-system"
|
|
116
|
+
];
|
|
117
|
+
readonly rules: {
|
|
118
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
119
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
120
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
121
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
122
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
123
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
124
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
125
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
126
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
127
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
128
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
129
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
130
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
131
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
132
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
133
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
134
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
135
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
136
|
+
"error",
|
|
137
|
+
{
|
|
138
|
+
readonly excludeReactComponents: true;
|
|
139
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
140
|
+
}
|
|
141
|
+
];
|
|
142
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
143
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
144
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
145
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
146
|
+
"error",
|
|
147
|
+
{
|
|
148
|
+
readonly importSources: readonly [
|
|
149
|
+
"@compiled/react",
|
|
150
|
+
"@atlaskit/css",
|
|
151
|
+
"@emotion/core",
|
|
152
|
+
"@emotion/react",
|
|
153
|
+
"@emotion/styled",
|
|
154
|
+
"styled-components"
|
|
155
|
+
];
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
159
|
+
"error",
|
|
160
|
+
{
|
|
161
|
+
readonly allowedFunctionCalls: readonly [
|
|
162
|
+
readonly [
|
|
163
|
+
"@atlaskit/tokens",
|
|
164
|
+
"token"
|
|
165
|
+
]
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
];
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
readonly 'flat/all': {
|
|
172
|
+
readonly plugins: {
|
|
173
|
+
readonly '@atlaskit/ui-styling-standard': any;
|
|
174
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
175
|
+
};
|
|
176
|
+
readonly rules: {
|
|
177
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
178
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
179
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
180
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
181
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
182
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
183
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
184
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
185
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
186
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
187
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
188
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
189
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
190
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
191
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
192
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
193
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
194
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
195
|
+
"error",
|
|
196
|
+
{
|
|
197
|
+
readonly excludeReactComponents: true;
|
|
198
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
199
|
+
}
|
|
200
|
+
];
|
|
201
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
202
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
203
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
204
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
205
|
+
"error",
|
|
206
|
+
{
|
|
207
|
+
readonly importSources: readonly [
|
|
208
|
+
"@compiled/react",
|
|
209
|
+
"@atlaskit/css",
|
|
210
|
+
"@emotion/core",
|
|
211
|
+
"@emotion/react",
|
|
212
|
+
"@emotion/styled",
|
|
213
|
+
"styled-components"
|
|
214
|
+
];
|
|
215
|
+
}
|
|
216
|
+
];
|
|
217
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
218
|
+
"error",
|
|
219
|
+
{
|
|
220
|
+
readonly allowedFunctionCalls: readonly [
|
|
221
|
+
readonly [
|
|
222
|
+
"@atlaskit/tokens",
|
|
223
|
+
"token"
|
|
224
|
+
]
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
];
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly recommended: {
|
|
231
|
+
readonly plugins: readonly [
|
|
232
|
+
"@atlaskit/ui-styling-standard",
|
|
233
|
+
"@atlaskit/design-system"
|
|
234
|
+
];
|
|
235
|
+
readonly rules: {
|
|
236
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
237
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
238
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
239
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
240
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
241
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
242
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
243
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
244
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
245
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
246
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
247
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
248
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
249
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
250
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
251
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
252
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
253
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
254
|
+
"error",
|
|
255
|
+
{
|
|
256
|
+
readonly excludeReactComponents: true;
|
|
257
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
258
|
+
}
|
|
259
|
+
];
|
|
260
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
261
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
262
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
263
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
264
|
+
"error",
|
|
265
|
+
{
|
|
266
|
+
readonly importSources: readonly [
|
|
267
|
+
"@compiled/react",
|
|
268
|
+
"@atlaskit/css",
|
|
269
|
+
"@emotion/core",
|
|
270
|
+
"@emotion/react",
|
|
271
|
+
"@emotion/styled",
|
|
272
|
+
"styled-components"
|
|
273
|
+
];
|
|
274
|
+
}
|
|
275
|
+
];
|
|
276
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
277
|
+
"error",
|
|
278
|
+
{
|
|
279
|
+
readonly allowedFunctionCalls: readonly [
|
|
280
|
+
readonly [
|
|
281
|
+
"@atlaskit/tokens",
|
|
282
|
+
"token"
|
|
283
|
+
]
|
|
284
|
+
];
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
readonly 'flat/recommended': {
|
|
290
|
+
readonly plugins: {
|
|
291
|
+
readonly '@atlaskit/ui-styling-standard': any;
|
|
292
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
293
|
+
};
|
|
294
|
+
readonly rules: {
|
|
295
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
296
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
297
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
298
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
299
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
300
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
301
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
302
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
303
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
304
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
305
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
306
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
307
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
308
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
309
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
310
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
311
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
312
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
313
|
+
"error",
|
|
314
|
+
{
|
|
315
|
+
readonly excludeReactComponents: true;
|
|
316
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
317
|
+
}
|
|
318
|
+
];
|
|
319
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
320
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
321
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
322
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
323
|
+
"error",
|
|
324
|
+
{
|
|
325
|
+
readonly importSources: readonly [
|
|
326
|
+
"@compiled/react",
|
|
327
|
+
"@atlaskit/css",
|
|
328
|
+
"@emotion/core",
|
|
329
|
+
"@emotion/react",
|
|
330
|
+
"@emotion/styled",
|
|
331
|
+
"styled-components"
|
|
332
|
+
];
|
|
333
|
+
}
|
|
334
|
+
];
|
|
335
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
336
|
+
"error",
|
|
337
|
+
{
|
|
338
|
+
readonly allowedFunctionCalls: readonly [
|
|
339
|
+
readonly [
|
|
340
|
+
"@atlaskit/tokens",
|
|
341
|
+
"token"
|
|
342
|
+
]
|
|
343
|
+
];
|
|
344
|
+
}
|
|
345
|
+
];
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
88
350
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
89
351
|
};
|
|
90
352
|
readonly rules: {
|
|
@@ -202,7 +464,269 @@ export declare const plugin: {
|
|
|
202
464
|
};
|
|
203
465
|
readonly 'flat/recommended': {
|
|
204
466
|
readonly plugins: {
|
|
205
|
-
readonly '@atlaskit/ui-styling-standard':
|
|
467
|
+
readonly '@atlaskit/ui-styling-standard': {
|
|
468
|
+
readonly meta: {
|
|
469
|
+
readonly name: string;
|
|
470
|
+
readonly version: string;
|
|
471
|
+
};
|
|
472
|
+
readonly rules: {
|
|
473
|
+
'atlaskit-theme': import("eslint").Rule.RuleModule;
|
|
474
|
+
'convert-props-syntax': import("eslint").Rule.RuleModule;
|
|
475
|
+
'enforce-style-prop': import("eslint").Rule.RuleModule;
|
|
476
|
+
'local-cx-xcss': import("eslint").Rule.RuleModule;
|
|
477
|
+
'no-array-arguments': import("eslint").Rule.RuleModule;
|
|
478
|
+
'no-classname-prop': import("eslint").Rule.RuleModule;
|
|
479
|
+
'no-container-queries': import("eslint").Rule.RuleModule;
|
|
480
|
+
'no-dynamic-styles': import("eslint").Rule.RuleModule;
|
|
481
|
+
'no-exported-styles': import("eslint").Rule.RuleModule;
|
|
482
|
+
'no-global-styles': import("eslint").Rule.RuleModule;
|
|
483
|
+
'no-important-styles': import("eslint").Rule.RuleModule;
|
|
484
|
+
'no-imported-style-values': import("eslint").Rule.RuleModule;
|
|
485
|
+
'no-nested-selectors': import("eslint").Rule.RuleModule;
|
|
486
|
+
'no-styled': import("eslint").Rule.RuleModule;
|
|
487
|
+
'no-unsafe-selectors': import("eslint").Rule.RuleModule;
|
|
488
|
+
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
489
|
+
'use-compiled': import("eslint").Rule.RuleModule;
|
|
490
|
+
};
|
|
491
|
+
readonly configs: {
|
|
492
|
+
readonly all: {
|
|
493
|
+
readonly plugins: readonly [
|
|
494
|
+
"@atlaskit/ui-styling-standard",
|
|
495
|
+
"@atlaskit/design-system"
|
|
496
|
+
];
|
|
497
|
+
readonly rules: {
|
|
498
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
499
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
500
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
501
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
502
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
503
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
504
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
505
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
506
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
507
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
508
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
509
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
510
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
511
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
512
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
513
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
514
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
515
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
516
|
+
"error",
|
|
517
|
+
{
|
|
518
|
+
readonly excludeReactComponents: true;
|
|
519
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
520
|
+
}
|
|
521
|
+
];
|
|
522
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
523
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
524
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
525
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
526
|
+
"error",
|
|
527
|
+
{
|
|
528
|
+
readonly importSources: readonly [
|
|
529
|
+
"@compiled/react",
|
|
530
|
+
"@atlaskit/css",
|
|
531
|
+
"@emotion/core",
|
|
532
|
+
"@emotion/react",
|
|
533
|
+
"@emotion/styled",
|
|
534
|
+
"styled-components"
|
|
535
|
+
];
|
|
536
|
+
}
|
|
537
|
+
];
|
|
538
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
539
|
+
"error",
|
|
540
|
+
{
|
|
541
|
+
readonly allowedFunctionCalls: readonly [
|
|
542
|
+
readonly [
|
|
543
|
+
"@atlaskit/tokens",
|
|
544
|
+
"token"
|
|
545
|
+
]
|
|
546
|
+
];
|
|
547
|
+
}
|
|
548
|
+
];
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
readonly 'flat/all': {
|
|
552
|
+
readonly plugins: {
|
|
553
|
+
readonly '@atlaskit/ui-styling-standard': any;
|
|
554
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
555
|
+
};
|
|
556
|
+
readonly rules: {
|
|
557
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
558
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
559
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
560
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
561
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
562
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
563
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
564
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
565
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
566
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
567
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
568
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
569
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
570
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
571
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
572
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
573
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
574
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
575
|
+
"error",
|
|
576
|
+
{
|
|
577
|
+
readonly excludeReactComponents: true;
|
|
578
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
579
|
+
}
|
|
580
|
+
];
|
|
581
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
582
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
583
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
584
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
585
|
+
"error",
|
|
586
|
+
{
|
|
587
|
+
readonly importSources: readonly [
|
|
588
|
+
"@compiled/react",
|
|
589
|
+
"@atlaskit/css",
|
|
590
|
+
"@emotion/core",
|
|
591
|
+
"@emotion/react",
|
|
592
|
+
"@emotion/styled",
|
|
593
|
+
"styled-components"
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
];
|
|
597
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
598
|
+
"error",
|
|
599
|
+
{
|
|
600
|
+
readonly allowedFunctionCalls: readonly [
|
|
601
|
+
readonly [
|
|
602
|
+
"@atlaskit/tokens",
|
|
603
|
+
"token"
|
|
604
|
+
]
|
|
605
|
+
];
|
|
606
|
+
}
|
|
607
|
+
];
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly recommended: {
|
|
611
|
+
readonly plugins: readonly [
|
|
612
|
+
"@atlaskit/ui-styling-standard",
|
|
613
|
+
"@atlaskit/design-system"
|
|
614
|
+
];
|
|
615
|
+
readonly rules: {
|
|
616
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
617
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
618
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
619
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
620
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
621
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
622
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
623
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
624
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
625
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
626
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
627
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
628
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
629
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
630
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
631
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
632
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
633
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
634
|
+
"error",
|
|
635
|
+
{
|
|
636
|
+
readonly excludeReactComponents: true;
|
|
637
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
638
|
+
}
|
|
639
|
+
];
|
|
640
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
641
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
642
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
643
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
644
|
+
"error",
|
|
645
|
+
{
|
|
646
|
+
readonly importSources: readonly [
|
|
647
|
+
"@compiled/react",
|
|
648
|
+
"@atlaskit/css",
|
|
649
|
+
"@emotion/core",
|
|
650
|
+
"@emotion/react",
|
|
651
|
+
"@emotion/styled",
|
|
652
|
+
"styled-components"
|
|
653
|
+
];
|
|
654
|
+
}
|
|
655
|
+
];
|
|
656
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
657
|
+
"error",
|
|
658
|
+
{
|
|
659
|
+
readonly allowedFunctionCalls: readonly [
|
|
660
|
+
readonly [
|
|
661
|
+
"@atlaskit/tokens",
|
|
662
|
+
"token"
|
|
663
|
+
]
|
|
664
|
+
];
|
|
665
|
+
}
|
|
666
|
+
];
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
readonly 'flat/recommended': {
|
|
670
|
+
readonly plugins: {
|
|
671
|
+
readonly '@atlaskit/ui-styling-standard': any;
|
|
672
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
673
|
+
};
|
|
674
|
+
readonly rules: {
|
|
675
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
676
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
677
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
678
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
679
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
680
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
681
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
682
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
683
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
684
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
685
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
686
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
687
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
688
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
689
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
690
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
691
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
692
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
|
|
693
|
+
"error",
|
|
694
|
+
{
|
|
695
|
+
readonly excludeReactComponents: true;
|
|
696
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
697
|
+
}
|
|
698
|
+
];
|
|
699
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
700
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
701
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
702
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
|
|
703
|
+
"error",
|
|
704
|
+
{
|
|
705
|
+
readonly importSources: readonly [
|
|
706
|
+
"@compiled/react",
|
|
707
|
+
"@atlaskit/css",
|
|
708
|
+
"@emotion/core",
|
|
709
|
+
"@emotion/react",
|
|
710
|
+
"@emotion/styled",
|
|
711
|
+
"styled-components"
|
|
712
|
+
];
|
|
713
|
+
}
|
|
714
|
+
];
|
|
715
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
|
|
716
|
+
"error",
|
|
717
|
+
{
|
|
718
|
+
readonly allowedFunctionCalls: readonly [
|
|
719
|
+
readonly [
|
|
720
|
+
"@atlaskit/tokens",
|
|
721
|
+
"token"
|
|
722
|
+
]
|
|
723
|
+
];
|
|
724
|
+
}
|
|
725
|
+
];
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
};
|
|
206
730
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
207
731
|
};
|
|
208
732
|
readonly rules: {
|
|
@@ -14,5 +14,5 @@ export interface LintRuleMeta<Schema extends JSONSchema> extends Omit<BaseLintRu
|
|
|
14
14
|
schema: Schema;
|
|
15
15
|
}
|
|
16
16
|
export declare const createLintRuleWithTypedConfig: <Schema extends JSONSchema & {
|
|
17
|
-
type:
|
|
17
|
+
type: "object";
|
|
18
18
|
}, Config = FromSchema<Schema>>(rule: LintRule<Schema, Config>) => Rule.RuleModule;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-ui-styling-standard",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "The eslint plugin to enforce and educate on Atlassian's UI Styling Standard",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"./package.json": "./package.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@atlaskit/eslint-plugin-design-system": "^13.
|
|
43
|
+
"@atlaskit/eslint-plugin-design-system": "^13.19.0",
|
|
44
44
|
"@atlaskit/eslint-utils": "^2.0.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@typescript-eslint/utils": "^7.1.0",
|
|
@@ -50,22 +50,21 @@
|
|
|
50
50
|
"esquery": "^1.5.0",
|
|
51
51
|
"estraverse": "^5.3.0",
|
|
52
52
|
"json-schema-to-ts": "^3.1.0",
|
|
53
|
-
"outdent": "^0.
|
|
53
|
+
"outdent": "^0.7.1",
|
|
54
54
|
"postcss-selector-parser": "^6.0.16"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@af/formatting": "
|
|
58
|
-
"@atlaskit/ds-lib": "^
|
|
59
|
-
"@atlassian/codegen": "
|
|
60
|
-
"@atlassian/ts-loader": "
|
|
57
|
+
"@af/formatting": "workspace:^",
|
|
58
|
+
"@atlaskit/ds-lib": "^5.0.0",
|
|
59
|
+
"@atlassian/codegen": "^0.1.0",
|
|
60
|
+
"@atlassian/ts-loader": "^0.1.0",
|
|
61
61
|
"@eslint/eslintrc": "^3.0.2",
|
|
62
62
|
"@types/eslint": "^8.56.6",
|
|
63
63
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
64
64
|
"@types/estraverse": "^5.1.7",
|
|
65
65
|
"@types/json-schema": "^7.0.15",
|
|
66
66
|
"eslint": "^8.57.0",
|
|
67
|
-
"lodash": "^4.17.21"
|
|
68
|
-
"typescript": "~5.4.2"
|
|
67
|
+
"lodash": "^4.17.21"
|
|
69
68
|
},
|
|
70
69
|
"scripts": {
|
|
71
70
|
"codegen": "run-ts ./scripts/codegen.tsx"
|