@atlaskit/eslint-plugin-design-system 10.13.0 → 10.15.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 +30 -0
- package/README.md +3 -3
- package/dist/cjs/presets/all.codegen.js +4 -5
- package/dist/cjs/presets/recommended.codegen.js +4 -5
- package/dist/cjs/rules/no-empty-styled-expression/index.js +1 -2
- package/dist/cjs/rules/no-exported-css/index.js +1 -2
- package/dist/cjs/rules/no-exported-keyframes/index.js +1 -2
- package/dist/cjs/rules/no-invalid-css-map/index.js +4 -1
- package/dist/es2019/presets/all.codegen.js +4 -5
- package/dist/es2019/presets/recommended.codegen.js +4 -5
- package/dist/es2019/rules/no-empty-styled-expression/index.js +1 -2
- package/dist/es2019/rules/no-exported-css/index.js +1 -2
- package/dist/es2019/rules/no-exported-keyframes/index.js +1 -2
- package/dist/es2019/rules/no-invalid-css-map/index.js +4 -1
- package/dist/esm/presets/all.codegen.js +4 -5
- package/dist/esm/presets/recommended.codegen.js +4 -5
- package/dist/esm/rules/no-empty-styled-expression/index.js +1 -2
- package/dist/esm/rules/no-exported-css/index.js +1 -2
- package/dist/esm/rules/no-exported-keyframes/index.js +1 -2
- package/dist/esm/rules/no-invalid-css-map/index.js +4 -1
- package/dist/types/index.codegen.d.ts +6 -8
- package/dist/types/presets/all.codegen.d.ts +4 -5
- package/dist/types/presets/recommended.codegen.d.ts +4 -5
- package/dist/types/rules/ensure-design-token-usage/rule-meta.d.ts +43 -2
- package/dist/types/rules/no-legacy-icons/helpers.d.ts +13 -1
- package/dist/types-ts4.5/index.codegen.d.ts +6 -8
- package/dist/types-ts4.5/presets/all.codegen.d.ts +4 -5
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +4 -5
- package/dist/types-ts4.5/rules/ensure-design-token-usage/rule-meta.d.ts +43 -2
- package/dist/types-ts4.5/rules/no-legacy-icons/helpers.d.ts +13 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 10.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
|
|
8
|
+
[`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
|
|
9
|
+
Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
|
|
10
|
+
to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
|
|
11
|
+
|
|
12
|
+
This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
|
|
13
|
+
dependency range for `react` and `react-dom` for `/platform` packages.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 10.14.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [#128926](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128926)
|
|
24
|
+
[`5df26d24db3c7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5df26d24db3c7) - -
|
|
25
|
+
Remove config for rules that do not belong in this plugin long-term:
|
|
26
|
+
'@atlaskit/design-system/no-empty-styled-expression', '@atlaskit/design-system/no-exported-css',
|
|
27
|
+
'@atlaskit/design-system/no-exported-keyframes' — they may be removed in a future release and
|
|
28
|
+
prefer `@atlaskit/eslint-plugin/ui-styling-standard/recommended` for this type of rules in the
|
|
29
|
+
future.
|
|
30
|
+
- Reconfigure '@atlaskit/design-system/no-invalid-css-map' to work properly of the box alongside
|
|
31
|
+
ADS.
|
|
32
|
+
|
|
3
33
|
## 10.13.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -60,9 +60,9 @@ module.exports = {
|
|
|
60
60
|
| <a href="./src/rules/no-deprecated-design-token-usage/README.md">no-deprecated-design-token-usage</a> | Disallow using deprecated design tokens. | Yes | Yes | |
|
|
61
61
|
| <a href="./src/rules/no-deprecated-imports/README.md">no-deprecated-imports</a> | Disallow importing deprecated modules. | Yes | | |
|
|
62
62
|
| <a href="./src/rules/no-direct-use-of-web-platform-drag-and-drop/README.md">no-direct-use-of-web-platform-drag-and-drop</a> | Disallow using direct use of native drag and drop (please use Pragmatic drag and drop) | Yes | | |
|
|
63
|
-
| <a href="./src/rules/no-empty-styled-expression/README.md">no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). |
|
|
64
|
-
| <a href="./src/rules/no-exported-css/README.md">no-exported-css</a> | Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. |
|
|
65
|
-
| <a href="./src/rules/no-exported-keyframes/README.md">no-exported-keyframes</a> | Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. |
|
|
63
|
+
| <a href="./src/rules/no-empty-styled-expression/README.md">no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | | | |
|
|
64
|
+
| <a href="./src/rules/no-exported-css/README.md">no-exported-css</a> | Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | | | |
|
|
65
|
+
| <a href="./src/rules/no-exported-keyframes/README.md">no-exported-keyframes</a> | Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | | | |
|
|
66
66
|
| <a href="./src/rules/no-html-anchor/README.md">no-html-anchor</a> | Discourage direct usage of HTML anchor elements in favor of Atlassian Design System link components. | Yes | | |
|
|
67
67
|
| <a href="./src/rules/no-html-button/README.md">no-html-button</a> | Discourage direct usage of HTML button elements in favor of Atlassian Design System button components. | Yes | | |
|
|
68
68
|
| <a href="./src/rules/no-invalid-css-map/README.md">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 | | |
|
|
@@ -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::b6947ac630ea512fe3f4e3f44abb6783>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -23,12 +23,11 @@ var _default = exports.default = {
|
|
|
23
23
|
'@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
|
|
24
24
|
'@atlaskit/design-system/no-deprecated-imports': 'error',
|
|
25
25
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
|
|
26
|
-
'@atlaskit/design-system/no-empty-styled-expression': 'warn',
|
|
27
|
-
'@atlaskit/design-system/no-exported-css': 'warn',
|
|
28
|
-
'@atlaskit/design-system/no-exported-keyframes': 'warn',
|
|
29
26
|
'@atlaskit/design-system/no-html-anchor': 'warn',
|
|
30
27
|
'@atlaskit/design-system/no-html-button': 'warn',
|
|
31
|
-
'@atlaskit/design-system/no-invalid-css-map': 'error',
|
|
28
|
+
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
29
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
30
|
+
}],
|
|
32
31
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
33
32
|
'@atlaskit/design-system/no-legacy-icons': 'warn',
|
|
34
33
|
'@atlaskit/design-system/no-margin': 'warn',
|
|
@@ -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::9b6bccf688f4ee18dd0d49dbce48e475>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -20,12 +20,11 @@ var _default = exports.default = {
|
|
|
20
20
|
'@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
|
|
21
21
|
'@atlaskit/design-system/no-deprecated-imports': 'error',
|
|
22
22
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
|
|
23
|
-
'@atlaskit/design-system/no-empty-styled-expression': 'warn',
|
|
24
|
-
'@atlaskit/design-system/no-exported-css': 'warn',
|
|
25
|
-
'@atlaskit/design-system/no-exported-keyframes': 'warn',
|
|
26
23
|
'@atlaskit/design-system/no-html-anchor': 'warn',
|
|
27
24
|
'@atlaskit/design-system/no-html-button': 'warn',
|
|
28
|
-
'@atlaskit/design-system/no-invalid-css-map': 'error',
|
|
25
|
+
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
26
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
27
|
+
}],
|
|
29
28
|
'@atlaskit/design-system/no-nested-styles': 'error',
|
|
30
29
|
'@atlaskit/design-system/no-unsafe-design-token-usage': 'error',
|
|
31
30
|
'@atlaskit/design-system/no-unsafe-style-overrides': 'warn',
|
|
@@ -50,8 +50,7 @@ var noEmptyStyledExpressionRule = (0, _createRule.createLintRule)({
|
|
|
50
50
|
name: 'no-empty-styled-expression',
|
|
51
51
|
docs: {
|
|
52
52
|
description: 'Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements).',
|
|
53
|
-
|
|
54
|
-
severity: 'warn'
|
|
53
|
+
removeFromPresets: true // effectively disable this rule here, this is configured by `@atlaskit/ui-styling-standard` instead
|
|
55
54
|
},
|
|
56
55
|
messages: {
|
|
57
56
|
unexpected: 'Found an empty expression, or empty object argument passed to `styled` function call. This unnecessarily causes a major performance penalty - please use a plain JSX element or a React fragment instead (e.g. `<div>Hello</div>` or `<>Hello</>`).'
|
|
@@ -13,8 +13,7 @@ var noExportedCssRule = (0, _createRule.createLintRule)({
|
|
|
13
13
|
type: 'problem',
|
|
14
14
|
docs: {
|
|
15
15
|
description: 'Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
16
|
-
|
|
17
|
-
severity: 'warn'
|
|
16
|
+
removeFromPresets: true // effectively disable this rule here, this is overriden by `@atlaskit/ui-styling-standard` instead
|
|
18
17
|
},
|
|
19
18
|
messages: {
|
|
20
19
|
unexpected: "`css` can't be exported - this will cause unexpected behaviour at runtime. Instead, please move your `css(...)` code to the same file where these styles are being used."
|
|
@@ -13,8 +13,7 @@ var noExportedKeyframesRule = (0, _createRule.createLintRule)({
|
|
|
13
13
|
type: 'problem',
|
|
14
14
|
docs: {
|
|
15
15
|
description: 'Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
16
|
-
|
|
17
|
-
severity: 'warn'
|
|
16
|
+
removeFromPresets: true // effectively disable this rule here, this is overriden by `@atlaskit/ui-styling-standard` instead
|
|
18
17
|
},
|
|
19
18
|
messages: {
|
|
20
19
|
unexpected: "`keyframes` can't be exported - this will cause unexpected behaviour at runtime. Instead, please move your `keyframes(...)` code to the same file where these styles are being used."
|
|
@@ -65,7 +65,10 @@ var noInvalidCssMapRule = (0, _createRule.createLintRule)({
|
|
|
65
65
|
docs: {
|
|
66
66
|
description: "Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking.",
|
|
67
67
|
recommended: true,
|
|
68
|
-
severity: 'error'
|
|
68
|
+
severity: 'error',
|
|
69
|
+
pluginConfig: {
|
|
70
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
71
|
+
}
|
|
69
72
|
},
|
|
70
73
|
messages: {
|
|
71
74
|
mustBeTopLevelScope: 'cssMap must only be used in the top-most scope of the module.',
|
|
@@ -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::b6947ac630ea512fe3f4e3f44abb6783>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -17,12 +17,11 @@ export default {
|
|
|
17
17
|
'@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
|
|
18
18
|
'@atlaskit/design-system/no-deprecated-imports': 'error',
|
|
19
19
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
|
|
20
|
-
'@atlaskit/design-system/no-empty-styled-expression': 'warn',
|
|
21
|
-
'@atlaskit/design-system/no-exported-css': 'warn',
|
|
22
|
-
'@atlaskit/design-system/no-exported-keyframes': 'warn',
|
|
23
20
|
'@atlaskit/design-system/no-html-anchor': 'warn',
|
|
24
21
|
'@atlaskit/design-system/no-html-button': 'warn',
|
|
25
|
-
'@atlaskit/design-system/no-invalid-css-map': 'error',
|
|
22
|
+
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
23
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
24
|
+
}],
|
|
26
25
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
27
26
|
'@atlaskit/design-system/no-legacy-icons': 'warn',
|
|
28
27
|
'@atlaskit/design-system/no-margin': 'warn',
|
|
@@ -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::9b6bccf688f4ee18dd0d49dbce48e475>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -14,12 +14,11 @@ export default {
|
|
|
14
14
|
'@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
|
|
15
15
|
'@atlaskit/design-system/no-deprecated-imports': 'error',
|
|
16
16
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
|
|
17
|
-
'@atlaskit/design-system/no-empty-styled-expression': 'warn',
|
|
18
|
-
'@atlaskit/design-system/no-exported-css': 'warn',
|
|
19
|
-
'@atlaskit/design-system/no-exported-keyframes': 'warn',
|
|
20
17
|
'@atlaskit/design-system/no-html-anchor': 'warn',
|
|
21
18
|
'@atlaskit/design-system/no-html-button': 'warn',
|
|
22
|
-
'@atlaskit/design-system/no-invalid-css-map': 'error',
|
|
19
|
+
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
20
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
21
|
+
}],
|
|
23
22
|
'@atlaskit/design-system/no-nested-styles': 'error',
|
|
24
23
|
'@atlaskit/design-system/no-unsafe-design-token-usage': 'error',
|
|
25
24
|
'@atlaskit/design-system/no-unsafe-style-overrides': 'warn',
|
|
@@ -40,8 +40,7 @@ const noEmptyStyledExpressionRule = createLintRule({
|
|
|
40
40
|
name: 'no-empty-styled-expression',
|
|
41
41
|
docs: {
|
|
42
42
|
description: 'Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements).',
|
|
43
|
-
|
|
44
|
-
severity: 'warn'
|
|
43
|
+
removeFromPresets: true // effectively disable this rule here, this is configured by `@atlaskit/ui-styling-standard` instead
|
|
45
44
|
},
|
|
46
45
|
messages: {
|
|
47
46
|
unexpected: 'Found an empty expression, or empty object argument passed to `styled` function call. This unnecessarily causes a major performance penalty - please use a plain JSX element or a React fragment instead (e.g. `<div>Hello</div>` or `<>Hello</>`).'
|
|
@@ -7,8 +7,7 @@ const noExportedCssRule = createLintRule({
|
|
|
7
7
|
type: 'problem',
|
|
8
8
|
docs: {
|
|
9
9
|
description: 'Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
10
|
-
|
|
11
|
-
severity: 'warn'
|
|
10
|
+
removeFromPresets: true // effectively disable this rule here, this is overriden by `@atlaskit/ui-styling-standard` instead
|
|
12
11
|
},
|
|
13
12
|
messages: {
|
|
14
13
|
unexpected: "`css` can't be exported - this will cause unexpected behaviour at runtime. Instead, please move your `css(...)` code to the same file where these styles are being used."
|
|
@@ -7,8 +7,7 @@ const noExportedKeyframesRule = createLintRule({
|
|
|
7
7
|
type: 'problem',
|
|
8
8
|
docs: {
|
|
9
9
|
description: 'Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
10
|
-
|
|
11
|
-
severity: 'warn'
|
|
10
|
+
removeFromPresets: true // effectively disable this rule here, this is overriden by `@atlaskit/ui-styling-standard` instead
|
|
12
11
|
},
|
|
13
12
|
messages: {
|
|
14
13
|
unexpected: "`keyframes` can't be exported - this will cause unexpected behaviour at runtime. Instead, please move your `keyframes(...)` code to the same file where these styles are being used."
|
|
@@ -58,7 +58,10 @@ const noInvalidCssMapRule = createLintRule({
|
|
|
58
58
|
docs: {
|
|
59
59
|
description: "Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking.",
|
|
60
60
|
recommended: true,
|
|
61
|
-
severity: 'error'
|
|
61
|
+
severity: 'error',
|
|
62
|
+
pluginConfig: {
|
|
63
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
64
|
+
}
|
|
62
65
|
},
|
|
63
66
|
messages: {
|
|
64
67
|
mustBeTopLevelScope: 'cssMap must only be used in the top-most scope of the module.',
|
|
@@ -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::b6947ac630ea512fe3f4e3f44abb6783>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -17,12 +17,11 @@ export default {
|
|
|
17
17
|
'@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
|
|
18
18
|
'@atlaskit/design-system/no-deprecated-imports': 'error',
|
|
19
19
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
|
|
20
|
-
'@atlaskit/design-system/no-empty-styled-expression': 'warn',
|
|
21
|
-
'@atlaskit/design-system/no-exported-css': 'warn',
|
|
22
|
-
'@atlaskit/design-system/no-exported-keyframes': 'warn',
|
|
23
20
|
'@atlaskit/design-system/no-html-anchor': 'warn',
|
|
24
21
|
'@atlaskit/design-system/no-html-button': 'warn',
|
|
25
|
-
'@atlaskit/design-system/no-invalid-css-map': 'error',
|
|
22
|
+
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
23
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
24
|
+
}],
|
|
26
25
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
|
|
27
26
|
'@atlaskit/design-system/no-legacy-icons': 'warn',
|
|
28
27
|
'@atlaskit/design-system/no-margin': 'warn',
|
|
@@ -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::9b6bccf688f4ee18dd0d49dbce48e475>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -14,12 +14,11 @@ export default {
|
|
|
14
14
|
'@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
|
|
15
15
|
'@atlaskit/design-system/no-deprecated-imports': 'error',
|
|
16
16
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
|
|
17
|
-
'@atlaskit/design-system/no-empty-styled-expression': 'warn',
|
|
18
|
-
'@atlaskit/design-system/no-exported-css': 'warn',
|
|
19
|
-
'@atlaskit/design-system/no-exported-keyframes': 'warn',
|
|
20
17
|
'@atlaskit/design-system/no-html-anchor': 'warn',
|
|
21
18
|
'@atlaskit/design-system/no-html-button': 'warn',
|
|
22
|
-
'@atlaskit/design-system/no-invalid-css-map': 'error',
|
|
19
|
+
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
20
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
21
|
+
}],
|
|
23
22
|
'@atlaskit/design-system/no-nested-styles': 'error',
|
|
24
23
|
'@atlaskit/design-system/no-unsafe-design-token-usage': 'error',
|
|
25
24
|
'@atlaskit/design-system/no-unsafe-style-overrides': 'warn',
|
|
@@ -43,8 +43,7 @@ var noEmptyStyledExpressionRule = createLintRule({
|
|
|
43
43
|
name: 'no-empty-styled-expression',
|
|
44
44
|
docs: {
|
|
45
45
|
description: 'Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements).',
|
|
46
|
-
|
|
47
|
-
severity: 'warn'
|
|
46
|
+
removeFromPresets: true // effectively disable this rule here, this is configured by `@atlaskit/ui-styling-standard` instead
|
|
48
47
|
},
|
|
49
48
|
messages: {
|
|
50
49
|
unexpected: 'Found an empty expression, or empty object argument passed to `styled` function call. This unnecessarily causes a major performance penalty - please use a plain JSX element or a React fragment instead (e.g. `<div>Hello</div>` or `<>Hello</>`).'
|
|
@@ -7,8 +7,7 @@ var noExportedCssRule = createLintRule({
|
|
|
7
7
|
type: 'problem',
|
|
8
8
|
docs: {
|
|
9
9
|
description: 'Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
10
|
-
|
|
11
|
-
severity: 'warn'
|
|
10
|
+
removeFromPresets: true // effectively disable this rule here, this is overriden by `@atlaskit/ui-styling-standard` instead
|
|
12
11
|
},
|
|
13
12
|
messages: {
|
|
14
13
|
unexpected: "`css` can't be exported - this will cause unexpected behaviour at runtime. Instead, please move your `css(...)` code to the same file where these styles are being used."
|
|
@@ -7,8 +7,7 @@ var noExportedKeyframesRule = createLintRule({
|
|
|
7
7
|
type: 'problem',
|
|
8
8
|
docs: {
|
|
9
9
|
description: 'Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
10
|
-
|
|
11
|
-
severity: 'warn'
|
|
10
|
+
removeFromPresets: true // effectively disable this rule here, this is overriden by `@atlaskit/ui-styling-standard` instead
|
|
12
11
|
},
|
|
13
12
|
messages: {
|
|
14
13
|
unexpected: "`keyframes` can't be exported - this will cause unexpected behaviour at runtime. Instead, please move your `keyframes(...)` code to the same file where these styles are being used."
|
|
@@ -59,7 +59,10 @@ var noInvalidCssMapRule = createLintRule({
|
|
|
59
59
|
docs: {
|
|
60
60
|
description: "Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking.",
|
|
61
61
|
recommended: true,
|
|
62
|
-
severity: 'error'
|
|
62
|
+
severity: 'error',
|
|
63
|
+
pluginConfig: {
|
|
64
|
+
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
65
|
+
}
|
|
63
66
|
},
|
|
64
67
|
messages: {
|
|
65
68
|
mustBeTopLevelScope: 'cssMap must only be used in the top-most scope of the module.',
|
|
@@ -14,12 +14,11 @@ export declare const configs: {
|
|
|
14
14
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
15
15
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
16
16
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
17
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
18
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
19
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
20
17
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
21
18
|
'@atlaskit/design-system/no-html-button': string;
|
|
22
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
19
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
20
|
+
allowedFunctionCalls: string[][];
|
|
21
|
+
})[];
|
|
23
22
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
|
|
24
23
|
'@atlaskit/design-system/no-legacy-icons': string;
|
|
25
24
|
'@atlaskit/design-system/no-margin': string;
|
|
@@ -57,12 +56,11 @@ export declare const configs: {
|
|
|
57
56
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
58
57
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
59
58
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
60
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
61
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
62
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
63
59
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
64
60
|
'@atlaskit/design-system/no-html-button': string;
|
|
65
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
61
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
62
|
+
allowedFunctionCalls: string[][];
|
|
63
|
+
})[];
|
|
66
64
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
67
65
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
68
66
|
'@atlaskit/design-system/no-unsafe-style-overrides': string;
|
|
@@ -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::b6947ac630ea512fe3f4e3f44abb6783>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -17,12 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
18
18
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
19
19
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
20
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
21
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
22
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
23
20
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
24
21
|
'@atlaskit/design-system/no-html-button': string;
|
|
25
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
22
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
23
|
+
allowedFunctionCalls: string[][];
|
|
24
|
+
})[];
|
|
26
25
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
|
|
27
26
|
'@atlaskit/design-system/no-legacy-icons': string;
|
|
28
27
|
'@atlaskit/design-system/no-margin': string;
|
|
@@ -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::9b6bccf688f4ee18dd0d49dbce48e475>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -14,12 +14,11 @@ declare const _default: {
|
|
|
14
14
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
15
15
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
16
16
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
17
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
18
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
19
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
20
17
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
21
18
|
'@atlaskit/design-system/no-html-button': string;
|
|
22
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
19
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
20
|
+
allowedFunctionCalls: string[][];
|
|
21
|
+
})[];
|
|
23
22
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
24
23
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
25
24
|
'@atlaskit/design-system/no-unsafe-style-overrides': string;
|
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
import type
|
|
2
|
-
declare const ruleMeta:
|
|
1
|
+
import { type Domains } from './types';
|
|
2
|
+
declare const ruleMeta: {
|
|
3
|
+
readonly name: "ensure-design-token-usage";
|
|
4
|
+
readonly hasSuggestions: true;
|
|
5
|
+
readonly schema: {
|
|
6
|
+
readonly type: "array";
|
|
7
|
+
readonly items: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly applyImport: {
|
|
11
|
+
readonly type: "boolean";
|
|
12
|
+
};
|
|
13
|
+
readonly shouldEnforceFallbacks: {
|
|
14
|
+
readonly type: "boolean";
|
|
15
|
+
};
|
|
16
|
+
readonly domains: {
|
|
17
|
+
readonly type: "array";
|
|
18
|
+
readonly items: {
|
|
19
|
+
readonly enum: Domains;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly exceptions: {
|
|
23
|
+
readonly type: "array";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly type: "problem";
|
|
29
|
+
readonly fixable: "code";
|
|
30
|
+
readonly docs: {
|
|
31
|
+
readonly description: "Enforces usage of design tokens rather than hard-coded values.";
|
|
32
|
+
readonly recommended: true;
|
|
33
|
+
readonly severity: "error";
|
|
34
|
+
};
|
|
35
|
+
readonly messages: {
|
|
36
|
+
readonly noRawRadiusValues: "The use of shape tokens is preferred over the direct application of border properties.\n\n@meta <<{{payload}}>>";
|
|
37
|
+
readonly noRawSpacingValues: "The use of spacing primitives or tokens is preferred over the direct application of spacing properties.\n\n@meta <<{{payload}}>>";
|
|
38
|
+
readonly autofixesPossible: "Automated corrections available for spacing values. Apply autofix to replace values with appropriate tokens";
|
|
39
|
+
readonly noCalcUsage: "The use of space tokens is preferred over using the CSS calc function. If using a value that is not aligned to the spacing scale, consider aligning to the scale and using tokens instead.";
|
|
40
|
+
readonly hardCodedColor: "Colors can be sourced from the global theme using the token function.";
|
|
41
|
+
readonly legacyElevation: "Elevations can be sourced from the global theme using the token function made of both a background and shadow. Use \"card\" for card elevations, and \"overlay\" for anything else that should appear elevated.";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
3
44
|
export default ruleMeta;
|
|
@@ -27,7 +27,19 @@ export declare const isSize: (size: any) => size is "small" | "medium" | "large"
|
|
|
27
27
|
* @param iconPackage The name of the legacy icon package
|
|
28
28
|
* @returns The migration map object for the legacy icon or null if not found
|
|
29
29
|
*/
|
|
30
|
-
export declare const getMigrationMapObject: (iconPackage: string) =>
|
|
30
|
+
export declare const getMigrationMapObject: (iconPackage: string) => {
|
|
31
|
+
newIcon?: {
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
package: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
additionalIcons?: {
|
|
37
|
+
name: string;
|
|
38
|
+
type: string;
|
|
39
|
+
package: string;
|
|
40
|
+
}[] | undefined;
|
|
41
|
+
sizeGuidance: Record<import("@atlaskit/icon").Size, IconMigrationSizeGuidance>;
|
|
42
|
+
} | null;
|
|
31
43
|
export declare const getUpcomingIcons: (iconPackage: string) => {
|
|
32
44
|
sizeGuidance: Record<Size, IconMigrationSizeGuidance>;
|
|
33
45
|
} | null;
|
|
@@ -14,12 +14,11 @@ export declare const configs: {
|
|
|
14
14
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
15
15
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
16
16
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
17
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
18
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
19
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
20
17
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
21
18
|
'@atlaskit/design-system/no-html-button': string;
|
|
22
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
19
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
20
|
+
allowedFunctionCalls: string[][];
|
|
21
|
+
})[];
|
|
23
22
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
|
|
24
23
|
'@atlaskit/design-system/no-legacy-icons': string;
|
|
25
24
|
'@atlaskit/design-system/no-margin': string;
|
|
@@ -57,12 +56,11 @@ export declare const configs: {
|
|
|
57
56
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
58
57
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
59
58
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
60
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
61
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
62
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
63
59
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
64
60
|
'@atlaskit/design-system/no-html-button': string;
|
|
65
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
61
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
62
|
+
allowedFunctionCalls: string[][];
|
|
63
|
+
})[];
|
|
66
64
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
67
65
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
68
66
|
'@atlaskit/design-system/no-unsafe-style-overrides': string;
|
|
@@ -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::b6947ac630ea512fe3f4e3f44abb6783>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -17,12 +17,11 @@ declare const _default: {
|
|
|
17
17
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
18
18
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
19
19
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
20
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
21
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
22
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
23
20
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
24
21
|
'@atlaskit/design-system/no-html-button': string;
|
|
25
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
22
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
23
|
+
allowedFunctionCalls: string[][];
|
|
24
|
+
})[];
|
|
26
25
|
'@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
|
|
27
26
|
'@atlaskit/design-system/no-legacy-icons': string;
|
|
28
27
|
'@atlaskit/design-system/no-margin': string;
|
|
@@ -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::9b6bccf688f4ee18dd0d49dbce48e475>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -14,12 +14,11 @@ declare const _default: {
|
|
|
14
14
|
'@atlaskit/design-system/no-deprecated-design-token-usage': string;
|
|
15
15
|
'@atlaskit/design-system/no-deprecated-imports': string;
|
|
16
16
|
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': string;
|
|
17
|
-
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
18
|
-
'@atlaskit/design-system/no-exported-css': string;
|
|
19
|
-
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
20
17
|
'@atlaskit/design-system/no-html-anchor': string;
|
|
21
18
|
'@atlaskit/design-system/no-html-button': string;
|
|
22
|
-
'@atlaskit/design-system/no-invalid-css-map': string
|
|
19
|
+
'@atlaskit/design-system/no-invalid-css-map': (string | {
|
|
20
|
+
allowedFunctionCalls: string[][];
|
|
21
|
+
})[];
|
|
23
22
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
24
23
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
25
24
|
'@atlaskit/design-system/no-unsafe-style-overrides': string;
|
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
import type
|
|
2
|
-
declare const ruleMeta:
|
|
1
|
+
import { type Domains } from './types';
|
|
2
|
+
declare const ruleMeta: {
|
|
3
|
+
readonly name: "ensure-design-token-usage";
|
|
4
|
+
readonly hasSuggestions: true;
|
|
5
|
+
readonly schema: {
|
|
6
|
+
readonly type: "array";
|
|
7
|
+
readonly items: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly applyImport: {
|
|
11
|
+
readonly type: "boolean";
|
|
12
|
+
};
|
|
13
|
+
readonly shouldEnforceFallbacks: {
|
|
14
|
+
readonly type: "boolean";
|
|
15
|
+
};
|
|
16
|
+
readonly domains: {
|
|
17
|
+
readonly type: "array";
|
|
18
|
+
readonly items: {
|
|
19
|
+
readonly enum: Domains;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly exceptions: {
|
|
23
|
+
readonly type: "array";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly type: "problem";
|
|
29
|
+
readonly fixable: "code";
|
|
30
|
+
readonly docs: {
|
|
31
|
+
readonly description: "Enforces usage of design tokens rather than hard-coded values.";
|
|
32
|
+
readonly recommended: true;
|
|
33
|
+
readonly severity: "error";
|
|
34
|
+
};
|
|
35
|
+
readonly messages: {
|
|
36
|
+
readonly noRawRadiusValues: "The use of shape tokens is preferred over the direct application of border properties.\n\n@meta <<{{payload}}>>";
|
|
37
|
+
readonly noRawSpacingValues: "The use of spacing primitives or tokens is preferred over the direct application of spacing properties.\n\n@meta <<{{payload}}>>";
|
|
38
|
+
readonly autofixesPossible: "Automated corrections available for spacing values. Apply autofix to replace values with appropriate tokens";
|
|
39
|
+
readonly noCalcUsage: "The use of space tokens is preferred over using the CSS calc function. If using a value that is not aligned to the spacing scale, consider aligning to the scale and using tokens instead.";
|
|
40
|
+
readonly hardCodedColor: "Colors can be sourced from the global theme using the token function.";
|
|
41
|
+
readonly legacyElevation: "Elevations can be sourced from the global theme using the token function made of both a background and shadow. Use \"card\" for card elevations, and \"overlay\" for anything else that should appear elevated.";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
3
44
|
export default ruleMeta;
|
|
@@ -32,7 +32,19 @@ export declare const isSize: (size: any) => size is "small" | "medium" | "large"
|
|
|
32
32
|
* @param iconPackage The name of the legacy icon package
|
|
33
33
|
* @returns The migration map object for the legacy icon or null if not found
|
|
34
34
|
*/
|
|
35
|
-
export declare const getMigrationMapObject: (iconPackage: string) =>
|
|
35
|
+
export declare const getMigrationMapObject: (iconPackage: string) => {
|
|
36
|
+
newIcon?: {
|
|
37
|
+
name: string;
|
|
38
|
+
type: string;
|
|
39
|
+
package: string;
|
|
40
|
+
} | undefined;
|
|
41
|
+
additionalIcons?: {
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
package: string;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
sizeGuidance: Record<import("@atlaskit/icon").Size, IconMigrationSizeGuidance>;
|
|
47
|
+
} | null;
|
|
36
48
|
export declare const getUpcomingIcons: (iconPackage: string) => {
|
|
37
49
|
sizeGuidance: Record<Size, IconMigrationSizeGuidance>;
|
|
38
50
|
} | null;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-design-system",
|
|
3
3
|
"description": "The essential plugin for use with the Atlassian Design System.",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.15.0",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
".": "./src/index.tsx"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"react": "^16.8.0 || ^17.0.0 ||
|
|
41
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/eslint-utils": "^1.
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/eslint-utils": "^1.7.0",
|
|
45
|
+
"@atlaskit/icon": "^22.12.0",
|
|
46
46
|
"@atlaskit/tokens": "*",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@typescript-eslint/utils": "^5.48.1",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@af/formatting": "*",
|
|
58
|
-
"@atlaskit/ds-lib": "^2.
|
|
59
|
-
"@atlaskit/theme": "^12.
|
|
58
|
+
"@atlaskit/ds-lib": "^2.4.0",
|
|
59
|
+
"@atlaskit/theme": "^12.12.0",
|
|
60
60
|
"@atlassian/codegen": "*",
|
|
61
61
|
"@atlassian/eslint-utils": "^0.5.0",
|
|
62
62
|
"@atlassian/ts-loader": "*",
|