@atlaskit/eslint-plugin-ui-styling-standard 1.4.3 → 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 +8 -0
- package/dist/cjs/rules/no-global-styles/index.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/walk-css-map.js +1 -1
- package/dist/cjs/rules/no-unsafe-values/utils.js +1 -0
- package/dist/cjs/rules/use-compiled/index.js +1 -0
- package/dist/cjs/rules/use-compiled/is-safe.js +3 -0
- package/dist/es2019/rules/no-global-styles/index.js +1 -1
- package/dist/es2019/rules/no-unsafe-selectors/walk-css-map.js +1 -1
- package/dist/es2019/rules/no-unsafe-values/utils.js +1 -0
- package/dist/es2019/rules/use-compiled/index.js +1 -0
- package/dist/es2019/rules/use-compiled/is-safe.js +3 -0
- package/dist/esm/rules/no-global-styles/index.js +1 -1
- package/dist/esm/rules/no-unsafe-selectors/walk-css-map.js +1 -1
- package/dist/esm/rules/no-unsafe-values/utils.js +1 -0
- package/dist/esm/rules/use-compiled/index.js +1 -0
- package/dist/esm/rules/use-compiled/is-safe.js +3 -0
- package/dist/types/index.codegen.d.ts +348 -4
- 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/utils/create-rule-with-typed-config.d.ts +1 -1
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 1.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`23bcc5bbc9cee`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/23bcc5bbc9cee) -
|
|
8
|
+
Internal changes to how border radius is applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 1.4.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -54,7 +54,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
54
54
|
var _loop = function _loop() {
|
|
55
55
|
var importName = _step.value;
|
|
56
56
|
var specifier = node.specifiers.filter(isImportSpecifier).find(function (specifier) {
|
|
57
|
-
return specifier.imported.name === importName;
|
|
57
|
+
return 'name' in specifier.imported && specifier.imported.name === importName;
|
|
58
58
|
});
|
|
59
59
|
if (specifier) {
|
|
60
60
|
context.report({
|
|
@@ -22,7 +22,7 @@ function walkCssMap(_ref) {
|
|
|
22
22
|
return node.type === 'ImportDeclaration' && importSources.includes(node.source.value);
|
|
23
23
|
});
|
|
24
24
|
var specifier = importDeclaration === null || importDeclaration === void 0 ? void 0 : importDeclaration.specifiers.find(function (specifier) {
|
|
25
|
-
return specifier.type === 'ImportSpecifier' && specifier.imported.name === 'cssMap';
|
|
25
|
+
return specifier.type === 'ImportSpecifier' && 'name' in specifier.imported && specifier.imported.name === 'cssMap';
|
|
26
26
|
});
|
|
27
27
|
if (!specifier) {
|
|
28
28
|
return;
|
|
@@ -310,6 +310,7 @@ var Linter = exports.Linter = /*#__PURE__*/function () {
|
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
if (value.type === 'BinaryExpression') {
|
|
313
|
+
// @ts-ignore -- this needs to be `ts-ignore` because this only errors in jira's typechecking due to update, not platform's
|
|
313
314
|
this.lintValue(value.left);
|
|
314
315
|
this.lintValue(value.right);
|
|
315
316
|
return;
|
|
@@ -244,6 +244,7 @@ function fixImport(_ref4) {
|
|
|
244
244
|
})();
|
|
245
245
|
}
|
|
246
246
|
function buildImportDeclaration(specifiers, source) {
|
|
247
|
+
// @ts-ignore - this needs to be `ts-ignore` because this only errors in jira's typechecking due to update, not platform's
|
|
247
248
|
return "".concat((0, _eslintCodemodUtils.importDeclaration)({
|
|
248
249
|
specifiers: specifiers,
|
|
249
250
|
source: (0, _eslintCodemodUtils.literal)(source)
|
|
@@ -14,6 +14,9 @@ function isSafeUsage(_ref) {
|
|
|
14
14
|
var context = _ref.context,
|
|
15
15
|
specifier = _ref.specifier,
|
|
16
16
|
supportedImports = _ref.supportedImports;
|
|
17
|
+
if (!('name' in specifier.imported)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
17
20
|
var importName = specifier.imported.name;
|
|
18
21
|
if (!supportedImports.has(importName)) {
|
|
19
22
|
return false;
|
|
@@ -38,7 +38,7 @@ export const rule = createLintRule({
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
for (const importName of restrictedImports[importSource]) {
|
|
41
|
-
const specifier = node.specifiers.filter(isImportSpecifier).find(specifier => specifier.imported.name === importName);
|
|
41
|
+
const specifier = node.specifiers.filter(isImportSpecifier).find(specifier => 'name' in specifier.imported && specifier.imported.name === importName);
|
|
42
42
|
if (specifier) {
|
|
43
43
|
context.report({
|
|
44
44
|
node: specifier,
|
|
@@ -12,7 +12,7 @@ export function walkCssMap({
|
|
|
12
12
|
}) {
|
|
13
13
|
const program = getSourceCode(context).ast;
|
|
14
14
|
const importDeclaration = program.body.find(node => node.type === 'ImportDeclaration' && importSources.includes(node.source.value));
|
|
15
|
-
const specifier = importDeclaration === null || importDeclaration === void 0 ? void 0 : importDeclaration.specifiers.find(specifier => specifier.type === 'ImportSpecifier' && specifier.imported.name === 'cssMap');
|
|
15
|
+
const specifier = importDeclaration === null || importDeclaration === void 0 ? void 0 : importDeclaration.specifiers.find(specifier => specifier.type === 'ImportSpecifier' && 'name' in specifier.imported && specifier.imported.name === 'cssMap');
|
|
16
16
|
if (!specifier) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
@@ -249,6 +249,7 @@ export class Linter {
|
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
251
|
if (value.type === 'BinaryExpression') {
|
|
252
|
+
// @ts-ignore -- this needs to be `ts-ignore` because this only errors in jira's typechecking due to update, not platform's
|
|
252
253
|
this.lintValue(value.left);
|
|
253
254
|
this.lintValue(value.right);
|
|
254
255
|
return;
|
|
@@ -177,6 +177,7 @@ function* fixImport({
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
function buildImportDeclaration(specifiers, source) {
|
|
180
|
+
// @ts-ignore - this needs to be `ts-ignore` because this only errors in jira's typechecking due to update, not platform's
|
|
180
181
|
return `${importDeclaration({
|
|
181
182
|
specifiers,
|
|
182
183
|
source: literal(source)
|
|
@@ -48,7 +48,7 @@ export var rule = createLintRule({
|
|
|
48
48
|
var _loop = function _loop() {
|
|
49
49
|
var importName = _step.value;
|
|
50
50
|
var specifier = node.specifiers.filter(isImportSpecifier).find(function (specifier) {
|
|
51
|
-
return specifier.imported.name === importName;
|
|
51
|
+
return 'name' in specifier.imported && specifier.imported.name === importName;
|
|
52
52
|
});
|
|
53
53
|
if (specifier) {
|
|
54
54
|
context.report({
|
|
@@ -15,7 +15,7 @@ export function walkCssMap(_ref) {
|
|
|
15
15
|
return node.type === 'ImportDeclaration' && importSources.includes(node.source.value);
|
|
16
16
|
});
|
|
17
17
|
var specifier = importDeclaration === null || importDeclaration === void 0 ? void 0 : importDeclaration.specifiers.find(function (specifier) {
|
|
18
|
-
return specifier.type === 'ImportSpecifier' && specifier.imported.name === 'cssMap';
|
|
18
|
+
return specifier.type === 'ImportSpecifier' && 'name' in specifier.imported && specifier.imported.name === 'cssMap';
|
|
19
19
|
});
|
|
20
20
|
if (!specifier) {
|
|
21
21
|
return;
|
|
@@ -303,6 +303,7 @@ export var Linter = /*#__PURE__*/function () {
|
|
|
303
303
|
return;
|
|
304
304
|
}
|
|
305
305
|
if (value.type === 'BinaryExpression') {
|
|
306
|
+
// @ts-ignore -- this needs to be `ts-ignore` because this only errors in jira's typechecking due to update, not platform's
|
|
306
307
|
this.lintValue(value.left);
|
|
307
308
|
this.lintValue(value.right);
|
|
308
309
|
return;
|
|
@@ -237,6 +237,7 @@ function fixImport(_ref4) {
|
|
|
237
237
|
})();
|
|
238
238
|
}
|
|
239
239
|
function buildImportDeclaration(specifiers, source) {
|
|
240
|
+
// @ts-ignore - this needs to be `ts-ignore` because this only errors in jira's typechecking due to update, not platform's
|
|
240
241
|
return "".concat(importDeclaration({
|
|
241
242
|
specifiers: specifiers,
|
|
242
243
|
source: literal(source)
|
|
@@ -5,6 +5,9 @@ export function isSafeUsage(_ref) {
|
|
|
5
5
|
var context = _ref.context,
|
|
6
6
|
specifier = _ref.specifier,
|
|
7
7
|
supportedImports = _ref.supportedImports;
|
|
8
|
+
if (!('name' in specifier.imported)) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
8
11
|
var importName = specifier.imported.name;
|
|
9
12
|
if (!supportedImports.has(importName)) {
|
|
10
13
|
return false;
|
|
@@ -60,7 +60,179 @@ export declare const plugin: {
|
|
|
60
60
|
};
|
|
61
61
|
readonly 'flat/all': {
|
|
62
62
|
readonly plugins: {
|
|
63
|
-
readonly '@atlaskit/ui-styling-standard':
|
|
63
|
+
readonly '@atlaskit/ui-styling-standard': {
|
|
64
|
+
readonly meta: {
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly version: string;
|
|
67
|
+
};
|
|
68
|
+
readonly rules: {
|
|
69
|
+
'atlaskit-theme': import("eslint").Rule.RuleModule;
|
|
70
|
+
'convert-props-syntax': import("eslint").Rule.RuleModule;
|
|
71
|
+
'enforce-style-prop': import("eslint").Rule.RuleModule;
|
|
72
|
+
'local-cx-xcss': import("eslint").Rule.RuleModule;
|
|
73
|
+
'no-array-arguments': import("eslint").Rule.RuleModule;
|
|
74
|
+
'no-classname-prop': import("eslint").Rule.RuleModule;
|
|
75
|
+
'no-container-queries': import("eslint").Rule.RuleModule;
|
|
76
|
+
'no-dynamic-styles': import("eslint").Rule.RuleModule;
|
|
77
|
+
'no-exported-styles': import("eslint").Rule.RuleModule;
|
|
78
|
+
'no-global-styles': import("eslint").Rule.RuleModule;
|
|
79
|
+
'no-important-styles': import("eslint").Rule.RuleModule;
|
|
80
|
+
'no-imported-style-values': import("eslint").Rule.RuleModule;
|
|
81
|
+
'no-nested-selectors': import("eslint").Rule.RuleModule;
|
|
82
|
+
'no-styled': import("eslint").Rule.RuleModule;
|
|
83
|
+
'no-unsafe-selectors': import("eslint").Rule.RuleModule;
|
|
84
|
+
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
85
|
+
'use-compiled': import("eslint").Rule.RuleModule;
|
|
86
|
+
};
|
|
87
|
+
readonly configs: {
|
|
88
|
+
readonly all: {
|
|
89
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
90
|
+
readonly rules: {
|
|
91
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
92
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
93
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
94
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
95
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
96
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
97
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
98
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
99
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
100
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
101
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
102
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
103
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
104
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
105
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
106
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
107
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
108
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
109
|
+
readonly excludeReactComponents: true;
|
|
110
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
111
|
+
}];
|
|
112
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
113
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
114
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
115
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
116
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
117
|
+
}];
|
|
118
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
119
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
120
|
+
}];
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly 'flat/all': {
|
|
124
|
+
readonly plugins: {
|
|
125
|
+
readonly '@atlaskit/ui-styling-standard': /*elided*/ any;
|
|
126
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
127
|
+
};
|
|
128
|
+
readonly rules: {
|
|
129
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
130
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
131
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
132
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
133
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
134
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
135
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
136
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
137
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
138
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
139
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
140
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
141
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
142
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
143
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
144
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
145
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
146
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
147
|
+
readonly excludeReactComponents: true;
|
|
148
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
149
|
+
}];
|
|
150
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
151
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
152
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
153
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
154
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
155
|
+
}];
|
|
156
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
157
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
158
|
+
}];
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly recommended: {
|
|
162
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
163
|
+
readonly rules: {
|
|
164
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
165
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
166
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
167
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
168
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
169
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
170
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
171
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
172
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
173
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
174
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
175
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
176
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
177
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
178
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
179
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
180
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
181
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
182
|
+
readonly excludeReactComponents: true;
|
|
183
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
184
|
+
}];
|
|
185
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
186
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
187
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
188
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
189
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
190
|
+
}];
|
|
191
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
192
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
193
|
+
}];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly 'flat/recommended': {
|
|
197
|
+
readonly plugins: {
|
|
198
|
+
readonly '@atlaskit/ui-styling-standard': /*elided*/ any;
|
|
199
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
200
|
+
};
|
|
201
|
+
readonly rules: {
|
|
202
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
203
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
204
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
205
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
206
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
207
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
208
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
209
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
210
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
211
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
212
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
213
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
214
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
215
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
216
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
217
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
218
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
219
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
220
|
+
readonly excludeReactComponents: true;
|
|
221
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
222
|
+
}];
|
|
223
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
224
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
225
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
226
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
227
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
228
|
+
}];
|
|
229
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
230
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
231
|
+
}];
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
64
236
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
65
237
|
};
|
|
66
238
|
readonly rules: {
|
|
@@ -133,7 +305,179 @@ export declare const plugin: {
|
|
|
133
305
|
};
|
|
134
306
|
readonly 'flat/recommended': {
|
|
135
307
|
readonly plugins: {
|
|
136
|
-
readonly '@atlaskit/ui-styling-standard':
|
|
308
|
+
readonly '@atlaskit/ui-styling-standard': {
|
|
309
|
+
readonly meta: {
|
|
310
|
+
readonly name: string;
|
|
311
|
+
readonly version: string;
|
|
312
|
+
};
|
|
313
|
+
readonly rules: {
|
|
314
|
+
'atlaskit-theme': import("eslint").Rule.RuleModule;
|
|
315
|
+
'convert-props-syntax': import("eslint").Rule.RuleModule;
|
|
316
|
+
'enforce-style-prop': import("eslint").Rule.RuleModule;
|
|
317
|
+
'local-cx-xcss': import("eslint").Rule.RuleModule;
|
|
318
|
+
'no-array-arguments': import("eslint").Rule.RuleModule;
|
|
319
|
+
'no-classname-prop': import("eslint").Rule.RuleModule;
|
|
320
|
+
'no-container-queries': import("eslint").Rule.RuleModule;
|
|
321
|
+
'no-dynamic-styles': import("eslint").Rule.RuleModule;
|
|
322
|
+
'no-exported-styles': import("eslint").Rule.RuleModule;
|
|
323
|
+
'no-global-styles': import("eslint").Rule.RuleModule;
|
|
324
|
+
'no-important-styles': import("eslint").Rule.RuleModule;
|
|
325
|
+
'no-imported-style-values': import("eslint").Rule.RuleModule;
|
|
326
|
+
'no-nested-selectors': import("eslint").Rule.RuleModule;
|
|
327
|
+
'no-styled': import("eslint").Rule.RuleModule;
|
|
328
|
+
'no-unsafe-selectors': import("eslint").Rule.RuleModule;
|
|
329
|
+
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
330
|
+
'use-compiled': import("eslint").Rule.RuleModule;
|
|
331
|
+
};
|
|
332
|
+
readonly configs: {
|
|
333
|
+
readonly all: {
|
|
334
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
335
|
+
readonly rules: {
|
|
336
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
337
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
338
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
339
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
340
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
341
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
342
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
343
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
344
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
345
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
346
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
347
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
348
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
349
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
350
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
351
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
352
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
353
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
354
|
+
readonly excludeReactComponents: true;
|
|
355
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
356
|
+
}];
|
|
357
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
358
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
359
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
360
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
361
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
362
|
+
}];
|
|
363
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
364
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
365
|
+
}];
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
readonly 'flat/all': {
|
|
369
|
+
readonly plugins: {
|
|
370
|
+
readonly '@atlaskit/ui-styling-standard': /*elided*/ any;
|
|
371
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
372
|
+
};
|
|
373
|
+
readonly rules: {
|
|
374
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
375
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
376
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
377
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
378
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
379
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
380
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
381
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
382
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
383
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
384
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
385
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
386
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
387
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
388
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
389
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
390
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
391
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
392
|
+
readonly excludeReactComponents: true;
|
|
393
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
394
|
+
}];
|
|
395
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
396
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
397
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
398
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
399
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
400
|
+
}];
|
|
401
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
402
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
403
|
+
}];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
readonly recommended: {
|
|
407
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
408
|
+
readonly rules: {
|
|
409
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
410
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
411
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
412
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
413
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
414
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
415
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
416
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
417
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
418
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
419
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
420
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
421
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
422
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
423
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
424
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
425
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
426
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
427
|
+
readonly excludeReactComponents: true;
|
|
428
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
429
|
+
}];
|
|
430
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
431
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
432
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
433
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
434
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
435
|
+
}];
|
|
436
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
437
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
438
|
+
}];
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly 'flat/recommended': {
|
|
442
|
+
readonly plugins: {
|
|
443
|
+
readonly '@atlaskit/ui-styling-standard': /*elided*/ any;
|
|
444
|
+
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
445
|
+
};
|
|
446
|
+
readonly rules: {
|
|
447
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
448
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
449
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
450
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
451
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
452
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
453
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
454
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
455
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
456
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
457
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
458
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
459
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
460
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
461
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
462
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
463
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
464
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
465
|
+
readonly excludeReactComponents: true;
|
|
466
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
467
|
+
}];
|
|
468
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
469
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
470
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
471
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
472
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
473
|
+
}];
|
|
474
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
475
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
476
|
+
}];
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
137
481
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
138
482
|
};
|
|
139
483
|
readonly rules: {
|
|
@@ -234,7 +578,7 @@ export declare const configs: {
|
|
|
234
578
|
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
235
579
|
'use-compiled': import("eslint").Rule.RuleModule;
|
|
236
580
|
};
|
|
237
|
-
readonly configs: any;
|
|
581
|
+
readonly configs: /*elided*/ any;
|
|
238
582
|
};
|
|
239
583
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
240
584
|
};
|
|
@@ -332,7 +676,7 @@ export declare const configs: {
|
|
|
332
676
|
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
333
677
|
'use-compiled': import("eslint").Rule.RuleModule;
|
|
334
678
|
};
|
|
335
|
-
readonly configs: any;
|
|
679
|
+
readonly configs: /*elided*/ any;
|
|
336
680
|
};
|
|
337
681
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
338
682
|
};
|
|
@@ -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;
|
|
@@ -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",
|
|
@@ -50,7 +50,7 @@
|
|
|
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": {
|
|
@@ -64,8 +64,7 @@
|
|
|
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"
|