@atlaskit/eslint-plugin-ui-styling-standard 0.19.1 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -0
- package/dist/cjs/presets/all.codegen.js +6 -1
- package/dist/cjs/presets/recommended.codegen.js +6 -1
- package/dist/cjs/rules/external-rules.js +16 -0
- package/dist/es2019/presets/all.codegen.js +6 -1
- package/dist/es2019/presets/recommended.codegen.js +6 -1
- package/dist/es2019/rules/external-rules.js +16 -0
- package/dist/esm/presets/all.codegen.js +6 -1
- package/dist/esm/presets/recommended.codegen.js +6 -1
- package/dist/esm/rules/external-rules.js +16 -0
- package/dist/types/index.codegen.d.ts +10 -0
- package/dist/types/presets/all.codegen.d.ts +6 -1
- package/dist/types/presets/recommended.codegen.d.ts +6 -1
- package/dist/types-ts4.5/index.codegen.d.ts +10 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +6 -1
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +6 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 0.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#154199](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154199)
|
|
8
|
+
[`d13bf04a19535`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d13bf04a19535) -
|
|
9
|
+
Bump @compiled/\* and enable sorting of styles (where applicable)
|
|
10
|
+
|
|
11
|
+
## 0.20.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#154669](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154669)
|
|
16
|
+
[`20db78434becd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/20db78434becd) -
|
|
17
|
+
Bump to the latest version of @compiled/\*
|
|
18
|
+
- [#154669](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/154669)
|
|
19
|
+
[`20db78434becd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/20db78434becd) -
|
|
20
|
+
Add and configure `@compiled/jsx-pragma` in the recommended preset for a better experience with
|
|
21
|
+
`@atlaskit/css` and the JSX pragma.
|
|
22
|
+
|
|
3
23
|
## 0.19.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -67,5 +67,6 @@ module.exports = {
|
|
|
67
67
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-js-xcss/usage">@compiled/no-js-xcss</a> | Disallows using xcss prop inside JavaScript files. | Yes | | |
|
|
68
68
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-empty-styled-expression/usage">@atlaskit/design-system/no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | Yes | | |
|
|
69
69
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-invalid-css-map/usage">@atlaskit/design-system/no-invalid-css-map</a> | Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking. | Yes | | |
|
|
70
|
+
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/jsx-pragma/usage">@compiled/jsx-pragma</a> | Ensures that the Compiled JSX pragma is set when using Compiled | Yes | | |
|
|
70
71
|
|
|
71
72
|
<!-- END_RULE_TABLE_CODEGEN -->
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -43,6 +43,11 @@ var _default = exports.default = {
|
|
|
43
43
|
}],
|
|
44
44
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
45
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
|
+
}],
|
|
47
|
+
'@compiled/jsx-pragma': ['error', {
|
|
48
|
+
runtime: 'classic',
|
|
49
|
+
onlyRunIfImportingCompiled: true,
|
|
50
|
+
importSources: ['@atlaskit/css']
|
|
46
51
|
}]
|
|
47
52
|
}
|
|
48
53
|
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -43,6 +43,11 @@ var _default = exports.default = {
|
|
|
43
43
|
}],
|
|
44
44
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
45
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
|
+
}],
|
|
47
|
+
'@compiled/jsx-pragma': ['error', {
|
|
48
|
+
runtime: 'classic',
|
|
49
|
+
onlyRunIfImportingCompiled: true,
|
|
50
|
+
importSources: ['@atlaskit/css']
|
|
46
51
|
}]
|
|
47
52
|
}
|
|
48
53
|
};
|
|
@@ -116,4 +116,20 @@ var externalRules = exports.externalRules = [{
|
|
|
116
116
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
}, {
|
|
120
|
+
name: '@compiled/jsx-pragma',
|
|
121
|
+
displayName: 'jsx-pragma',
|
|
122
|
+
isExternal: true,
|
|
123
|
+
docs: {
|
|
124
|
+
description: 'Ensures that the Compiled JSX pragma is set when using Compiled',
|
|
125
|
+
url: (0, _createRule.getRuleUrl)('jsx-pragma'),
|
|
126
|
+
externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/jsx-pragma',
|
|
127
|
+
recommended: true,
|
|
128
|
+
severity: 'error',
|
|
129
|
+
pluginConfig: {
|
|
130
|
+
runtime: 'classic',
|
|
131
|
+
onlyRunIfImportingCompiled: true,
|
|
132
|
+
importSources: ['@atlaskit/css']
|
|
133
|
+
}
|
|
134
|
+
}
|
|
119
135
|
}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
+
}],
|
|
41
|
+
'@compiled/jsx-pragma': ['error', {
|
|
42
|
+
runtime: 'classic',
|
|
43
|
+
onlyRunIfImportingCompiled: true,
|
|
44
|
+
importSources: ['@atlaskit/css']
|
|
40
45
|
}]
|
|
41
46
|
}
|
|
42
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
+
}],
|
|
41
|
+
'@compiled/jsx-pragma': ['error', {
|
|
42
|
+
runtime: 'classic',
|
|
43
|
+
onlyRunIfImportingCompiled: true,
|
|
44
|
+
importSources: ['@atlaskit/css']
|
|
40
45
|
}]
|
|
41
46
|
}
|
|
42
47
|
};
|
|
@@ -111,4 +111,20 @@ export const externalRules = [{
|
|
|
111
111
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
112
112
|
}
|
|
113
113
|
}
|
|
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
|
+
}
|
|
114
130
|
}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
+
}],
|
|
41
|
+
'@compiled/jsx-pragma': ['error', {
|
|
42
|
+
runtime: 'classic',
|
|
43
|
+
onlyRunIfImportingCompiled: true,
|
|
44
|
+
importSources: ['@atlaskit/css']
|
|
40
45
|
}]
|
|
41
46
|
}
|
|
42
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -37,6 +37,11 @@ export default {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
+
}],
|
|
41
|
+
'@compiled/jsx-pragma': ['error', {
|
|
42
|
+
runtime: 'classic',
|
|
43
|
+
onlyRunIfImportingCompiled: true,
|
|
44
|
+
importSources: ['@atlaskit/css']
|
|
40
45
|
}]
|
|
41
46
|
}
|
|
42
47
|
};
|
|
@@ -111,4 +111,20 @@ export var externalRules = [{
|
|
|
111
111
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
112
112
|
}
|
|
113
113
|
}
|
|
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
|
+
}
|
|
114
130
|
}];
|
|
@@ -35,6 +35,11 @@ export declare const configs: {
|
|
|
35
35
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
36
36
|
allowedFunctionCalls: string[][];
|
|
37
37
|
})[];
|
|
38
|
+
'@compiled/jsx-pragma': (string | {
|
|
39
|
+
runtime: string;
|
|
40
|
+
onlyRunIfImportingCompiled: boolean;
|
|
41
|
+
importSources: string[];
|
|
42
|
+
})[];
|
|
38
43
|
};
|
|
39
44
|
};
|
|
40
45
|
recommended: {
|
|
@@ -72,6 +77,11 @@ export declare const configs: {
|
|
|
72
77
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
73
78
|
allowedFunctionCalls: string[][];
|
|
74
79
|
})[];
|
|
80
|
+
'@compiled/jsx-pragma': (string | {
|
|
81
|
+
runtime: string;
|
|
82
|
+
onlyRunIfImportingCompiled: boolean;
|
|
83
|
+
importSources: string[];
|
|
84
|
+
})[];
|
|
75
85
|
};
|
|
76
86
|
};
|
|
77
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -38,6 +38,11 @@ declare const _default: {
|
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
39
39
|
allowedFunctionCalls: string[][];
|
|
40
40
|
})[];
|
|
41
|
+
'@compiled/jsx-pragma': (string | {
|
|
42
|
+
runtime: string;
|
|
43
|
+
onlyRunIfImportingCompiled: boolean;
|
|
44
|
+
importSources: string[];
|
|
45
|
+
})[];
|
|
41
46
|
};
|
|
42
47
|
};
|
|
43
48
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -38,6 +38,11 @@ declare const _default: {
|
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
39
39
|
allowedFunctionCalls: string[][];
|
|
40
40
|
})[];
|
|
41
|
+
'@compiled/jsx-pragma': (string | {
|
|
42
|
+
runtime: string;
|
|
43
|
+
onlyRunIfImportingCompiled: boolean;
|
|
44
|
+
importSources: string[];
|
|
45
|
+
})[];
|
|
41
46
|
};
|
|
42
47
|
};
|
|
43
48
|
export default _default;
|
|
@@ -35,6 +35,11 @@ export declare const configs: {
|
|
|
35
35
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
36
36
|
allowedFunctionCalls: string[][];
|
|
37
37
|
})[];
|
|
38
|
+
'@compiled/jsx-pragma': (string | {
|
|
39
|
+
runtime: string;
|
|
40
|
+
onlyRunIfImportingCompiled: boolean;
|
|
41
|
+
importSources: string[];
|
|
42
|
+
})[];
|
|
38
43
|
};
|
|
39
44
|
};
|
|
40
45
|
recommended: {
|
|
@@ -72,6 +77,11 @@ export declare const configs: {
|
|
|
72
77
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
73
78
|
allowedFunctionCalls: string[][];
|
|
74
79
|
})[];
|
|
80
|
+
'@compiled/jsx-pragma': (string | {
|
|
81
|
+
runtime: string;
|
|
82
|
+
onlyRunIfImportingCompiled: boolean;
|
|
83
|
+
importSources: string[];
|
|
84
|
+
})[];
|
|
75
85
|
};
|
|
76
86
|
};
|
|
77
87
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -38,6 +38,11 @@ declare const _default: {
|
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
39
39
|
allowedFunctionCalls: string[][];
|
|
40
40
|
})[];
|
|
41
|
+
'@compiled/jsx-pragma': (string | {
|
|
42
|
+
runtime: string;
|
|
43
|
+
onlyRunIfImportingCompiled: boolean;
|
|
44
|
+
importSources: string[];
|
|
45
|
+
})[];
|
|
41
46
|
};
|
|
42
47
|
};
|
|
43
48
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -38,6 +38,11 @@ declare const _default: {
|
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
39
39
|
allowedFunctionCalls: string[][];
|
|
40
40
|
})[];
|
|
41
|
+
'@compiled/jsx-pragma': (string | {
|
|
42
|
+
runtime: string;
|
|
43
|
+
onlyRunIfImportingCompiled: boolean;
|
|
44
|
+
importSources: string[];
|
|
45
|
+
})[];
|
|
41
46
|
};
|
|
42
47
|
};
|
|
43
48
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-ui-styling-standard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
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",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@af/formatting": "*",
|
|
54
54
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
55
|
-
"@atlaskit/eslint-plugin-design-system": "^10.
|
|
55
|
+
"@atlaskit/eslint-plugin-design-system": "^10.23.0",
|
|
56
56
|
"@atlassian/codegen": "*",
|
|
57
57
|
"@atlassian/ts-loader": "*",
|
|
58
|
-
"@compiled/eslint-plugin": "^0.
|
|
58
|
+
"@compiled/eslint-plugin": "^0.16.0",
|
|
59
59
|
"@types/eslint": "^8.56.6",
|
|
60
60
|
"@types/estraverse": "^5.1.7",
|
|
61
61
|
"eslint": "^8.57.0",
|