@atlaskit/eslint-plugin-ui-styling-standard 0.21.0 → 1.0.0
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 +15 -0
- package/README.md +2 -5
- package/dist/cjs/presets/all-flat.codegen.js +2 -11
- package/dist/cjs/presets/all.codegen.js +2 -9
- package/dist/cjs/presets/recommended-flat.codegen.js +2 -11
- package/dist/cjs/presets/recommended.codegen.js +2 -9
- package/dist/cjs/rules/enforce-style-prop/index.js +45 -17
- package/dist/cjs/rules/external-rules.js +0 -38
- package/dist/es2019/presets/all-flat.codegen.js +2 -11
- package/dist/es2019/presets/all.codegen.js +2 -9
- package/dist/es2019/presets/recommended-flat.codegen.js +2 -11
- package/dist/es2019/presets/recommended.codegen.js +2 -9
- package/dist/es2019/rules/enforce-style-prop/index.js +45 -17
- package/dist/es2019/rules/external-rules.js +0 -38
- package/dist/esm/presets/all-flat.codegen.js +2 -11
- package/dist/esm/presets/all.codegen.js +2 -9
- package/dist/esm/presets/recommended-flat.codegen.js +2 -11
- package/dist/esm/presets/recommended.codegen.js +2 -9
- package/dist/esm/rules/enforce-style-prop/index.js +45 -17
- package/dist/esm/rules/external-rules.js +0 -38
- package/dist/types/index.codegen.d.ts +4 -64
- package/dist/types/presets/all-flat.codegen.d.ts +1 -10
- package/dist/types/presets/all.codegen.d.ts +2 -9
- package/dist/types/presets/recommended-flat.codegen.d.ts +1 -10
- package/dist/types/presets/recommended.codegen.d.ts +2 -9
- package/dist/types-ts4.5/index.codegen.d.ts +4 -108
- package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +1 -15
- package/dist/types-ts4.5/presets/all.codegen.d.ts +2 -15
- package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +1 -15
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -15
- package/package.json +4 -4
|
@@ -61,28 +61,6 @@ export const externalRules = [{
|
|
|
61
61
|
recommended: true,
|
|
62
62
|
severity: 'error'
|
|
63
63
|
}
|
|
64
|
-
}, {
|
|
65
|
-
name: '@compiled/no-suppress-xcss',
|
|
66
|
-
displayName: 'no-suppress-xcss',
|
|
67
|
-
isExternal: true,
|
|
68
|
-
docs: {
|
|
69
|
-
description: 'Disallows supressing type violations when using the xcss prop.',
|
|
70
|
-
url: getRuleUrl('no-suppress-xcss'),
|
|
71
|
-
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-suppress-xcss',
|
|
72
|
-
recommended: true,
|
|
73
|
-
severity: 'error'
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
name: '@compiled/no-js-xcss',
|
|
77
|
-
displayName: 'no-js-xcss',
|
|
78
|
-
isExternal: true,
|
|
79
|
-
docs: {
|
|
80
|
-
description: 'Disallows using xcss prop inside JavaScript files.',
|
|
81
|
-
url: getRuleUrl('no-js-xcss'),
|
|
82
|
-
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-js-xcss',
|
|
83
|
-
recommended: true,
|
|
84
|
-
severity: 'error'
|
|
85
|
-
}
|
|
86
64
|
}, {
|
|
87
65
|
name: '@atlaskit/design-system/no-empty-styled-expression',
|
|
88
66
|
displayName: 'no-empty-styled-expression',
|
|
@@ -111,20 +89,4 @@ export const externalRules = [{
|
|
|
111
89
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
112
90
|
}
|
|
113
91
|
}
|
|
114
|
-
}, {
|
|
115
|
-
name: '@compiled/jsx-pragma',
|
|
116
|
-
displayName: 'jsx-pragma',
|
|
117
|
-
isExternal: true,
|
|
118
|
-
docs: {
|
|
119
|
-
description: 'Ensures that the Compiled JSX pragma is set when using Compiled',
|
|
120
|
-
url: getRuleUrl('jsx-pragma'),
|
|
121
|
-
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/jsx-pragma',
|
|
122
|
-
recommended: true,
|
|
123
|
-
severity: 'error',
|
|
124
|
-
pluginConfig: {
|
|
125
|
-
runtime: 'classic',
|
|
126
|
-
onlyRunIfImportingCompiled: true,
|
|
127
|
-
importSources: ['@atlaskit/css']
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
92
|
}];
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4595bc1a07f9da4186e2df84cea56831>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
import * as compiledPlugin from '@compiled/eslint-plugin';
|
|
8
7
|
export default {
|
|
9
8
|
plugins: {
|
|
10
9
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
11
|
-
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
12
|
-
'@compiled': compiledPlugin
|
|
10
|
+
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
13
11
|
},
|
|
14
12
|
rules: {
|
|
15
13
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -36,18 +34,11 @@ export default {
|
|
|
36
34
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
37
35
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
38
36
|
'@atlaskit/design-system/no-styled-tagged-template-expression': 'error',
|
|
39
|
-
'@compiled/no-suppress-xcss': 'error',
|
|
40
|
-
'@compiled/no-js-xcss': 'error',
|
|
41
37
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
42
38
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
39
|
}],
|
|
44
40
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
41
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
|
-
}],
|
|
47
|
-
'@compiled/jsx-pragma': ['error', {
|
|
48
|
-
runtime: 'classic',
|
|
49
|
-
onlyRunIfImportingCompiled: true,
|
|
50
|
-
importSources: ['@atlaskit/css']
|
|
51
42
|
}]
|
|
52
43
|
}
|
|
53
44
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::884e28457d7860b1abca070fca8ab853>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
7
|
-
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'
|
|
7
|
+
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
8
8
|
rules: {
|
|
9
9
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
10
10
|
'@atlaskit/ui-styling-standard/convert-props-syntax': 'error',
|
|
@@ -30,18 +30,11 @@ export default {
|
|
|
30
30
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
31
31
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
32
32
|
'@atlaskit/design-system/no-styled-tagged-template-expression': 'error',
|
|
33
|
-
'@compiled/no-suppress-xcss': 'error',
|
|
34
|
-
'@compiled/no-js-xcss': 'error',
|
|
35
33
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
36
34
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
37
35
|
}],
|
|
38
36
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
37
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
-
}],
|
|
41
|
-
'@compiled/jsx-pragma': ['error', {
|
|
42
|
-
runtime: 'classic',
|
|
43
|
-
onlyRunIfImportingCompiled: true,
|
|
44
|
-
importSources: ['@atlaskit/css']
|
|
45
38
|
}]
|
|
46
39
|
}
|
|
47
40
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4595bc1a07f9da4186e2df84cea56831>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
import * as compiledPlugin from '@compiled/eslint-plugin';
|
|
8
7
|
export default {
|
|
9
8
|
plugins: {
|
|
10
9
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
11
|
-
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
12
|
-
'@compiled': compiledPlugin
|
|
10
|
+
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
13
11
|
},
|
|
14
12
|
rules: {
|
|
15
13
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -36,18 +34,11 @@ export default {
|
|
|
36
34
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
37
35
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
38
36
|
'@atlaskit/design-system/no-styled-tagged-template-expression': 'error',
|
|
39
|
-
'@compiled/no-suppress-xcss': 'error',
|
|
40
|
-
'@compiled/no-js-xcss': 'error',
|
|
41
37
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
42
38
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
39
|
}],
|
|
44
40
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
41
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
|
-
}],
|
|
47
|
-
'@compiled/jsx-pragma': ['error', {
|
|
48
|
-
runtime: 'classic',
|
|
49
|
-
onlyRunIfImportingCompiled: true,
|
|
50
|
-
importSources: ['@atlaskit/css']
|
|
51
42
|
}]
|
|
52
43
|
}
|
|
53
44
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::884e28457d7860b1abca070fca8ab853>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
7
|
-
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'
|
|
7
|
+
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
8
8
|
rules: {
|
|
9
9
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
10
10
|
'@atlaskit/ui-styling-standard/convert-props-syntax': 'error',
|
|
@@ -30,18 +30,11 @@ export default {
|
|
|
30
30
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
31
31
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
32
32
|
'@atlaskit/design-system/no-styled-tagged-template-expression': 'error',
|
|
33
|
-
'@compiled/no-suppress-xcss': 'error',
|
|
34
|
-
'@compiled/no-js-xcss': 'error',
|
|
35
33
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
36
34
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
37
35
|
}],
|
|
38
36
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
37
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
-
}],
|
|
41
|
-
'@compiled/jsx-pragma': ['error', {
|
|
42
|
-
runtime: 'classic',
|
|
43
|
-
onlyRunIfImportingCompiled: true,
|
|
44
|
-
importSources: ['@atlaskit/css']
|
|
45
38
|
}]
|
|
46
39
|
}
|
|
47
40
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isNodeOfType } from 'eslint-codemod-utils';
|
|
2
|
-
import { createLintRule } from '../utils/create-rule';
|
|
3
2
|
import { getAllowedFunctionCalls, isAllowListedVariable } from '@atlaskit/eslint-utils/allowed-function-calls';
|
|
4
3
|
import { findVariable } from '@atlaskit/eslint-utils/find-variable';
|
|
4
|
+
import { createLintRule } from '../utils/create-rule';
|
|
5
5
|
var isParameter = function isParameter(context, identifier) {
|
|
6
6
|
var _findVariable;
|
|
7
7
|
var definitions = (_findVariable = findVariable({
|
|
@@ -15,7 +15,7 @@ var isParameter = function isParameter(context, identifier) {
|
|
|
15
15
|
return result.type === 'Parameter';
|
|
16
16
|
};
|
|
17
17
|
var isIdentifierAllowed = function isIdentifierAllowed(context, identifier) {
|
|
18
|
-
var
|
|
18
|
+
var _variable$identifiers;
|
|
19
19
|
var variable = findVariable({
|
|
20
20
|
sourceCode: context.getSourceCode(),
|
|
21
21
|
identifier: identifier
|
|
@@ -25,30 +25,44 @@ var isIdentifierAllowed = function isIdentifierAllowed(context, identifier) {
|
|
|
25
25
|
}
|
|
26
26
|
var variableDefinition = variable.defs[0].node;
|
|
27
27
|
|
|
28
|
+
// console.log('@@variableDefinition', variableDefinition);
|
|
29
|
+
|
|
28
30
|
// If identifier is a RestElement, report warning
|
|
29
|
-
if (((
|
|
31
|
+
if (((_variable$identifiers = variable.identifiers[0]) === null || _variable$identifiers === void 0 || (_variable$identifiers = _variable$identifiers.parent) === null || _variable$identifiers === void 0 ? void 0 : _variable$identifiers.type) === 'RestElement') {
|
|
30
32
|
return false;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
// Checking if identifier has been destructured from props within function
|
|
34
36
|
if (variableDefinition.type === 'VariableDeclarator') {
|
|
35
|
-
var
|
|
37
|
+
var _init, _init2, _init3, _init4;
|
|
36
38
|
// If it's a let variable, ignore
|
|
37
39
|
if (variableDefinition.parent.kind === 'let') {
|
|
38
40
|
return true;
|
|
39
41
|
}
|
|
42
|
+
|
|
43
|
+
// Allow for `const { width } = props as Props` (etc)
|
|
44
|
+
var init = variableDefinition.init;
|
|
45
|
+
if (((_init = init) === null || _init === void 0 ? void 0 : _init.type) === 'TSAsExpression') {
|
|
46
|
+
init = init.expression;
|
|
47
|
+
}
|
|
48
|
+
|
|
40
49
|
// If it's initialised by a call expression, ignore
|
|
41
|
-
if (((
|
|
50
|
+
if (((_init2 = init) === null || _init2 === void 0 ? void 0 : _init2.type) === 'CallExpression') {
|
|
42
51
|
return true;
|
|
43
52
|
}
|
|
44
53
|
// Destructured from member expression
|
|
45
54
|
// e.g. const width = props.width
|
|
46
|
-
if (((
|
|
47
|
-
return isParameter(context,
|
|
55
|
+
if (((_init3 = init) === null || _init3 === void 0 ? void 0 : _init3.type) === 'MemberExpression') {
|
|
56
|
+
return isParameter(context, init.object);
|
|
57
|
+
}
|
|
58
|
+
// Destructured from an asserted
|
|
59
|
+
// e.g. const width = props.width
|
|
60
|
+
if (((_init4 = init) === null || _init4 === void 0 ? void 0 : _init4.type) === 'MemberExpression') {
|
|
61
|
+
return isParameter(context, init.object);
|
|
48
62
|
}
|
|
49
63
|
// Destructured from object pattern
|
|
50
64
|
// e.g. const { width } = props
|
|
51
|
-
return isParameter(context,
|
|
65
|
+
return isParameter(context, init);
|
|
52
66
|
}
|
|
53
67
|
// If identifier has not been deconstructed from parameter or is a RestElement, report warning
|
|
54
68
|
return isParameter(context, identifier);
|
|
@@ -121,26 +135,40 @@ export var rule = createLintRule({
|
|
|
121
135
|
create: function create(context) {
|
|
122
136
|
return {
|
|
123
137
|
'JSXAttribute[name.name="style"] > JSXExpressionContainer': function JSXAttributeNameNameStyleJSXExpressionContainer(node) {
|
|
138
|
+
var _node$expression$expr;
|
|
124
139
|
if (!isNodeOfType(node, 'JSXExpressionContainer')) {
|
|
125
140
|
return;
|
|
126
141
|
}
|
|
142
|
+
|
|
127
143
|
// we've reached an attribute named style
|
|
128
144
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
145
|
+
var expression;
|
|
146
|
+
if (
|
|
147
|
+
// @ts-expect-error -- TSAsExpression is not valid in estree
|
|
148
|
+
node.expression.type === 'TSAsExpression' &&
|
|
149
|
+
// @ts-expect-error -- TSAsExpression is not valid in estree
|
|
150
|
+
((_node$expression$expr = node.expression.expression) === null || _node$expression$expr === void 0 ? void 0 : _node$expression$expr.type) === 'ObjectExpression') {
|
|
151
|
+
// This is a `style={{ … } as React.CSSProperties}` scenario
|
|
152
|
+
// @ts-expect-error -- TSAsExpression is not valid in estree
|
|
153
|
+
expression = node.expression.expression;
|
|
154
|
+
} else if (node.expression.type === 'ObjectExpression') {
|
|
155
|
+
// Typical `style={{ … }}` scenario
|
|
156
|
+
expression = node.expression;
|
|
138
157
|
} else {
|
|
139
158
|
context.report({
|
|
140
159
|
node: node,
|
|
141
160
|
messageId: 'enforce-style-prop'
|
|
142
161
|
});
|
|
162
|
+
return;
|
|
143
163
|
}
|
|
164
|
+
expression.properties.forEach(function (value) {
|
|
165
|
+
if (!isPropertyValueAllowed(value, context)) {
|
|
166
|
+
context.report({
|
|
167
|
+
node: value,
|
|
168
|
+
messageId: 'enforce-style-prop'
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
});
|
|
144
172
|
}
|
|
145
173
|
};
|
|
146
174
|
}
|
|
@@ -61,28 +61,6 @@ export var externalRules = [{
|
|
|
61
61
|
recommended: true,
|
|
62
62
|
severity: 'error'
|
|
63
63
|
}
|
|
64
|
-
}, {
|
|
65
|
-
name: '@compiled/no-suppress-xcss',
|
|
66
|
-
displayName: 'no-suppress-xcss',
|
|
67
|
-
isExternal: true,
|
|
68
|
-
docs: {
|
|
69
|
-
description: 'Disallows supressing type violations when using the xcss prop.',
|
|
70
|
-
url: getRuleUrl('no-suppress-xcss'),
|
|
71
|
-
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-suppress-xcss',
|
|
72
|
-
recommended: true,
|
|
73
|
-
severity: 'error'
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
name: '@compiled/no-js-xcss',
|
|
77
|
-
displayName: 'no-js-xcss',
|
|
78
|
-
isExternal: true,
|
|
79
|
-
docs: {
|
|
80
|
-
description: 'Disallows using xcss prop inside JavaScript files.',
|
|
81
|
-
url: getRuleUrl('no-js-xcss'),
|
|
82
|
-
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-js-xcss',
|
|
83
|
-
recommended: true,
|
|
84
|
-
severity: 'error'
|
|
85
|
-
}
|
|
86
64
|
}, {
|
|
87
65
|
name: '@atlaskit/design-system/no-empty-styled-expression',
|
|
88
66
|
displayName: 'no-empty-styled-expression',
|
|
@@ -111,20 +89,4 @@ export var externalRules = [{
|
|
|
111
89
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
112
90
|
}
|
|
113
91
|
}
|
|
114
|
-
}, {
|
|
115
|
-
name: '@compiled/jsx-pragma',
|
|
116
|
-
displayName: 'jsx-pragma',
|
|
117
|
-
isExternal: true,
|
|
118
|
-
docs: {
|
|
119
|
-
description: 'Ensures that the Compiled JSX pragma is set when using Compiled',
|
|
120
|
-
url: getRuleUrl('jsx-pragma'),
|
|
121
|
-
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/jsx-pragma',
|
|
122
|
-
recommended: true,
|
|
123
|
-
severity: 'error',
|
|
124
|
-
pluginConfig: {
|
|
125
|
-
runtime: 'classic',
|
|
126
|
-
onlyRunIfImportingCompiled: true,
|
|
127
|
-
importSources: ['@atlaskit/css']
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
92
|
}];
|
|
@@ -24,7 +24,7 @@ export declare const plugin: {
|
|
|
24
24
|
};
|
|
25
25
|
readonly configs: {
|
|
26
26
|
readonly all: {
|
|
27
|
-
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"
|
|
27
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
28
28
|
readonly rules: {
|
|
29
29
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
30
30
|
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
@@ -50,26 +50,18 @@ export declare const plugin: {
|
|
|
50
50
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
51
51
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
52
52
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
53
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
54
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
55
53
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
56
54
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
57
55
|
}];
|
|
58
56
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
59
57
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
60
58
|
}];
|
|
61
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
62
|
-
readonly runtime: "classic";
|
|
63
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
64
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
65
|
-
}];
|
|
66
59
|
};
|
|
67
60
|
};
|
|
68
61
|
readonly 'flat/all': {
|
|
69
62
|
readonly plugins: {
|
|
70
63
|
readonly '@atlaskit/ui-styling-standard': any;
|
|
71
64
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
72
|
-
readonly '@compiled': typeof import("@compiled/eslint-plugin");
|
|
73
65
|
};
|
|
74
66
|
readonly rules: {
|
|
75
67
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
@@ -96,23 +88,16 @@ export declare const plugin: {
|
|
|
96
88
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
97
89
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
98
90
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
99
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
100
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
101
91
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
102
92
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
103
93
|
}];
|
|
104
94
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
105
95
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
106
96
|
}];
|
|
107
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
108
|
-
readonly runtime: "classic";
|
|
109
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
110
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
111
|
-
}];
|
|
112
97
|
};
|
|
113
98
|
};
|
|
114
99
|
readonly recommended: {
|
|
115
|
-
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"
|
|
100
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
116
101
|
readonly rules: {
|
|
117
102
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
118
103
|
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
@@ -138,26 +123,18 @@ export declare const plugin: {
|
|
|
138
123
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
139
124
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
140
125
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
141
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
142
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
143
126
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
144
127
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
145
128
|
}];
|
|
146
129
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
147
130
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
148
131
|
}];
|
|
149
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
150
|
-
readonly runtime: "classic";
|
|
151
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
152
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
153
|
-
}];
|
|
154
132
|
};
|
|
155
133
|
};
|
|
156
134
|
readonly 'flat/recommended': {
|
|
157
135
|
readonly plugins: {
|
|
158
136
|
readonly '@atlaskit/ui-styling-standard': any;
|
|
159
137
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
160
|
-
readonly '@compiled': typeof import("@compiled/eslint-plugin");
|
|
161
138
|
};
|
|
162
139
|
readonly rules: {
|
|
163
140
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
@@ -184,19 +161,12 @@ export declare const plugin: {
|
|
|
184
161
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
185
162
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
186
163
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
187
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
188
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
189
164
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
190
165
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
191
166
|
}];
|
|
192
167
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
193
168
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
194
169
|
}];
|
|
195
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
196
|
-
readonly runtime: "classic";
|
|
197
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
198
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
199
|
-
}];
|
|
200
170
|
};
|
|
201
171
|
};
|
|
202
172
|
};
|
|
@@ -204,7 +174,7 @@ export declare const plugin: {
|
|
|
204
174
|
export { rules } from './rules/index.codegen';
|
|
205
175
|
export declare const configs: {
|
|
206
176
|
readonly all: {
|
|
207
|
-
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"
|
|
177
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
208
178
|
readonly rules: {
|
|
209
179
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
210
180
|
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
@@ -230,19 +200,12 @@ export declare const configs: {
|
|
|
230
200
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
231
201
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
232
202
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
233
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
234
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
235
203
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
236
204
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
237
205
|
}];
|
|
238
206
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
239
207
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
240
208
|
}];
|
|
241
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
242
|
-
readonly runtime: "classic";
|
|
243
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
244
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
245
|
-
}];
|
|
246
209
|
};
|
|
247
210
|
};
|
|
248
211
|
readonly 'flat/all': {
|
|
@@ -274,7 +237,6 @@ export declare const configs: {
|
|
|
274
237
|
readonly configs: any;
|
|
275
238
|
};
|
|
276
239
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
277
|
-
readonly '@compiled': typeof import("@compiled/eslint-plugin");
|
|
278
240
|
};
|
|
279
241
|
readonly rules: {
|
|
280
242
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
@@ -301,23 +263,16 @@ export declare const configs: {
|
|
|
301
263
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
302
264
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
303
265
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
304
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
305
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
306
266
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
307
267
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
308
268
|
}];
|
|
309
269
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
310
270
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
311
271
|
}];
|
|
312
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
313
|
-
readonly runtime: "classic";
|
|
314
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
315
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
316
|
-
}];
|
|
317
272
|
};
|
|
318
273
|
};
|
|
319
274
|
readonly recommended: {
|
|
320
|
-
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"
|
|
275
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
321
276
|
readonly rules: {
|
|
322
277
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
323
278
|
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
@@ -343,19 +298,12 @@ export declare const configs: {
|
|
|
343
298
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
344
299
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
345
300
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
346
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
347
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
348
301
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
349
302
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
350
303
|
}];
|
|
351
304
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
352
305
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
353
306
|
}];
|
|
354
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
355
|
-
readonly runtime: "classic";
|
|
356
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
357
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
358
|
-
}];
|
|
359
307
|
};
|
|
360
308
|
};
|
|
361
309
|
readonly 'flat/recommended': {
|
|
@@ -387,7 +335,6 @@ export declare const configs: {
|
|
|
387
335
|
readonly configs: any;
|
|
388
336
|
};
|
|
389
337
|
readonly '@atlaskit/design-system': typeof import("@atlaskit/eslint-plugin-design-system");
|
|
390
|
-
readonly '@compiled': typeof import("@compiled/eslint-plugin");
|
|
391
338
|
};
|
|
392
339
|
readonly rules: {
|
|
393
340
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
@@ -414,19 +361,12 @@ export declare const configs: {
|
|
|
414
361
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
415
362
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
416
363
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
417
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
418
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
419
364
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
420
365
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
421
366
|
}];
|
|
422
367
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
423
368
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
424
369
|
}];
|
|
425
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
426
|
-
readonly runtime: "classic";
|
|
427
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
428
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
429
|
-
}];
|
|
430
370
|
};
|
|
431
371
|
};
|
|
432
372
|
}, meta: {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4595bc1a07f9da4186e2df84cea56831>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
import * as compiledPlugin from '@compiled/eslint-plugin';
|
|
8
7
|
declare const _default: {
|
|
9
8
|
readonly plugins: {
|
|
10
9
|
readonly '@atlaskit/design-system': typeof atlaskitDesignSystemPlugin;
|
|
11
|
-
readonly '@compiled': typeof compiledPlugin;
|
|
12
10
|
};
|
|
13
11
|
readonly rules: {
|
|
14
12
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
@@ -35,19 +33,12 @@ declare const _default: {
|
|
|
35
33
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
36
34
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
37
35
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
38
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
39
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
40
36
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
41
37
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
42
38
|
}];
|
|
43
39
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
44
40
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
45
41
|
}];
|
|
46
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
47
|
-
readonly runtime: "classic";
|
|
48
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
49
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
50
|
-
}];
|
|
51
42
|
};
|
|
52
43
|
};
|
|
53
44
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::884e28457d7860b1abca070fca8ab853>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
7
|
-
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"
|
|
7
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
8
8
|
readonly rules: {
|
|
9
9
|
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
10
10
|
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
@@ -30,19 +30,12 @@ declare const _default: {
|
|
|
30
30
|
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
31
31
|
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
32
32
|
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
33
|
-
readonly '@compiled/no-suppress-xcss': "error";
|
|
34
|
-
readonly '@compiled/no-js-xcss': "error";
|
|
35
33
|
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
36
34
|
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
37
35
|
}];
|
|
38
36
|
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
39
37
|
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
40
38
|
}];
|
|
41
|
-
readonly '@compiled/jsx-pragma': readonly ["error", {
|
|
42
|
-
readonly runtime: "classic";
|
|
43
|
-
readonly onlyRunIfImportingCompiled: true;
|
|
44
|
-
readonly importSources: readonly ["@atlaskit/css"];
|
|
45
|
-
}];
|
|
46
39
|
};
|
|
47
40
|
};
|
|
48
41
|
export default _default;
|