@atlaskit/eslint-plugin-design-system 13.21.0 → 13.21.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 +8 -0
- package/dist/cjs/common/token-maps.partial.js +2 -2
- package/dist/cjs/index.codegen.js +1 -1
- package/dist/cjs/presets/all-flat.codegen.js +5 -3
- package/dist/cjs/presets/all.codegen.js +5 -3
- package/dist/cjs/presets/recommended-flat.codegen.js +5 -3
- package/dist/cjs/presets/recommended.codegen.js +5 -3
- package/dist/cjs/rules/index.codegen.js +1 -1
- package/dist/cjs/rules/utils/is-node.js +2 -2
- package/dist/es2019/common/token-maps.partial.js +2 -2
- package/dist/es2019/index.codegen.js +1 -1
- package/dist/es2019/presets/all-flat.codegen.js +4 -3
- package/dist/es2019/presets/all.codegen.js +4 -3
- package/dist/es2019/presets/recommended-flat.codegen.js +4 -3
- package/dist/es2019/presets/recommended.codegen.js +4 -3
- package/dist/es2019/rules/index.codegen.js +2 -1
- package/dist/es2019/rules/utils/is-node.js +2 -2
- package/dist/esm/common/token-maps.partial.js +2 -2
- package/dist/esm/index.codegen.js +1 -1
- package/dist/esm/presets/all-flat.codegen.js +4 -3
- package/dist/esm/presets/all.codegen.js +4 -3
- package/dist/esm/presets/recommended-flat.codegen.js +4 -3
- package/dist/esm/presets/recommended.codegen.js +4 -3
- package/dist/esm/rules/index.codegen.js +2 -1
- package/dist/esm/rules/utils/is-node.js +2 -2
- package/dist/types/common/token-maps.partial.d.ts +51 -51
- package/dist/types/index.codegen.d.ts +3 -576
- package/dist/types/presets/all-flat.codegen.d.ts +8 -72
- package/dist/types/presets/all.codegen.d.ts +8 -72
- package/dist/types/presets/recommended-flat.codegen.d.ts +8 -52
- package/dist/types/presets/recommended.codegen.d.ts +8 -52
- package/dist/types/rules/index.codegen.d.ts +7 -69
- package/dist/types/rules/use-tokens-typography/utils.d.ts +24 -60
- package/dist/types-ts4.5/common/token-maps.partial.d.ts +51 -51
- package/dist/types-ts4.5/index.codegen.d.ts +3 -600
- package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +8 -75
- package/dist/types-ts4.5/presets/all.codegen.d.ts +8 -75
- package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +8 -55
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +8 -55
- package/dist/types-ts4.5/rules/index.codegen.d.ts +7 -69
- package/dist/types-ts4.5/rules/use-tokens-typography/utils.d.ts +24 -60
- package/package.json +3 -7
|
@@ -1,75 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'@atlaskit/design-system/ensure-proper-xcss-usage': "error";
|
|
10
|
-
'@atlaskit/design-system/icon-label': "warn";
|
|
11
|
-
'@atlaskit/design-system/no-banned-imports': "error";
|
|
12
|
-
'@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': "warn";
|
|
13
|
-
'@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
14
|
-
'@atlaskit/design-system/no-custom-icons': "warn";
|
|
15
|
-
'@atlaskit/design-system/no-dark-theme-vr-tests': "error";
|
|
16
|
-
'@atlaskit/design-system/no-deprecated-apis': "error";
|
|
17
|
-
'@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
|
|
18
|
-
'@atlaskit/design-system/no-deprecated-imports': "error";
|
|
19
|
-
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
|
|
20
|
-
'@atlaskit/design-system/no-emotion-primitives': "warn";
|
|
21
|
-
'@atlaskit/design-system/no-html-anchor': "warn";
|
|
22
|
-
'@atlaskit/design-system/no-html-button': "warn";
|
|
23
|
-
'@atlaskit/design-system/no-html-checkbox': "warn";
|
|
24
|
-
'@atlaskit/design-system/no-html-code': "warn";
|
|
25
|
-
'@atlaskit/design-system/no-html-heading': "warn";
|
|
26
|
-
'@atlaskit/design-system/no-html-image': "warn";
|
|
27
|
-
'@atlaskit/design-system/no-html-radio': "warn";
|
|
28
|
-
'@atlaskit/design-system/no-html-range': "warn";
|
|
29
|
-
'@atlaskit/design-system/no-html-select': "warn";
|
|
30
|
-
'@atlaskit/design-system/no-html-text-input': "warn";
|
|
31
|
-
'@atlaskit/design-system/no-html-textarea': "warn";
|
|
32
|
-
'@atlaskit/design-system/no-invalid-css-map': [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
allowedFunctionCalls: string[][];
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
'@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
39
|
-
'@atlaskit/design-system/no-legacy-icons': "warn";
|
|
40
|
-
'@atlaskit/design-system/no-margin': "warn";
|
|
41
|
-
'@atlaskit/design-system/no-nested-styles': "error";
|
|
42
|
-
'@atlaskit/design-system/no-physical-properties': "error";
|
|
43
|
-
'@atlaskit/design-system/no-separator-with-list-elements': "warn";
|
|
44
|
-
'@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
45
|
-
'@atlaskit/design-system/no-unsafe-design-token-usage': "error";
|
|
46
|
-
'@atlaskit/design-system/no-unsafe-style-overrides': "warn";
|
|
47
|
-
'@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
|
|
48
|
-
'@atlaskit/design-system/no-unused-css-map': "warn";
|
|
49
|
-
'@atlaskit/design-system/no-utility-icons': "warn";
|
|
50
|
-
'@atlaskit/design-system/prefer-primitives': "warn";
|
|
51
|
-
'@atlaskit/design-system/use-button-group-label': "warn";
|
|
52
|
-
'@atlaskit/design-system/use-correct-field': "warn";
|
|
53
|
-
'@atlaskit/design-system/use-cx-function-in-xcss': "error";
|
|
54
|
-
'@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
|
|
55
|
-
'@atlaskit/design-system/use-drawer-label': "warn";
|
|
56
|
-
'@atlaskit/design-system/use-heading': "warn";
|
|
57
|
-
'@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
|
|
58
|
-
'@atlaskit/design-system/use-href-in-link-item': "warn";
|
|
59
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': "error";
|
|
60
|
-
'@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
|
|
61
|
-
'@atlaskit/design-system/use-menu-section-title': "warn";
|
|
62
|
-
'@atlaskit/design-system/use-modal-dialog-close-button': "warn";
|
|
63
|
-
'@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
|
|
64
|
-
'@atlaskit/design-system/use-popup-label': "warn";
|
|
65
|
-
'@atlaskit/design-system/use-primitives': "warn";
|
|
66
|
-
'@atlaskit/design-system/use-primitives-text': "warn";
|
|
67
|
-
'@atlaskit/design-system/use-should-render-to-parent': "warn";
|
|
68
|
-
'@atlaskit/design-system/use-tag-group-label': "warn";
|
|
69
|
-
'@atlaskit/design-system/use-tokens-shape': "error";
|
|
70
|
-
'@atlaskit/design-system/use-tokens-space': "error";
|
|
71
|
-
'@atlaskit/design-system/use-tokens-typography': "warn";
|
|
72
|
-
'@atlaskit/design-system/use-visually-hidden': "error";
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::6210f09c70f4d44befb986dfd548ed3e>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
6
|
+
import type { Linter } from 'eslint';
|
|
7
|
+
declare const rules: Linter.FlatConfig;
|
|
8
|
+
export default rules;
|
|
@@ -1,75 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'@atlaskit/design-system/ensure-proper-xcss-usage': "error";
|
|
10
|
-
'@atlaskit/design-system/icon-label': "warn";
|
|
11
|
-
'@atlaskit/design-system/no-banned-imports': "error";
|
|
12
|
-
'@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': "warn";
|
|
13
|
-
'@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
14
|
-
'@atlaskit/design-system/no-custom-icons': "warn";
|
|
15
|
-
'@atlaskit/design-system/no-dark-theme-vr-tests': "error";
|
|
16
|
-
'@atlaskit/design-system/no-deprecated-apis': "error";
|
|
17
|
-
'@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
|
|
18
|
-
'@atlaskit/design-system/no-deprecated-imports': "error";
|
|
19
|
-
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
|
|
20
|
-
'@atlaskit/design-system/no-emotion-primitives': "warn";
|
|
21
|
-
'@atlaskit/design-system/no-html-anchor': "warn";
|
|
22
|
-
'@atlaskit/design-system/no-html-button': "warn";
|
|
23
|
-
'@atlaskit/design-system/no-html-checkbox': "warn";
|
|
24
|
-
'@atlaskit/design-system/no-html-code': "warn";
|
|
25
|
-
'@atlaskit/design-system/no-html-heading': "warn";
|
|
26
|
-
'@atlaskit/design-system/no-html-image': "warn";
|
|
27
|
-
'@atlaskit/design-system/no-html-radio': "warn";
|
|
28
|
-
'@atlaskit/design-system/no-html-range': "warn";
|
|
29
|
-
'@atlaskit/design-system/no-html-select': "warn";
|
|
30
|
-
'@atlaskit/design-system/no-html-text-input': "warn";
|
|
31
|
-
'@atlaskit/design-system/no-html-textarea': "warn";
|
|
32
|
-
'@atlaskit/design-system/no-invalid-css-map': [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
allowedFunctionCalls: string[][];
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
'@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
39
|
-
'@atlaskit/design-system/no-legacy-icons': "warn";
|
|
40
|
-
'@atlaskit/design-system/no-margin': "warn";
|
|
41
|
-
'@atlaskit/design-system/no-nested-styles': "error";
|
|
42
|
-
'@atlaskit/design-system/no-physical-properties': "error";
|
|
43
|
-
'@atlaskit/design-system/no-separator-with-list-elements': "warn";
|
|
44
|
-
'@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
45
|
-
'@atlaskit/design-system/no-unsafe-design-token-usage': "error";
|
|
46
|
-
'@atlaskit/design-system/no-unsafe-style-overrides': "warn";
|
|
47
|
-
'@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
|
|
48
|
-
'@atlaskit/design-system/no-unused-css-map': "warn";
|
|
49
|
-
'@atlaskit/design-system/no-utility-icons': "warn";
|
|
50
|
-
'@atlaskit/design-system/prefer-primitives': "warn";
|
|
51
|
-
'@atlaskit/design-system/use-button-group-label': "warn";
|
|
52
|
-
'@atlaskit/design-system/use-correct-field': "warn";
|
|
53
|
-
'@atlaskit/design-system/use-cx-function-in-xcss': "error";
|
|
54
|
-
'@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
|
|
55
|
-
'@atlaskit/design-system/use-drawer-label': "warn";
|
|
56
|
-
'@atlaskit/design-system/use-heading': "warn";
|
|
57
|
-
'@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
|
|
58
|
-
'@atlaskit/design-system/use-href-in-link-item': "warn";
|
|
59
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': "error";
|
|
60
|
-
'@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
|
|
61
|
-
'@atlaskit/design-system/use-menu-section-title': "warn";
|
|
62
|
-
'@atlaskit/design-system/use-modal-dialog-close-button': "warn";
|
|
63
|
-
'@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
|
|
64
|
-
'@atlaskit/design-system/use-popup-label': "warn";
|
|
65
|
-
'@atlaskit/design-system/use-primitives': "warn";
|
|
66
|
-
'@atlaskit/design-system/use-primitives-text': "warn";
|
|
67
|
-
'@atlaskit/design-system/use-should-render-to-parent': "warn";
|
|
68
|
-
'@atlaskit/design-system/use-tag-group-label': "warn";
|
|
69
|
-
'@atlaskit/design-system/use-tokens-shape': "error";
|
|
70
|
-
'@atlaskit/design-system/use-tokens-space': "error";
|
|
71
|
-
'@atlaskit/design-system/use-tokens-typography': "warn";
|
|
72
|
-
'@atlaskit/design-system/use-visually-hidden': "error";
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::daf4a5893d65c7a1592f8bc6e51920c6>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
6
|
+
import type { ESLint } from 'eslint';
|
|
7
|
+
declare const rules: ESLint.ConfigData;
|
|
8
|
+
export default rules;
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'@atlaskit/design-system/no-deprecated-apis': "error";
|
|
10
|
-
'@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
|
|
11
|
-
'@atlaskit/design-system/no-deprecated-imports': "error";
|
|
12
|
-
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
|
|
13
|
-
'@atlaskit/design-system/no-html-anchor': "warn";
|
|
14
|
-
'@atlaskit/design-system/no-html-button': "warn";
|
|
15
|
-
'@atlaskit/design-system/no-html-checkbox': "warn";
|
|
16
|
-
'@atlaskit/design-system/no-html-code': "warn";
|
|
17
|
-
'@atlaskit/design-system/no-html-heading': "warn";
|
|
18
|
-
'@atlaskit/design-system/no-html-image': "warn";
|
|
19
|
-
'@atlaskit/design-system/no-html-radio': "warn";
|
|
20
|
-
'@atlaskit/design-system/no-html-range': "warn";
|
|
21
|
-
'@atlaskit/design-system/no-html-select': "warn";
|
|
22
|
-
'@atlaskit/design-system/no-html-text-input': "warn";
|
|
23
|
-
'@atlaskit/design-system/no-html-textarea': "warn";
|
|
24
|
-
'@atlaskit/design-system/no-invalid-css-map': [
|
|
25
|
-
"error",
|
|
26
|
-
{
|
|
27
|
-
allowedFunctionCalls: string[][];
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
'@atlaskit/design-system/no-nested-styles': "error";
|
|
31
|
-
'@atlaskit/design-system/no-separator-with-list-elements': "warn";
|
|
32
|
-
'@atlaskit/design-system/no-unsafe-design-token-usage': "error";
|
|
33
|
-
'@atlaskit/design-system/no-unsafe-style-overrides': "warn";
|
|
34
|
-
'@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
|
|
35
|
-
'@atlaskit/design-system/no-unused-css-map': "warn";
|
|
36
|
-
'@atlaskit/design-system/no-utility-icons': "warn";
|
|
37
|
-
'@atlaskit/design-system/use-button-group-label': "warn";
|
|
38
|
-
'@atlaskit/design-system/use-correct-field': "warn";
|
|
39
|
-
'@atlaskit/design-system/use-cx-function-in-xcss': "error";
|
|
40
|
-
'@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
|
|
41
|
-
'@atlaskit/design-system/use-drawer-label': "warn";
|
|
42
|
-
'@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
|
|
43
|
-
'@atlaskit/design-system/use-href-in-link-item': "warn";
|
|
44
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': "error";
|
|
45
|
-
'@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
|
|
46
|
-
'@atlaskit/design-system/use-menu-section-title': "warn";
|
|
47
|
-
'@atlaskit/design-system/use-modal-dialog-close-button': "warn";
|
|
48
|
-
'@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
|
|
49
|
-
'@atlaskit/design-system/use-popup-label': "warn";
|
|
50
|
-
'@atlaskit/design-system/use-should-render-to-parent': "warn";
|
|
51
|
-
'@atlaskit/design-system/use-tag-group-label': "warn";
|
|
52
|
-
'@atlaskit/design-system/use-visually-hidden': "error";
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::3328b9c675a0d09876dcfbc5d29bc63f>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
6
|
+
import type { Linter } from 'eslint';
|
|
7
|
+
declare const rules: Linter.FlatConfig;
|
|
8
|
+
export default rules;
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'@atlaskit/design-system/no-deprecated-apis': "error";
|
|
10
|
-
'@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
|
|
11
|
-
'@atlaskit/design-system/no-deprecated-imports': "error";
|
|
12
|
-
'@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
|
|
13
|
-
'@atlaskit/design-system/no-html-anchor': "warn";
|
|
14
|
-
'@atlaskit/design-system/no-html-button': "warn";
|
|
15
|
-
'@atlaskit/design-system/no-html-checkbox': "warn";
|
|
16
|
-
'@atlaskit/design-system/no-html-code': "warn";
|
|
17
|
-
'@atlaskit/design-system/no-html-heading': "warn";
|
|
18
|
-
'@atlaskit/design-system/no-html-image': "warn";
|
|
19
|
-
'@atlaskit/design-system/no-html-radio': "warn";
|
|
20
|
-
'@atlaskit/design-system/no-html-range': "warn";
|
|
21
|
-
'@atlaskit/design-system/no-html-select': "warn";
|
|
22
|
-
'@atlaskit/design-system/no-html-text-input': "warn";
|
|
23
|
-
'@atlaskit/design-system/no-html-textarea': "warn";
|
|
24
|
-
'@atlaskit/design-system/no-invalid-css-map': [
|
|
25
|
-
"error",
|
|
26
|
-
{
|
|
27
|
-
allowedFunctionCalls: string[][];
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
'@atlaskit/design-system/no-nested-styles': "error";
|
|
31
|
-
'@atlaskit/design-system/no-separator-with-list-elements': "warn";
|
|
32
|
-
'@atlaskit/design-system/no-unsafe-design-token-usage': "error";
|
|
33
|
-
'@atlaskit/design-system/no-unsafe-style-overrides': "warn";
|
|
34
|
-
'@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
|
|
35
|
-
'@atlaskit/design-system/no-unused-css-map': "warn";
|
|
36
|
-
'@atlaskit/design-system/no-utility-icons': "warn";
|
|
37
|
-
'@atlaskit/design-system/use-button-group-label': "warn";
|
|
38
|
-
'@atlaskit/design-system/use-correct-field': "warn";
|
|
39
|
-
'@atlaskit/design-system/use-cx-function-in-xcss': "error";
|
|
40
|
-
'@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
|
|
41
|
-
'@atlaskit/design-system/use-drawer-label': "warn";
|
|
42
|
-
'@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
|
|
43
|
-
'@atlaskit/design-system/use-href-in-link-item': "warn";
|
|
44
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': "error";
|
|
45
|
-
'@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
|
|
46
|
-
'@atlaskit/design-system/use-menu-section-title': "warn";
|
|
47
|
-
'@atlaskit/design-system/use-modal-dialog-close-button': "warn";
|
|
48
|
-
'@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
|
|
49
|
-
'@atlaskit/design-system/use-popup-label': "warn";
|
|
50
|
-
'@atlaskit/design-system/use-should-render-to-parent': "warn";
|
|
51
|
-
'@atlaskit/design-system/use-tag-group-label': "warn";
|
|
52
|
-
'@atlaskit/design-system/use-visually-hidden': "error";
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b28f895280627b7a35f059f90783644a>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
6
|
+
import type { ESLint } from 'eslint';
|
|
7
|
+
declare const rules: ESLint.ConfigData;
|
|
8
|
+
export default rules;
|
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'icon-label': import("eslint").Rule.RuleModule;
|
|
9
|
-
'no-banned-imports': import("eslint").Rule.RuleModule;
|
|
10
|
-
'no-boolean-autofocus-on-modal-dialog': import("eslint").Rule.RuleModule;
|
|
11
|
-
'no-css-tagged-template-expression': import("eslint").Rule.RuleModule;
|
|
12
|
-
'no-custom-icons': import("eslint").Rule.RuleModule;
|
|
13
|
-
'no-dark-theme-vr-tests': import("eslint").Rule.RuleModule;
|
|
14
|
-
'no-deprecated-apis': import("eslint").Rule.RuleModule;
|
|
15
|
-
'no-deprecated-design-token-usage': import("eslint").Rule.RuleModule;
|
|
16
|
-
'no-deprecated-imports': import("eslint").Rule.RuleModule;
|
|
17
|
-
'no-direct-use-of-web-platform-drag-and-drop': import("eslint").Rule.RuleModule;
|
|
18
|
-
'no-emotion-primitives': import("eslint").Rule.RuleModule;
|
|
19
|
-
'no-empty-styled-expression': import("eslint").Rule.RuleModule;
|
|
20
|
-
'no-exported-css': import("eslint").Rule.RuleModule;
|
|
21
|
-
'no-exported-keyframes': import("eslint").Rule.RuleModule;
|
|
22
|
-
'no-html-anchor': import("eslint").Rule.RuleModule;
|
|
23
|
-
'no-html-button': import("eslint").Rule.RuleModule;
|
|
24
|
-
'no-html-checkbox': import("eslint").Rule.RuleModule;
|
|
25
|
-
'no-html-code': import("eslint").Rule.RuleModule;
|
|
26
|
-
'no-html-heading': import("eslint").Rule.RuleModule;
|
|
27
|
-
'no-html-image': import("eslint").Rule.RuleModule;
|
|
28
|
-
'no-html-radio': import("eslint").Rule.RuleModule;
|
|
29
|
-
'no-html-range': import("eslint").Rule.RuleModule;
|
|
30
|
-
'no-html-select': import("eslint").Rule.RuleModule;
|
|
31
|
-
'no-html-text-input': import("eslint").Rule.RuleModule;
|
|
32
|
-
'no-html-textarea': import("eslint").Rule.RuleModule;
|
|
33
|
-
'no-invalid-css-map': import("eslint").Rule.RuleModule;
|
|
34
|
-
'no-keyframes-tagged-template-expression': import("eslint").Rule.RuleModule;
|
|
35
|
-
'no-legacy-icons': import("eslint").Rule.RuleModule;
|
|
36
|
-
'no-margin': import("eslint").Rule.RuleModule;
|
|
37
|
-
'no-nested-styles': import("eslint").Rule.RuleModule;
|
|
38
|
-
'no-physical-properties': import("eslint").Rule.RuleModule;
|
|
39
|
-
'no-separator-with-list-elements': import("eslint").Rule.RuleModule;
|
|
40
|
-
'no-styled-tagged-template-expression': import("eslint").Rule.RuleModule;
|
|
41
|
-
'no-unsafe-design-token-usage': import("eslint").Rule.RuleModule;
|
|
42
|
-
'no-unsafe-style-overrides': import("eslint").Rule.RuleModule;
|
|
43
|
-
'no-unsupported-drag-and-drop-libraries': import("eslint").Rule.RuleModule;
|
|
44
|
-
'no-unused-css-map': import("eslint").Rule.RuleModule;
|
|
45
|
-
'no-utility-icons': import("eslint").Rule.RuleModule;
|
|
46
|
-
'prefer-primitives': import("eslint").Rule.RuleModule;
|
|
47
|
-
'use-button-group-label': import("eslint").Rule.RuleModule;
|
|
48
|
-
'use-correct-field': import("eslint").Rule.RuleModule;
|
|
49
|
-
'use-cx-function-in-xcss': import("eslint").Rule.RuleModule;
|
|
50
|
-
'use-datetime-picker-calendar-button': import("eslint").Rule.RuleModule;
|
|
51
|
-
'use-drawer-label': import("eslint").Rule.RuleModule;
|
|
52
|
-
'use-heading': import("eslint").Rule.RuleModule;
|
|
53
|
-
'use-heading-level-in-spotlight-card': import("eslint").Rule.RuleModule;
|
|
54
|
-
'use-href-in-link-item': import("eslint").Rule.RuleModule;
|
|
55
|
-
'use-latest-xcss-syntax': import("eslint").Rule.RuleModule;
|
|
56
|
-
'use-latest-xcss-syntax-typography': import("eslint").Rule.RuleModule;
|
|
57
|
-
'use-menu-section-title': import("eslint").Rule.RuleModule;
|
|
58
|
-
'use-modal-dialog-close-button': import("eslint").Rule.RuleModule;
|
|
59
|
-
'use-onboarding-spotlight-label': import("eslint").Rule.RuleModule;
|
|
60
|
-
'use-popup-label': import("eslint").Rule.RuleModule;
|
|
61
|
-
'use-primitives': import("eslint").Rule.RuleModule;
|
|
62
|
-
'use-primitives-text': import("eslint").Rule.RuleModule;
|
|
63
|
-
'use-should-render-to-parent': import("eslint").Rule.RuleModule;
|
|
64
|
-
'use-tag-group-label': import("eslint").Rule.RuleModule;
|
|
65
|
-
'use-tokens-shape': import("eslint").Rule.RuleModule;
|
|
66
|
-
'use-tokens-space': import("eslint").Rule.RuleModule;
|
|
67
|
-
'use-tokens-typography': import("eslint").Rule.RuleModule;
|
|
68
|
-
'use-visually-hidden': import("eslint").Rule.RuleModule;
|
|
69
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::4693db80b637ac078521dd6e0591f75b>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
6
|
+
import type { Rule } from 'eslint';
|
|
7
|
+
export declare const rules: Record<string, Rule.RuleModule>;
|
|
@@ -17,45 +17,19 @@ export type TokenValueMap = {
|
|
|
17
17
|
};
|
|
18
18
|
export declare const typographyValueToToken: TokenValueMap[];
|
|
19
19
|
export declare function isValidTypographyToken(tokenName: string): {
|
|
20
|
-
attributes: {
|
|
21
|
-
group: string;
|
|
22
|
-
state: string;
|
|
23
|
-
introduced: string;
|
|
24
|
-
description: string;
|
|
25
|
-
};
|
|
26
20
|
value: string;
|
|
27
21
|
filePath: string;
|
|
28
22
|
isSource: boolean;
|
|
29
|
-
original: {
|
|
30
|
-
attributes: {
|
|
31
|
-
group: string;
|
|
32
|
-
state: string;
|
|
33
|
-
introduced: string;
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
value: string;
|
|
37
|
-
};
|
|
38
|
-
name: string;
|
|
39
|
-
path: string[];
|
|
40
|
-
cleanName: string;
|
|
41
|
-
} | {
|
|
42
23
|
attributes: {
|
|
43
24
|
group: string;
|
|
44
25
|
state: string;
|
|
45
26
|
introduced: string;
|
|
46
27
|
description: string;
|
|
28
|
+
suggest?: string[];
|
|
29
|
+
deprecated?: string;
|
|
47
30
|
};
|
|
48
|
-
value: string;
|
|
49
|
-
filePath: string;
|
|
50
|
-
isSource: boolean;
|
|
51
31
|
original: {
|
|
52
|
-
|
|
53
|
-
group: string;
|
|
54
|
-
state: string;
|
|
55
|
-
introduced: string;
|
|
56
|
-
description: string;
|
|
57
|
-
};
|
|
58
|
-
value: {
|
|
32
|
+
value: string | {
|
|
59
33
|
fontWeight: string;
|
|
60
34
|
fontSize: string;
|
|
61
35
|
lineHeight: string;
|
|
@@ -63,6 +37,14 @@ export declare function isValidTypographyToken(tokenName: string): {
|
|
|
63
37
|
fontStyle: string;
|
|
64
38
|
letterSpacing: string;
|
|
65
39
|
};
|
|
40
|
+
attributes: {
|
|
41
|
+
group: string;
|
|
42
|
+
state: string;
|
|
43
|
+
introduced: string;
|
|
44
|
+
description: string;
|
|
45
|
+
suggest?: string[];
|
|
46
|
+
deprecated?: string;
|
|
47
|
+
};
|
|
66
48
|
};
|
|
67
49
|
name: string;
|
|
68
50
|
path: string[];
|
|
@@ -87,46 +69,20 @@ export type FontWeightMap = {
|
|
|
87
69
|
bold: string;
|
|
88
70
|
};
|
|
89
71
|
export declare const defaultFontWeight: string;
|
|
90
|
-
export declare const fontFamilyTokens:
|
|
91
|
-
attributes: {
|
|
92
|
-
group: string;
|
|
93
|
-
state: string;
|
|
94
|
-
introduced: string;
|
|
95
|
-
description: string;
|
|
96
|
-
};
|
|
72
|
+
export declare const fontFamilyTokens: {
|
|
97
73
|
value: string;
|
|
98
74
|
filePath: string;
|
|
99
75
|
isSource: boolean;
|
|
100
|
-
original: {
|
|
101
|
-
attributes: {
|
|
102
|
-
group: string;
|
|
103
|
-
state: string;
|
|
104
|
-
introduced: string;
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
value: string;
|
|
108
|
-
};
|
|
109
|
-
name: string;
|
|
110
|
-
path: string[];
|
|
111
|
-
cleanName: string;
|
|
112
|
-
} | {
|
|
113
76
|
attributes: {
|
|
114
77
|
group: string;
|
|
115
78
|
state: string;
|
|
116
79
|
introduced: string;
|
|
117
80
|
description: string;
|
|
81
|
+
suggest?: string[];
|
|
82
|
+
deprecated?: string;
|
|
118
83
|
};
|
|
119
|
-
value: string;
|
|
120
|
-
filePath: string;
|
|
121
|
-
isSource: boolean;
|
|
122
84
|
original: {
|
|
123
|
-
|
|
124
|
-
group: string;
|
|
125
|
-
state: string;
|
|
126
|
-
introduced: string;
|
|
127
|
-
description: string;
|
|
128
|
-
};
|
|
129
|
-
value: {
|
|
85
|
+
value: string | {
|
|
130
86
|
fontWeight: string;
|
|
131
87
|
fontSize: string;
|
|
132
88
|
lineHeight: string;
|
|
@@ -134,11 +90,19 @@ export declare const fontFamilyTokens: ({
|
|
|
134
90
|
fontStyle: string;
|
|
135
91
|
letterSpacing: string;
|
|
136
92
|
};
|
|
93
|
+
attributes: {
|
|
94
|
+
group: string;
|
|
95
|
+
state: string;
|
|
96
|
+
introduced: string;
|
|
97
|
+
description: string;
|
|
98
|
+
suggest?: string[];
|
|
99
|
+
deprecated?: string;
|
|
100
|
+
};
|
|
137
101
|
};
|
|
138
102
|
name: string;
|
|
139
103
|
path: string[];
|
|
140
104
|
cleanName: string;
|
|
141
|
-
}
|
|
105
|
+
}[];
|
|
142
106
|
export declare function findFontFamilyValueForToken(tokenName: string): string;
|
|
143
107
|
export declare function findFontFamilyTokenForValue(value: string): "font.family.brand.heading" | "font.family.brand.body" | "font.family.body" | "font.family.code" | undefined;
|
|
144
108
|
export declare function notUndefined<V>(value: V | undefined): value is V;
|
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": "13.21.
|
|
4
|
+
"version": "13.21.1",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -34,16 +34,12 @@
|
|
|
34
34
|
"**/*.compiled.css"
|
|
35
35
|
],
|
|
36
36
|
"atlaskit:src": "src/index.tsx",
|
|
37
|
-
"af:exports": {
|
|
38
|
-
".": "./src/index.tsx",
|
|
39
|
-
"./package.json": "./package.json"
|
|
40
|
-
},
|
|
41
37
|
"peerDependencies": {
|
|
42
38
|
"react": "^18.2.0"
|
|
43
39
|
},
|
|
44
40
|
"dependencies": {
|
|
45
41
|
"@atlaskit/eslint-utils": "^2.0.0",
|
|
46
|
-
"@atlaskit/icon": "^28.
|
|
42
|
+
"@atlaskit/icon": "^28.3.0",
|
|
47
43
|
"@atlaskit/icon-lab": "^5.7.0",
|
|
48
44
|
"@atlaskit/tokens": "^6.3.0",
|
|
49
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,7 +54,7 @@
|
|
|
58
54
|
},
|
|
59
55
|
"devDependencies": {
|
|
60
56
|
"@af/formatting": "workspace:^",
|
|
61
|
-
"@atlaskit/ds-lib": "^5.
|
|
57
|
+
"@atlaskit/ds-lib": "^5.1.0",
|
|
62
58
|
"@atlaskit/theme": "^21.0.0",
|
|
63
59
|
"@atlassian/codegen": "^0.1.0",
|
|
64
60
|
"@atlassian/eslint-utils": "^0.5.0",
|